Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Margins getting chopped
Message
De
17/06/2015 14:45:59
 
 
À
17/06/2015 13:53:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01621019
Message ID:
01621089
Vues:
54
>>>aL,
>>>
>>>This is a new report. All settings are as you have them. So I still don't know why it is putting the default printer (CutePDF) in the report. Then when I select the laser printer, it chops off the margins.
>>
>>Hmm, what happens if you temporarily change your Windows default printer to something else? Does that new default printer now show up, or is it still CutePDF?
>
>This is what I did:
>
>
>Windows default printer = HP LaserJet M1530 MFP Series PCL 6
>VFP default printer = HP LaserJet M1530 MFP Series PCL 6
>Text in the 'printer' textbox of the 'page layout' tab of report properties = HP LaserJet M1530 MFP Series PCL 6 (Default)
>
>
>I then changed the Windows default printer to CutePDF Writer. However, the VFP default printer did not change.
>
>
>Windows default printer = CutePDF Writer
>VFP default printer = HP LaserJet M1530 MFP Series PCL 6
>Text in the 'printer' textbox of the 'page layout' tab of report properties = HP LaserJet M1530 MFP Series PCL 6 (Default)
>
>
>I then changed the VFP default printer to CutePDF Writer.
>
>
>Windows default printer = CutePDF Writer
>VFP default printer = CutePDF Writer
>Text in the 'printer' textbox of the 'page layout' tab of report properties = CutePDF Writer (Default)
>
>
>The problem seems to be that when the default printer is CutePDF Writer, when I issue the following:
>
>
>lcFile = 'INTFBTCH'
>DO (_REPORTOUTPUT) WITH 1, 'loListener'
>
>loListener.PRINTJOBNAME = "C:\pj\INTF\Batch Packages\" + lcFile
>REPORT FORM intfbtch TO PRINTER PROMPT PREVIEW OBJECT loListener
>
>
>VFP presents a dialog that has CUTEPDF selected and even when I change that to HP Laserjet, it still seems to be using the underlying printer driver of the default printer, CutePDF!
>
>Bottom line: When the default VFP printer is CutePDF, the output is not right even if I select the Laserjet for print.
>
>How can I solve this???

Does the report print properly as long as the default VFP printer is not CutePDF?

As a workaround, maybe you could set the default VFP printer to something else, then set it back when you're finished e.g.
m.lcOldDefaultPrinter = SET( "PRINTER", 3 )
SET PRINTER TO [something other than CutePDF]
...
* Do your reporting
...
SET PRINTER TO ( m.lcOldDefaultPrinter )
I haven't used REPORTBEHAVIOR 90 enough to be able to help troubleshooting if it's something related to that. But some other general things to check:

- Are you running the FRX you think you're running? e.g. maybe you're running one embedded in an EXE when you think you've specified one on disk, or you have a PATH set and you're not running the one you want?

- In the design of the report, in its Properties...Page Layout tab, is the Print Area set to "Printable page" (the default) or to "Whole page"? If the report was originally designed for CutePDF, someone may have set it to the latter (since a PDF printer driver can print to the whole page) - which might cause problems when printing to a physical printer
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform