Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Camil Ghircoias
  Where is Camil Ghircoias?
 Sibiu
 Romania
 Camil Ghircoias
 To: Atul Deshpande
  Where is Atul Deshpande?
 gondia
 India
 Atul Deshpande
 Tags
Subject: RE: How to Print Draft Text in VFP?
Thread ID: 33397 Message ID: 33955 # Views: 3 # Ratings: 0
Version: Visual FoxPro 8 Category: Reports and Printers
Date: Friday, December 5, 2003 11:52:25 AM         
   


> > > > > > I don't know if you can do this with report form to printer from vfp.
> > > > > > There are anyway solutions.
> > > > > > 1. Design and print your report with generic/text only printer driver. Doesn't matter you have epson printer installed.
> > > > > > set printer to name 'Generic / Text Only'
> > > > > > report form x to printer
> > > > > >
> > > > > > 2. Design your report in foxpro26 for dos and run in vfp (without opening it) into a file
> > > > > > report form x to file x.txt
> > > > > > then,
> > > > > > set printer to name "your Epson printer"
> > > > > > ??? chr(27)+... &&your dos printer codes or put them at the begining of the x.txt
> > > > > > copy file x.txt to lpt1.dos &&to bypass the window spooler
> > > > > >
> > > > > > 3. You can obtain the text file also by setting the default printer to generic text/only and running the report
> > > > > > report form x to file x.txt (without the ascii clause wich is bullsheet, because is unusable.). The rows/page and cols/page will be obtained by the pagesize you chose.
> > > > > >
> > > > > > 4. I'm very!!! interested in other solutions, so if anybody knows something else please tell us...
> > > > > >
> > > > > > Camil Ghircoias
> > > > > I cannot understand why you are not using printer fonts directly. You can print bi-directionly with dos speed. I do use it. Pl. explain the reasons why you are not using it.
> > > > >
> > > > > atul
> > > >
> > > > I wish to have dos speed, but printing directly to the printer with report form x to printer will print in graffic mode, so the speed is worst then bypassing the windows spooler.
> > > > Anyway, what fonts do you use ?
> > > > I've tried with courier new, foxfont, lucidaconsole times new roman and the the printer is working hard to print a row.
> > > > Camil Ghircoias
> > > You have to use printer font. Printer Icon appears in front of printer font. Even if you install generic text/only printer a lot of printer fonts are there. Even in epson fx 1050 you can use draft or sans serif font. Printing will be bdirectional and at it's best speed.
> > >
> > > atul
> >
> > Thank's Atul. I'll try.
> > But I wonder if it works if I want to print the report to a customer who has laser printer and the fonts in the report definision file are from epson dot matrix. And if your app has 40 reports and you have 50 customers with 5 different types of printers, this could make you sad.
> > Camil Ghircoias
> Hello,
> I hav'nt encountered this problem since my cust. use d.m. printer for there bulk printing (like ledgers , cashbooks, bills etc.)
> I have tried the solution no.1 that you have suggested earlier. But problem is that even the header in the report ,Which i wish to print with some bigger size font, prints in small size. What do you do with it?
> -- atul
>
> atul

You can put before the title and after it a field with chr() values to set the title to a bigger font and then restore to default. After you print to a file you'll have in the file the characters for programming the printer so you only need to print the file.
I've tried what y. suggested with the printer fonts but the speed is still very slow because for every field it takes 2 times to the epson matrix printer to print. I think I'll use the method no 2 untill ....god knows.
Camil Ghircoias

ENTIRE THREAD

How to Print Draft Text in VFP? Posted by qi seven @ 11/26/2003 4:27:58 AM
RE: How to Print Draft Text in VFP? Posted by Troy Reganall @ 11/26/2003 2:23:34 PM
RE: How to Print Draft Text in VFP? Posted by qi seven @ 11/27/2003 1:30:09 AM
RE: How to Print Draft Text in VFP? Posted by camil ghircoias @ 11/27/2003 4:12:25 PM
RE: How to Print Draft Text in VFP? Posted by Atul Deshpande @ 11/29/2003 4:00:44 AM
RE: How to Print Draft Text in VFP? Posted by camil ghircoias @ 11/30/2003 7:09:24 PM
RE: How to Print Draft Text in VFP? Posted by Atul Deshpande @ 12/3/2003 4:10:15 AM
RE: How to Print Draft Text in VFP? Posted by camil ghircoias @ 12/4/2003 4:59:37 PM
RE: How to Print Draft Text in VFP? Posted by Atul Deshpande @ 12/5/2003 4:12:06 AM
RE: How to Print Draft Text in VFP? Posted by camil ghircoias @ 12/5/2003 11:52:25 AM
RE: How to Print Draft Text in VFP? Posted by Atul Deshpande @ 12/5/2003 2:28:55 PM
RE: How to Print Draft Text in VFP? Posted by camil ghircoias @ 12/5/2003 5:19:52 PM
RE: How to Print Draft Text in VFP? Posted by qi seven @ 12/3/2003 7:14:42 AM