I am having an issue with a Print dialog box that shows up when using the PDF-Xchange ActiveX SDK.
From the toolbar when I click on the Print Icon, it shows up the Print dialog as expected. Looking at the image, the document is rotated and hence out of the page and when I click Print at this point, it shows an additional dialog, shown further below.
(in the file attached)
The additional dialog box
(In the file attached)
This dialog has the warning saying that the page is out, which is good, however, there is a checkbox which says [] Do not show this message again. I had checked that and clicked Yes. The next time, it still shows the Dialog box and the checkbox is not selected. Is there a way in the Code to disable these warnings? I have also tried selecting Auto-rotate sheets, auto-center pages in sheets and choose paper source by PDF page size, but another type of dialog does come on the screen.
I am getting this error when running the control with a Windows administrator user as well as standard user user.
Also, can I get a list of Prompts.xxxxx that could be entered in the Windows Registry
Could you give me some helps here? I am coding with C#.
Thanks in advance,
Vincent
Print Dialog on PDF XChange ActiveX SDK
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- User
- Posts: 6
- Joined: Tue Feb 24, 2015 10:05 pm
Print Dialog on PDF XChange ActiveX SDK
You do not have the required permissions to view the files attached to this post.
-
- Site Admin
- Posts: 19868
- Joined: Mon Jan 12, 2009 8:07 am
Re: Print Dialog on PDF XChange ActiveX SDK
Hello Vincent,
This is the prompt you need:
There is a
Prompts
page in the Viewer AX manual - but it does not seem to have the full list there, so I will check with our devs if I can get that one for you.
Regards,
Stefan
This is the prompt you need:
Code: Select all
pdfControl.SetProperty(“Prompts.PrintCroppedPagesWarn”, false, 0);
Prompts
page in the Viewer AX manual - but it does not seem to have the full list there, so I will check with our devs if I can get that one for you.
Regards,
Stefan
-
- User
- Posts: 6
- Joined: Tue Feb 24, 2015 10:05 pm
Re: Print Dialog on PDF XChange ActiveX SDK
Thanks Stefan for your reply. I am going to try it. I look forward to the list of prompts.
Regards,
Vincent
Regards,
Vincent
-
- Site Admin
- Posts: 19868
- Joined: Mon Jan 12, 2009 8:07 am
Re: Print Dialog on PDF XChange ActiveX SDK
Hi Vincent,
I am having some issues with formatting this as plain text here in the forums... so attached as an image is the current list of prompts.
Regards,
Stefan
I am having some issues with formatting this as plain text here in the forums... so attached as an image is the current list of prompts.
Regards,
Stefan
You do not have the required permissions to view the files attached to this post.
-
- User
- Posts: 6
- Joined: Tue Feb 24, 2015 10:05 pm
Re: Print Dialog on PDF XChange ActiveX SDK
Hi Stefan,
I tried the settings mentioned, both code or registry did not work for me. The dialog still pops up, we have some data outside borders or when the page is rotated, the dialog box shows up. (see top green box) - Image1.png
The registry was as in Image-2.png and the code was
axCoPDFXCview1.SetProperty("Prompts.PrintCroppedPagesWarn", "false", 0);
Is there anyway I can programatically select the PageScaling options in the print dialog, to be set to Auto-rotate and the other options as checked. (Image-3.png)
No matter what I try, the settings are not getting saved either. The system is a windows 7 32 bit system. I have seen other posts and none of them seem to have a solution on this one.
I really need a solution for this one, its getting frustrating for the client as they need to handle an additional click.
Thanks,the
Vincent
I tried the settings mentioned, both code or registry did not work for me. The dialog still pops up, we have some data outside borders or when the page is rotated, the dialog box shows up. (see top green box) - Image1.png
The registry was as in Image-2.png and the code was
axCoPDFXCview1.SetProperty("Prompts.PrintCroppedPagesWarn", "false", 0);
Is there anyway I can programatically select the PageScaling options in the print dialog, to be set to Auto-rotate and the other options as checked. (Image-3.png)
No matter what I try, the settings are not getting saved either. The system is a windows 7 32 bit system. I have seen other posts and none of them seem to have a solution on this one.
I really need a solution for this one, its getting frustrating for the client as they need to handle an additional click.
Thanks,the
Vincent
You do not have the required permissions to view the files attached to this post.
-
- Site Admin
- Posts: 19868
- Joined: Mon Jan 12, 2009 8:07 am
Re: Print Dialog on PDF XChange ActiveX SDK
Hi Vincent,
Please make sure you have the latest builds of the Viewer AX SDK, and then make sure to disable this prompt early in your code - before calling the Print routine.
The registry setting will only have effect for the end user Viewer and won't affect how the AX Control works - so you need to set the "Prompts. ..." via code.
Please note that the disabled prompt will only have effect if you print via code:
https://help.pdf-xchange.com/DEV/de ... _obj_print
(Take a look at the "Scale Simple" sub entry for the scaling types).
If you however leave your users to have access to the default print dialogue provided by the Viewer - I am afraid that you can't control the values in that dialogue via code, so they will have to set them up themselves, or you can disable the print button in the Viewer control and provide a separate print button in your main program. You can then present the users with a custom window of your choise, and then process the printing via code yourself.
Regards,
Stefan
Please make sure you have the latest builds of the Viewer AX SDK, and then make sure to disable this prompt early in your code - before calling the Print routine.
The registry setting will only have effect for the end user Viewer and won't affect how the AX Control works - so you need to set the "Prompts. ..." via code.
Please note that the disabled prompt will only have effect if you print via code:
https://help.pdf-xchange.com/DEV/de ... _obj_print
(Take a look at the "Scale Simple" sub entry for the scaling types).
If you however leave your users to have access to the default print dialogue provided by the Viewer - I am afraid that you can't control the values in that dialogue via code, so they will have to set them up themselves, or you can disable the print button in the Viewer control and provide a separate print button in your main program. You can then present the users with a custom window of your choise, and then process the printing via code yourself.
Regards,
Stefan
-
- User
- Posts: 6
- Joined: Tue Feb 24, 2015 10:05 pm
Re: Print Dialog on PDF XChange ActiveX SDK
Thanks Stefan for your help. I solved this issue in a different manner and thought I should share the cool feature that you guys have developed.
The tool lets you save settings in an .dat / .ini file. I saved the hide dialog boxes options in our .ini files and then loaded the setting.ini file in the ActiveX Control, and voila, no more popups
Its a different approach to solve, but I am hoping someone could use this cool feature you guys developed. And isn't sharing the reason for forums?
Thanks,
Vincent
The tool lets you save settings in an .dat / .ini file. I saved the hide dialog boxes options in our .ini files and then loaded the setting.ini file in the ActiveX Control, and voila, no more popups

Its a different approach to solve, but I am hoping someone could use this cool feature you guys developed. And isn't sharing the reason for forums?

Thanks,
Vincent
-
- Site Admin
- Posts: 19868
- Joined: Mon Jan 12, 2009 8:07 am
Re: Print Dialog on PDF XChange ActiveX SDK
Hi Vincent,
Yes using the settings file you can import more than just this setting (you can also customize the toolbars arrangement and what tools are available on them, load them then lock them via code).
Sorry for not remembering this myself to recommend it earlier - but I was answering you assuming you wanted to perfomr the printing via code alone.
Regards,
Stefan
Yes using the settings file you can import more than just this setting (you can also customize the toolbars arrangement and what tools are available on them, load them then lock them via code).
Sorry for not remembering this myself to recommend it earlier - but I was answering you assuming you wanted to perfomr the printing via code alone.
Regards,
Stefan