The 7.X Driver's control is different from earlier versions. Instead of writing control settings to Windows registry directly, control settings are now grouped into several INI files referenced through Windows registry. Developers can use Windows APIs to read from or write to those control files to modify PDF Driver's behavior programmatically. The path is "%SystemDrive%\Documents and Settings\<User Name>\Application Data\Zeon\DocuCom\PDF Driver". To change page layout, you can modify "General.ini". You can change the value of "Orientation: to 1(portrait) or 2(landscape). But please note: When application chooses page layout, it queries the supported paper size of selected printer, then determines the most suitable size for the document. If application does not choose a paper size, the current(default) paper size of he printer is used. Only modify the setting directly in "General.ini" WILL NOT change the "Default" page layout, because Windows keeps "Default" setting by itself. you must also notify Windows to change the "default" page layout. You cannot add custom layouts to standard layouts. To use custom layout when print with VB6, you can change the value of items "bCustomPage, Width, Height, Units and margin" programmatically to specify the custom layout. Change the value of "bCustomPage" to "0(no) or 1(yes)"; the value of "Width, Height and margin" are float number to customize pager; the value of "Units" are unit "0(inches), 1(mm) or 2(points)".
|