Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing the Windows default printer
Message
From
17/01/2002 15:51:52
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00606147
Message ID:
00606366
Views:
22
WOW! I set a record!!! My reply beat yours Sergey by 31 seconds!!!! Did anyone else notice??? I deserve a reward for that! I don't think it's EVER been done before!!!
:0)



Tracy




>Try
SET PRINTER TO <b>NAME</b> (aMyPrinters[nPDF, 1])
>
>>I'm having a problem changing the Windows default printer.
>>I have an HP 4000 TN laser printer as my default printer.
>>I have a PDF printer driver installed (it's name is "DocuCom PDF Driver").
>>In my program I do the following:
>>
>>	=APRINTERS(aMyPrinters)
>>	
>>	FOR n=1 TO ALEN(aMyPrinters, 1)
>>		IF "DocuCom PDF Driver" $ aMyPrinters[n, 1]
>>			nPDF = n
>>		ENDIF
>>	ENDFOR
>>	
>>	IF nPDF = 0
>>		MessageBox("no PDF printer found, can't create the PDF report, will print normal instead.")
>>	ELSE
>>		SET PRINTER TO aMyPrinters[nPDF, 1]
>>	ENDIF
>>
>>The program recognizes that the "DocuCom PDF Driver" is there and the VFP printer is set to it but when I print my printout still goes to the HP which is set as my Windows default printer. I need to go to the "DocuCom PDF Driver" to create my PDF....but that's not happening.
>>
>>What am I doing wrong and what should I be doing instead?
>>TIA,
>>Rick Liebespach
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform