I've made a little of customisation in enterprise portal for printing reports to a file:
printJobSettings printJobSettings; str 64 file; ReportRun reportRun; ; file = "\\machineName\SharedFolderName\fileName.RTF"; args = new args(); args.name(reportstr(ReportName)); args.caller(this); reportrun = classFactory.reportRunClass(Args); if (reportRun) { printJobSettings = reportrun.printJobSettings(); printJobSettings.setTarget(PrintMedium::File); printJobSettings.format(PrintFormat::RTF); printJobSettings.fileName(file); reportrun.init(); reportrun.run(); } <..> In addition report property Interactive is set to NO In the example below i use this piece of code to set up paper pickup when printing Project invoice: FIrst page is printed from tray that has id TrayNo1, other pages prom Tray with Id TrayNo2. printJobSettings.deviceName() - gets name of default printer. void traySetup() { ; element.printJobSettings().addTrayPageCopy(element.printJobSettings().getTray(TrayNo1), 1,1); element.printJobSettings().addTrayPageCopy(element.printJobSettings().getTray(trayNo2), 2,2); } It must be mentioned that it is difference where the report class is runned On. Because server ant client computer can have different default printers. Also wicked behaviour has been noticed when working on 3tier. I couldn't manage to set up different trays for printing on 3tier, while it works fine on 2 tier. if you will succeed - feedback is welcome :) ! --- drescher_r <[EMAIL PROTECTED]> wrote: > I'd like to print a daily report which shows open > tasks from projects. > The problem is, that this must be created and > printed automatically, > for which i have to > - print from a report method without interaction, > the target being > window's default printer > - select printing options like paper format > > i found sysPrintOptions and it's child > printJobSettings - but the > documentation is (mildly spoken) poor > > any ideas how i could find out changing the printer > settings? I'd like > to change the windows default if that's possible, > like when the report > is started, it gets the current printer settings and > changes them to > fit the desired, then it creates the report and > prints using the now > changed defaults > > help,anyone? > > > > Paulius Cerniauskas Phone: +37062049339 ICQ: 280959446 __________________________________________ Yahoo! DSL Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com ------------------------ Yahoo! Groups Sponsor --------------------~--> Put more honey in your pocket. (money matters made easy). http://us.click.yahoo.com/F9LvrA/dlQLAA/cosFAA/kGEolB/TM --------------------------------------------------------------------~-> Sharing the knowledge on Axapta. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/Axapta-Knowledge-Village/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/