Document filename when opening with IStream

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

KennethAa
User
Posts: 18
Joined: Tue Jun 17, 2008 3:37 am

Document filename when opening with IStream

Post by KennethAa »

Hi,

When opening a document with IStream, the document filename is set to "Document from Stream". The filename is used as the name of printing jobs, so it would be nice to have the "real" name of the loaded document here.

Can this be fixed, either by making Documents[x].FileName read/write, or by getting the filename from IStream::Stat()?

With Regards,
Kenneth Aafløy
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2449
Joined: Thu Jun 30, 2005 4:11 pm

Re: Document filename when opening with IStream

Post by Vasyl - PDF-XChange »

You can use undocumented 'Documents[x].DispFileName' for this. It will be documented in the near future.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
KennethAa
User
Posts: 18
Joined: Tue Jun 17, 2008 3:37 am

Re: Document filename when opening with IStream

Post by KennethAa »

Nice, works just fine :)

Thank You,
Kenneth Aafløy
User avatar
John - Tracker Supp
Site Admin
Posts: 5223
Joined: Tue Jun 29, 2004 10:34 am

Re: Document filename when opening with IStream

Post by John - Tracker Supp »

Excellent :)
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com