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

Stimulsoft Reports.Flex discussion
Locked
swyu
Posts: 1
Joined: Mon May 21, 2012 3:04 am

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

Post 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()



HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

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

Post 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.
Locked