Thanks Leo/Sumit It helped. Is there a way to also set a specific printer while a batch job is run. Like if I have a report which runs on batch can we specify a printer depending on some conditions in report Thanks Vishal
On 5/23/07, Leo Vee <[EMAIL PROTECTED]> wrote: > > Hi Vishal G, > > > Please try this... > > ************************************************* > static void PrinterList(Args _args) > { > PrintJobSettings printJobSetting = new PrintJobSettings(); > int i = 1; > ; > > while (i<=printJobSetting.getNumberOfPrinters()) > { > if (!printJobSetting.getPrinter(i)) > break; > info(strfmt("%1 - %2",i,printJobSetting.getPrinter(i))); > i++; > } > } > ************************************************* > > __________________________________________________________ > How would you spend $50,000 to create a more sustainable environment in > Australia? Go to Yahoo!7 Answers and share your idea. > > http://advision.webevents.yahoo.com/aunz/lifestyle/answers/y7ans-babp_reg.html > > [Non-text portions of this message have been removed] > > > [Non-text portions of this message have been removed]