Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Windows XP and Dot Matrix printers
Message
De
10/07/2002 09:11:20
 
 
À
10/07/2002 08:51:42
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00676715
Message ID:
00677009
Vues:
30
That is how we did it on literally hundreds of reports up until recently. However, many of our customers (we have around 700-1000 at any given time) are now purchasing GDI printers (or they come with their new systems) so we are converting our reports (sheesh, what a task!) to VFP reports using the report writer to accomodate both the older dot-matrix printers that use perforated halfsheets and laserjets and GDI printers. Using a report generated with the VFP report writer, I cannot set the page size to anything other than predefined form sizes in windows 2k and XP unless I setup a new form in windows on all OS versions that our customers use. I need to be able to do this programmatically from within VFP so the form exists in windows before they attempt to print the report after it has been redone using the report writer. For instance, if the customer is printing to a laserjet, then I want the pagesize to be letter, but if the customer is printing to halfsheets on a dot-matrix, then I want the papersize to be 8.5X5.5. Any ideas? All accommodating reports generated using the vfp report writer, not sending codes to printers as GDI printers don't accept codes.

Tracy

>>Yes, this is how I'be been doing it in development. However, I need the formsize available on all workstations when the app is distributed too. Is there anyway to do that programmatically from within VFP7?
>
>For my own purposes, when the user uses a dot-matrix printer, he usually wants to print in text-mode.
>
>Sending codes to the printer sets the page-length, as far as the printer is concerned.
>
>For instance: sending ESC (i.e., chr(27)) + "C" + chr(33) will set the printer to 33 lines - half the standard of 66. If I later issue chr(12) (form-feed), the printer will advance to the next half-page.
>
>However, all this is only if you print in text-mode. Also, I didn't test this under Windows XP.
>
>Regards, Hilmar.
>
>>
>>TIA,
>>Tracy
>>
>>>In Win2K or WinXP, to set up custom paper size: Select Printers and Faxes from the "Start" button. Then select "Server Properties" from the "File" menu. From the "Forms" tab of the next screen, you can create a new form.
>>>
>>>>Under W2k were you printing reports on special size paper using the VFP report generator? Or were you using ?? or @...says to accomplish the printing? I have had to use ?? or @...says to print to special sized paper in w2k so I would be interested in knowing your solution in Windows 2000. It is my understanding that in Windows 2000, Windows NT, and Windows XP (all NT really) that the form has to be setup in windows as a pagesize in order to do this.
>>>>
>>>>Tracy
>>>>
>>>>>Has anybody a solution to this probelm ?
>>>>>
>>>>>Our clients use Dot Matrix printers a lot for printing forms (e.g. Multiple part Invoices, Delivery dockets etc (Different clours on each part)
>>>>>
>>>>>Up to Win XP, the Printer Drivers worked because there was always an option within the Printer driver called 'Form Depth'. So if a form was 6 inches, a Printer could be set up for this.
>>>>>
>>>>>I cant find this anywhere now in XP, with any of the printer drivers.
>>>>>
>>>>>Any help appreciated.
>>>>>
>>>>>Regards,
>>>>>
>>>>>Gerard
.·*´¨)
.·`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"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform