>>For some reason I can't get my labels report to print to my dot matrix printer. I have tired running this report from different workstations and printers and it still doesn't work. I set the default printer to the dot and it still prints to my laser. I use the sys(1037) command to select my printer before printing and it still prints to my laser. Does anyone have any ideas why it does this.
>>
>>Thanks in advance,
>>Tyler
>
>Maybe you created the report with your laser as the default printer and didn't cleaned the .FRX file. So, clean the .FRX first.
Yes, in addition, I found that there is a serious problem on printing Label, especially continuous paper!!
Why? Win9X/NT use Graphic mode to printing, the print-marigin is different from
actual paper size! Take Espon Dot printer as example, you can't print the
TOP 4mm in any paper size define!! ~_~
To clean the frx:
Use myReport.Frx && Report actually is also a VFP table!!
Blank Field Tag,tag2,expr && the first record is carrying Printer info!
* Now, if you want a landscape printing:
* Replace expr With expr + "Orientation=1"
* Well, if you need Custom papersize:
* Replace expr With expr + "PAPERSIZE=256" + CHR(13) + ;
* "PAPERLENGTH=2750" + CHR(13) + "PAPERWIDTH=2100" + CHR(13)
* Means: 27.5 cm x 21.0 cm
Use && Close the Report!
To print the report/label to you
Appointed Printer:
PrintJob
IF EMPTY(THISFORM.GETPRINTER)
PR = GETPRINTER()
ENDIF
if EMPTY(THISFORM.GETPRINTER)
Return && user click cancel =} Cancel Print!
ENDIF
THISFORM.GETPRINTER = "&PR"
Set Printer to Name "&PR"
IF thisform.opPrint.Value = 1 && Print Preview
keyboard F10 LABEL FORM myLabel.lbx PREVIEW
ELSE
LABEL FORM myLabel.lbx TO PRINTER NOCONSOLE
ENDIF
EndPrint
^_~ Hope this information can help you start!
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.