Page 1 of 1

flex version, I'd like to print it out without a screen pop!!

Posted: Mon May 21, 2012 3:25 am
by swyu
please, check source!

" direct print "

source ->

var xmlData:XML = new XML(content);
// Load report from XML string
report.loadReportFromString(formatContext);
// Clear all existing databases in report
report.dictionary.databases.clear();
report.regDataXML( "Demo" ,"Demo", xmlData);
//report.printerSettings.printerName = "hp LaserJet 1320 PCL 6";
report.print(true);


---->


I'd like to print it out without a screen pop.
How do you put the print option?

If I execute, the following and the the same message appears on the screen.

---->
TypeError: Error #1009: null Object references can not access a property or method.
at stimulsoft.report.painters.components::StiPagePainter/paint()
at stimulsoft.report.components::StiComponent/paint()
at stimulsoft.report::StiReport/printInternal()
at stimulsoft.report::StiReport/print()
at stimulsoft.controls.visual.dialogs::StiPrintSetupForm/onOkButtonClick()
at stimulsoft.controls.visual.dialogs::StiPrintSetupForm/__buttonOK_click()




flex version, I'd like to print it out without a screen pop!!

Posted: Tue May 22, 2012 9:08 am
by HighAley
Hello.
swyu wrote:please, check source!

" direct print "

source ->

var xmlData:XML = new XML(content);
// Load report from XML string
report.loadReportFromString(formatContext);
// Clear all existing databases in report
report.dictionary.databases.clear();
report.regDataXML( "Demo" ,"Demo", xmlData);
//report.printerSettings.printerName = "hp LaserJet 1320 PCL 6";
report.print(true);


---->


I'd like to print it out without a screen pop.
How do you put the print option?

If I execute, the following and the the same message appears on the screen.

---->
TypeError: Error #1009: null Object references can not access a property or method.
at stimulsoft.report.painters.components::StiPagePainter/paint()
at stimulsoft.report.components::StiComponent/paint()
at stimulsoft.report::StiReport/printInternal()
at stimulsoft.report::StiReport/print()
at stimulsoft.controls.visual.dialogs::StiPrintSetupForm/onOkButtonClick()
at stimulsoft.controls.visual.dialogs::StiPrintSetupForm/__buttonOK_click()
Due to Flash player security restrictions it's impossible to print without Print Dialog and to change printer settings.

Thank you.