I have followed this link - Display a PDF in WPF Application to open PDF
in a WPF
application:
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AxAcroPDFLib.AxAcroPDF)); ` // axAcroPdf1 = new AxAcroPDFLib.AxAcroPDF();
//this.axAcroPdf1.Dock = System.Windows.Forms.DockStyle.Fill;
//this.axAcroPdf1.Enabled = true;
//this.axAcroPdf1.Name = "Demo";
//this.axAcroPdf1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axAcroPdf1.OcxState")));
//axAcroPdf1.LoadFile(AppDomain.CurrentDomain.BaseDirectory + "\\FileStorage\\Demo.pdf");
// axAcroPdf1.Visible = true;
Got an exception like this:
Could not find any resources appropriate for the specified culture or the neutral >culture. Make sure "AxAcroPDFLib.AxAcroPDF.resources" was correctly embedded or linked >into assembly "AxInterop.AcroPDFLib" at compile time, or that all the satellite >assemblies required are loadable and fully signed.