SYSTEM account not setting the correct margins

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
alvarezg
Posts: 2
Joined: Tue Sep 12 2006

SYSTEM account not setting the correct margins

Post by alvarezg »

Hi, I have a Windows 2000 server machine with the version 2.10d of PDF Converter. The problem im having is that the application that I run have to be scheduled to run as SYSTEM, but that account creates the printer and prints without any problem but it is incorrectly setting the margins.

My application uses the next settings to set the margins
pdfprinter.HorizontalMargin = 10
pdfprinter.SetDefaultConfig

Thanks!!!
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

I would advise you to set the margins when installing your application by writing a small script that does that.
The System user doesn't have a lot of rights and can't change the printer settings.

Hope this helps.
alvarezg
Posts: 2
Joined: Tue Sep 12 2006

Post by alvarezg »

You mean changing the Defaults margins of the Driver itself??

Cause in my application Im creating a new printer dinamically then I set the desire margins, but it would be perfect to change the default values.

Thanks!
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Yes, i mean changing the values of the driver iteself.

You can do that at the same time you are installing the printer (i assume that you are installing the printer while logging as an Administrator).

You can also install the printer using Install.exe on the system and change its settings and in your application you will becalling DriverInit instead of PDFDriverInit.

This will work if you have version 2.10 or 2.50.

Hope this helps.
Post Reply