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

PDF-XChange Editor SDK for Developers

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

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.
zarkogajic
User
Posts: 1473
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
You do not have the required permissions to view the files attached to this post.
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2445
Joined: Thu Jun 30, 2005 4:11 pm

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

Post by Vasyl - PDF-XChange »

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.
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.
zarkogajic
User
Posts: 1473
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
Daniel - PDF-XChange
Site Admin
Posts: 11047
Joined: Wed Jan 03, 2018 6:52 pm

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

Post by Daniel - PDF-XChange »

:)
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

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