Properties About dialog appearing

The Amyuni PDF Converter is our Printer Driver that enables you to convert any documents to PDF format. If you have any questions about installing and using the Amyuni PDF Converter please post them here.
Post Reply
avanderwoude
Posts: 11
Joined: Tue Apr 06 2004

Properties About dialog appearing

Post by avanderwoude »

One of our clients is sometimes presented with the Properties dialog containing only the About tab that displays the copyright and licensing information. When they click OK the PDF is created as expected, and life goes on. But why on earth would they be presented with this dialog? None of our other clients have this problem! Or at least, they haven't called our tech support about it, and I'm pretty sure they would have.

We are currently using PDF Converter 4.0.0.7, on both 32-bit and 64-bit platforms. The above problem is on XP 32-bit.

Any ideas?
Devteam
Posts: 119
Joined: Fri Oct 14 2005
Location: Montreal
Contact:

Re: Properties About dialog appearing

Post by Devteam »

We have never seen a case where the Properties dialog-box would appear on its own during a regular print process. For this dialog to appear, the user must click on Printer Properties or the application must call the DocumentProperties Windows API with the Prompt flag set. Check your application to see if you are calling DocumentProperties somewhere in your code and if by any chance the fMode parameter contains the DM_IN_PROMPT flag. Here is the documentation for DocumentProperties and the Prompt flag:

LONG DocumentProperties(
__in HWND hWnd,
__in HANDLE hPrinter,
__in LPTSTR pDeviceName,
__out PDEVMODE pDevModeOutput,
__in PDEVMODE pDevModeInput,
__in DWORD fMode
);

fMode [in]
The operations the function performs. If this parameter is zero, the DocumentProperties function returns the number of bytes required by the printer driver's DEVMODE data structure. Otherwise, use one or more of the following constants to construct a value for this parameter; note, however, that in order to change the print settings, an application must specify at least one input value and one output value.

Value Meaning
DM_IN_PROMPT Input value. The function presents the printer driver's Print Setup property sheet and then changes the settings in the printer's DEVMODE data structure to those values specified by the user. This value is also defined as DM_PROMPT.
Amyuni Development Team

Efficient and accurate conversion to PDF, XPS, PDF/A and more. Free trials at - https://www.amyuni.com
Post Reply