Visibility of "Compare docs" commands bar when opening "compare results" document  SOLVED

PDF-XChange Editor SDK for Developers

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.
Post Reply
zarkogajic
User
Posts: 1370
Joined: Thu Sep 05, 2019 12:35 pm

Visibility of "Compare docs" commands bar when opening "compare results" document

Post by zarkogajic »

Hi Support,

When opening a "[compare result]" document the "compare bar commands" (do not know the exact name) appears on top:

image.png

When I open the same document from code - that bar does not get displayed.

I'm using IPXV_MainFrame.OpenDocFrom feeding it with a CoreDoc opened using op.openDoc operation.

What params for op.openDoc are required for the bar to appear (or something else)?

Using IPXV_MainFrame.OpenDocFromPath (same CreateOpenDocParams) works as expected - the bar is displayed.

Using InstPXC.OpenDocumentFromFile + IPXV_MainFrame.OpenDocFrom(CoreDoc) - the bar is not displayed.

Using IPXV_MainFrame.OpenDocFrom(ISTREAM) - the bar is displayed.


p.s.
Or, how do I make that bar visible upon opening such document?

I've located the "cmdbar.cmpDocsRes" inside CmdPaneTop of the IPXV_PagesView.

Inst.IsCmdBarVisible returns false for it. Inst.ShowCmdBar does not display it, nor any other approach I could think of - so must be somehow document related.

-žarko
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2353
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Visibility of "Compare docs" commands bar when opening "compare results" document

Post by Vasyl-Tracker Dev Team »

I'm using IPXV_MainFrame.OpenDocFrom feeding it with a CoreDoc opened using op.openDoc operation.
To handle the compare-pdfs-reports properly you need to specify:

op.openDoc.Params["Options.CanLoadCmpPDFReportData"] = true;

HTH.
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
zarkogajic
User
Posts: 1370
Joined: Thu Sep 05, 2019 12:35 pm

Re: Visibility of "Compare docs" commands bar when opening "compare results" document  SOLVED

Post by zarkogajic »

Hi Vasyl,

Great, thanks.

-žarko
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 8544
Joined: Wed Jan 03, 2018 6:52 pm

Visibility of "Compare docs" commands bar when opening "compare results" document

Post by TrackerSupp-Daniel »

:)
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
Post Reply