Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Guido Diemer
  Where is Guido Diemer?
 Alkmaar
 Netherlands
 Guido Diemer
 To: Ken Murphy
  Where is Ken Murphy?
 Springhill
 Canada
 Ken Murphy
 Tags
Subject: RE: Printing on fiscal priner
Thread ID: 112270 Message ID: 112454 # Views: 2 # Ratings: 0
Version: Visual FoxPro 9 Category: Reports and Printers
Date: Wednesday, November 08, 2006 7:27:44 PM         
   


> > Hello,
> > I have a problem with printing on a fiscal printer from vfp aplication. Can you advice me on how to bypass a default system printer setting in order to be able to run standard printouts on a default printer and fiscal printouts on a fiscal one.
> > Regards
> > Richard

>
> Richard,
>
> I have absolutely no idea what a "Fiscal" printer is, but take a look at the following in help:
>
> SET PRINTER TO
> This command will allow you to select the correct printer without user intervention. For example,
> SET PRINTER TO [\\Computer\SharedPrinter]
> SET PRINTER TO NAME WindowsPrinterName
>
> REPORT FORM ... PROMPT
> Take a look at the PROMPT clause in the REPORT FORM command. This displays the printer dialog for you and your user can use it to select the appropriate printer. For example,
> REPORT FORM [Path2\MyReport] PREVIEW PROMPT
>
> GETPRINTER()
> This allows the user to select a printer from a dropdown.
>
> APRINTERS()
> Stores information about available printers to an array
>
> Hope this helps,
>
> Ken
> You shall know the truth - and the truth shall set you free. (John 8:33)


Richard,

I too have applications that print to more than 1 device.
What I did was the following:

1)
Name the printers in the Windows Control Settings, and give them simple names:
I use CANON for the Canon LBPIII etc. and EPSON for that the Epson FQ 590 III.
This is done by simly renaming the printer through the properties.

2)
In VFP is use the clause
SET PRINTER TO NAME CANON 

if I want to print to the laser printer and
SET PRINTER TO NAME EPSON

for the other printer.

To print to the system default printer use
SET PRINTER TO DEFAULT
.

3)
If you do not have those printers fysically at your PC,
but still want to test your app,
create the printers nevertheless in windows and let them print to port NULL:


gr. Guido

ENTIRE THREAD

Printing on fiscal priner Posted by Ferenc Richard @ 11/7/2006 12:21:09 AM
RE: Printing on fiscal priner Posted by Ken Murphy @ 11/7/2006 2:11:38 AM
RE: Printing on fiscal priner Posted by Guido Diemer @ 11/8/2006 7:27:44 PM
RE: Printing on fiscal priner Posted by Michael Kopljan @ 11/9/2006 6:58:35 AM
RE: Printing on fiscal priner Posted by Guido Diemer @ 11/9/2006 9:30:44 PM
RE: Printing on fiscal priner Posted by Borislav Borissov @ 11/9/2006 9:44:05 PM
RE: Printing on fiscal priner Posted by Guido Diemer @ 11/9/2006 10:05:29 PM