I have a problem with printing to a file in RTF (or HTML) format. When printing my report and choosing RTF etc. it look great, but my report is also called without the prompt. Therefor I have to set the fileformat, filename, paperorientation etc. in my code:
Public void autoPrintSettings()
{;
reportRun.printJobSettings().setTarget(PrintMedium::File);
reportRun.printJobSettings().preferredFileFormat
(PrintFormat::RTF);
reportRun.printJobSettings().fileName(strfmt("%1\%2", WinAPI::getTempPath(), #TempFileName));
reportRun.printJobSettings().paperOrientation
(PrinterOrientation::Landscape);
reportRun.printJobSettings(printJobSettings.packPrintJobSettings
());
}
It seems like when doing this the printsettings is changed but not used. The report is correctly written to the TempFile but the format i TEXT and paperorientation is Portrait (or AUTO).
Anyone tried doing something like this. Am I missing a parameter and in that case where can a trace it?
Best of luck Thomas Poulsen
Yahoo! Groups Sponsor
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

