Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Print PDF/PS File Directly from VFP to printer
Message
From
07/01/2013 05:05:27
 
 
To
07/01/2013 04:35:51
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01561574
Message ID:
01561580
Views:
91
You may have to send an email to Michel (mfournier@levelextreme.com) so that he changes your name, I am not quite sure about that. But please promise to do so, it feels so impersonal to talk to a "box".

To print a PS, I am pretty sure that you can do it this way:
lcOldPrinter = set('printer')
lcPrinter = getprinter()
if !empty(lcPrinter)
   set printer to name lcPrinter
Endif
copy file (fullpath(yourfile.ps)) to printer
set printer to name (lcOldPrinter)
This code will printer to the default Windows printer. See here how you change this printer: http://www.berezniker.com/content/pages/visual-foxpro/changing-windows-default-printer. In your case you may have to save the current printer (Set('printer',1)) first, so that you can restore it afterwards.

>I was looking for the user profile to change the name but didn't find it from where to change.
>
>Harsh
>
>
>>It's nice to "talk" to a person, and not a "box". Please change your name in your user profile, and we are ready to roll. As you have been told earlier, Universal Thread doesn't allow fake accounts.
>>
>>NB! Please excuse me for being so harsh with you. Pun intended. :-)
>>
>>>Good Repartee. "If you want to live in anonymously in a box".. Code Box. Well I dont to be in that at all.
>>>My name is Harsh.
>>>
>>>
>>>
>>>
>>>
>>>>I want to help you, but by principle I don't help people who use a pseudonym. If you want to live in anonymously in a box, you should be prepared to take the consequences.
>>>>
>>>>Please change your name to your real name in the user profile.
>>>>
>>>>>I have a. DBF File that Contains Thousands of records having full path of the PDF/PS files.
>>>>>
>>>>>I.e
>>>>>
>>>>>FileName FULLPATH
>>>>>1234.PS C:\April\1234.PS
>>>>>567.PS C:\April\567.PS
>>>>>
>>>>>
>>>>>I want to direct all the above files to print without opening these files
>>>>>
>>>>>Also If possible, before printing it should give a list of available printers so that user can select one.
>>>>>
>>>>>What is the command line printing command in VFP to this. Please Guide
>>>>>
>>>>>
>>>>>Regards
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform