Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to set custom paper sizes for Dot Matrix Printers
Message
From
13/07/2001 21:22:14
 
 
To
13/07/2001 09:33:40
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgia, United States
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00530201
Message ID:
00530571
Views:
14
>I want to print a 20 inch contract using the Report Writer. Unless I set the printer to custom paper and set the page dimension I get the error about the band is too large to fit on the page. I can set the printer by using the printer driver icon, but how do I do this programatically for my users? Is this hidden in a VFP function or do I make certain windows calls or do I have to buy a third party tool? Thanks.




Maybe you try to hack the .frx file for test.

Use myreport.frx
Blank Field Tag, Tag2 && Old setup Binary code
Browse
* you can edit the expr field by press CTRL+PageDown
* Or you directly code:
* REPLACE expr with [papersize=256] + CHR(13) +;
* [pagelength=xxx] +CHR(13) +;
* [pagewidth=yyy] +CHR(13) +;
* [Orientation=1] +CHR(13) && landscape

Use && Close file




Another way is to print the report in coding.

SET DEVICE TO PRINTER
SET PRINTER ON
SET PRINTER FONT [Lucida Console], 12 && Special font which fit the DOS print height
? myTable.field1+CHR(13)
...
SET PRINTER OFF
SET DEVICE TO SCREEN

This got another problem, if NOT full 1 page, the screen wait you finish.
Unless you quit application, else can't get last page...

I don't suggest you do it in DOS text print unless you really fail to do it in window mode
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform