1
Answer

C# : LoadFile Missin

 
I tried to copy this code to display pdf in c# , but axAcroPDFLib.axAcroPDF does not contain Loadfile....... error comes !
Is there any possible solution for this?
 
 
 
private void button1_Click(object sender, EventArgs e)
{
{
// Create object of Open file dialog class
{
OpenFileDialog dlg = new OpenFileDialog();
// set file filter of dialog
dlg.Filter = "pdf files (*.pdf) |*.pdf;";
dlg.ShowDialog();
if (dlg.FileName!= null)
{
// use the LoadFile(ByVal fileName As String) function for open the pdf in control
axAcroPDF1.LoadFile(dlg.FileName);
}
}
 
Answers (1)
0
jemin patel

jemin patel

NA 18 613 7y
the error in crome
 
not allowed to load local resourse
 
to rectified it i try this but it not working
 
 C:\Program Files\Google\Chrome\Application\chrome.exe –allow-file-access-from-files -disable-web-security
0
Manas Mohapatra

Manas Mohapatra

NA 29.3k 3.3m 7y
Enable browser develop tool by pressing F12. In console tab see if you are getting any error.
 
Secondly,  inspect an element what is rendring in chrome browser.