1

我已关注此链接 -在 WPF 应用程序中显示 PDF 以在应用程序PDF中打开WPF

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;

遇到这样的异常

找不到适合指定区域性或中性 > 区域性的任何资源。确保“AxAcroPDFLib.AxAcroPDF.resources”在编译时正确嵌入或链接到程序集“AxInterop.AcroPDFLib”中,或者所有所需的卫星程序集都可加载并完全签名。

4

0 回答 0