>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.