Re: Problem printing reports in color by Cathy
Cathy
Thu Dec 20 16:17:26 CST 2007
The printer environment is something that is saved in the FRX file. It holds
code that is specific to the printer that was used when you save a report.
In older versions of FoxPro, it always saved this information and you didn't
have a choice in the matter. In more recent versions, you can control
whether to save this information. Just click on the menu and pick Reports
and Printer Environment.
In older versions you have to hack the FRX file to get rid of the printer
environment.The first record in the table contains 3 fields with the
information. Start by clearing the TAG and TAG2 fields. The 3rd field you
have to hack is the EXPR field.. but you can't blindly clear it. It has some
information that you want to keep. Edit the table, look at the field and get
rid of anything that is printer-specific.It's a real PITA .. but it's HIGHLY
recommended to always get rid of the printer environment because it causes
problems .. like the color issue you are experiencing. You can write a
program that goes through all your reports and strips this out and then hook
it up to a Project Hook. That way every time you build your app it can make
sure the reports are okay. You have to remember that ANY time you save the
report, it will save the printer environment.
Cathy
"James Lyall" <james@lyall.demon.co.uk> wrote in message
news:xI69T1GOkraHFwBF@lyall.demon.co.uk...
> Cathy Pountney wrote ...
>
>>Make sure the printer environment is not saved with the report.
>
> Thank you Cathy for your response.
>
> Maybe I am being stupid, but I'm not sure what the printer environment is
> or how it is set.
>
> I fire up a preview of the report on screen (which is perfect) and then,
> in the little print preview window, hit the printer icon having set the
> default printer to Adobe PDF. The report produced is perfect but in black
> and white.
>
> Any suggestions?
> --
> James Lyall