Printing to file in Windows NT

If you are a VB developer and have questions about using our products from VB, here is the place to post them.
Post Reply
juni01967
Posts: 1
Joined: Thu Apr 10 2003
Location: Jönköping, Sweden

Printing to file in Windows NT

Post by juni01967 »

I have made an application in Visual Basic 6.0 with SP 5.

In Windows 2000 everything works just fine, but in Windows NT it seems like the settings below are ignored.

pcdi.EnablePrinter (I send company name and reg.key)

pcdi.Resolution = 1200
pcdi.FileNameOptionsEx = 1 + 2
pcdi.DefaultFileName = Left(psFil, Len(psFil) - 4) & ".pdf" ' set output file name

In Windows NT it tries to print to the port specificed in the printer, not creating a file as specified.

Grateful for quick response!

Regards,

Örjan
Post Reply