creating. You can use all the same features. Maybe the problem is due to the fact that
the report printer setting is already set when you call your procedure.
If someone thinks I'm wrong, don't hesitate to correct me
---------------------------------------------------- Bacon Joannick Stagiaire Informatique / IT trainee B O A - F R A N C | M I R A G E T 418.227.1181 #2313
F 418.227.1188 ---------------------------------------------------- www.boa-franc.com ----------------------------------------------------
-----Message d'origine-----
De : Thomas Vogt Poulsen [mailto:[EMAIL PROTECTED] Envoyé : Thursday, November 13, 2003 8:54 AM
À : [EMAIL PROTECTED]
Objet : [development-axapta] "Printing" to a RTF file
Hey
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
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Yahoo! Groups Sponsor ADVERTISEMENT
click here
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

