Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print Report
Message
From
25/12/1998 21:15:53
 
 
To
24/12/1998 02:30:54
Annibale Freda
Freda Annibale
Rome, Italy
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00170171
Message ID:
00170452
Views:
26
Hello, Annibale
Here is a reprint of a post from Josh Weiss on a previous thread. It should tell you what you need to know.

*Begin Quoted Post

>Mark,
>
>I've done this with some success. The only thing I make sure to do is not change the orientation by blanking out Expr completely. Here's the code I use. It assumes the current directory is where the report and/or label files are.
>
>SET MEMOWIDTH TO 1024
>
>DIMENSION aFileType[2]
>aFileType[1]='*.FRX'
>aFileType[2]='*.LBX'
>
>FOR EACH cFileType IN aFileType
>
>  nNumReps=ADIR(aReps,m.cFileType)
>
>  FOR i=1 TO nNumReps
>    USE (aReps[i,1])
>    LOCATE FOR ObjType=1
>    IF FOUND()
>      REPLACE Tag2 WITH ''
>      m.cExpr=Expr
>      FOR j=1 TO MEMLINES(m.cExpr)
>        m.cLine=MLINE(m.cExpr,j)
>        IF m.cLine='ORIENTATION'
>          EXIT
>        ENDIF
>      NEXT
>      REPLACE Expr WITH IIF(m.cLine='ORIENTATION',m.cLine,'')
>    ENDIF
>  NEXT
>ENDFOR
>
>
>>Hi ,
>>I'm creating reports using the VFP report designer & just before I send a new report to my clients I intend to open the report's .frx file, go to record 1 & replace tag, tag2 & expr with "". Is this all I need to do to ensure the report will run properly on different printers. This sounds almost too easy to me. Does anyone know of any problems with this approach?

*End Quoted Post
>I have a computer that is connect to two printer through a switch.
>
>A printer have the emulation IBM Proprinter and other printer have the emulation HP.
>
>If I printed a report it is printed well on the printer Ibm proprinter and bad on the printer HP.
>
>I use these istructions for the printed of the report:
>
> set printer to getprinter()
> report form name report noconsole to printer
>
>In the Print setup the emulation is IBM proprinter. With the istructions above I do not succeed to modify the default printer.
>
>The istruction report form name report prompt do not work correctly.
>
>I use VFP 5.0. The istruction report form name report prompt work correctly in the VFP 6.0.
>
>I have order the VPF 6.0 for the upgrade to VFP 5.0.
>
>I hope of be clear!
>
>Merry Christmas to all! :-))
>
>Annibale
>ROME-ITALY
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform