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
Document filename when opening with IStream
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- User
- Posts: 18
- Joined: Tue Jun 17, 2008 3:37 am
-
- Site Admin
- Posts: 2449
- Joined: Thu Jun 30, 2005 4:11 pm
Re: Document filename when opening with IStream
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.
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
-
- User
- Posts: 18
- Joined: Tue Jun 17, 2008 3:37 am
Re: Document filename when opening with IStream
Nice, works just fine 
Thank You,
Kenneth Aafløy

Thank You,
Kenneth Aafløy
-
- Site Admin
- Posts: 5223
- Joined: Tue Jun 29, 2004 10:34 am
Re: Document filename when opening with IStream
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
Best regards
Tracker Support
http://www.tracker-software.com