i am facing issues while opening PDF doc form the local folder in windows form application?

A forum for questions or concerns related to the PDF-XChange Core API SDK

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
madhu1528
User
Posts: 14
Joined: Mon Apr 22, 2019 10:02 am

i am facing issues while opening PDF doc form the local folder in windows form application?

Post by madhu1528 »

Hi team,

I am facing issue while i try to open the PDF doc which is stored in the local folder fo my machine using the below code snippet.
public PDFXEdit.IAFS_NamesCollection ShowOpenFilesDlg(bool bAllowMult, string sFilter)
{
PDFXEdit.IPXV_OpenFilesDlgRes openFilesRes = null;
try
{
openFilesRes = pdfCtl.Inst.ShowOpenFilesDlg(sFilter, "", bAllowMult);
}
catch { openFilesRes = null; }

if (openFilesRes == null)
return null;

return openFilesRes.Names;
}

private void btnBrowseForOpen_Click(object sender, EventArgs e)
{
PDFXEdit.IAFS_NamesCollection namesToOpen = ShowOpenFilesDlg(false, "<allSupp>");
if (namesToOpen == null)
return;
PDFXEdit.IAFS_Name fileName = namesToOpen[0];
tSrcToOpen.Text = fileName.FileSys.NameToString(fileName);
}
2.when i run the full demo code i am able to open the dialog box is there any additional setting required i am using the same pdfexedit dll provided in the sample.

Please provide me the solution for this.

Regards,
Madhu
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: i am facing issues while opening PDF doc form the local folder in windows form application?

Post by Sasha - Tracker Dev Team »

Hello Madhu,

Please post Editor SDK questions at an appropriate forum. Also, what issue are you facing exactly?

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply