Hi support,
I'm custom handling the cmd.open command so I can allow multiple copies of the same file to be opened (and decide into what MainFrame to open a document)...
I'm using IPXC_Inst's OpenDocumentFromFile to open pdf documents.
Now, if a document is not a PDF this will fail and I need to use ImportConverters and do all the conversion from code.
Since there's a lot that needs to be done (locate appropriate converter, progress bar and the stuff) - that's a lot of coding.
Is there a single method to be called that would do the conversion internally (as it gets done when not custom handling the cmd.open). So, something like "OpenDocumentFromFile(convertIfNeeded, ...)"
?
If not, and I need to do all from code, can I at least use some standard stuff like progress bar (IProgressMon) when calling IPXV_ImportConverter.Convert().
?
-žarko
Opening (+converting) non PDF documents when custom handling the cmd.open command SOLVED
Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, 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.
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.
-
- User
- Posts: 1372
- Joined: Thu Sep 05, 2019 12:35 pm
-
- User
- Posts: 1372
- Joined: Thu Sep 05, 2019 12:35 pm
Re: Opening (+converting) non PDF documents when custom handling the cmd.open command SOLVED
Hi,
To answer my question:
The trick is not to use OpenDocumentFromFile, but the "op.openDoc" operation.
The op.OpenDoc does the same but using internal callbacks for progress and password if needed and also for conversion to PDF from other document types.
-žarko
To answer my question:
The trick is not to use OpenDocumentFromFile, but the "op.openDoc" operation.
The op.OpenDoc does the same but using internal callbacks for progress and password if needed and also for conversion to PDF from other document types.
-žarko
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Opening (+converting) non PDF documents when custom handling the cmd.open command
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ