Based on your other input on the Navigator Control we've been able to get the IPXV_PageSizeCtl2 working for the most part.
The only thing we haven't figured out is how to add the By Source otpions to the Page Size Type for a New Document or Insert where we are doing multiple files and don't know yet how many pages.
In the XML we have
<indexNavigator x="126" y="203" width="230" height="22" id="PageSize.in.types" style="#00000002" strings="By Page\nStandard\n± %\n± ∆\nCustom"/>
But we only get the Standard and Custom once we use the CreatePageSizeCtl2 and Init
I tired adding the checkbox in PageSize.ch.source and checking that before creating and initializing the control and that didn't work.
The closest was to create a new document to pass to the Init and tried it both with pages and no pages.
CComPtr<PXV::IPXC_Document> tempDoc;
hr = inst->NewCoreDoc(nullptr, &tempDoc);
Here is yours from the New Document From Images->Options and our test.
Help with IPXV_PageSizeCtl2 and By Source option
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.
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.
-
RMan
- User
- Posts: 250
- Joined: Tue Jul 02, 2013 10:06 pm
Help with IPXV_PageSizeCtl2 and By Source option
You do not have the required permissions to view the files attached to this post.
-
MishaH
- User
- Posts: 46
- Joined: Wed Sep 11, 2024 1:43 pm
Re: Help with IPXV_PageSizeCtl2 and By Source option
Hi RMan,
Regarding your question:
1. To prevent the control from using document-specific data, and thus remove the "By Page" option, do not pass a document to the `IPXV_PageSizeCtl2::Init` method (set its second parameter to `nullptr`). Additionally, set the fourth parameter of this method to `2`.
2. An additional entry, such as "By Image" in the example you mentioned, can be added using the fifth and sixth parameters of the `Init` method. The fifth parameter specifies the entry's title, while the sixth specifies its description. You can also modify these values later using the `UserPaperTitle` and `UserPaperDesc` properties, respectively.
I hope this helps.
Kind regards,
Misha
Regarding your question:
1. To prevent the control from using document-specific data, and thus remove the "By Page" option, do not pass a document to the `IPXV_PageSizeCtl2::Init` method (set its second parameter to `nullptr`). Additionally, set the fourth parameter of this method to `2`.
2. An additional entry, such as "By Image" in the example you mentioned, can be added using the fifth and sixth parameters of the `Init` method. The fifth parameter specifies the entry's title, while the sixth specifies its description. You can also modify these values later using the `UserPaperTitle` and `UserPaperDesc` properties, respectively.
I hope this helps.
Kind regards,
Misha