Supress printer dialog

Stimulsoft Reports.Flex discussion
Locked
uasy
Posts: 6
Joined: Sat Aug 06, 2011 3:14 am

Supress printer dialog

Post by uasy »

On "Print" button of Reports.FX, we have the following sequence:
1. Dialogue with a choice of pages
2. Dialogue with a printer choice
3. Printing

Exists a way to supress steps 1 and 2?

Big thanks!
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Supress printer dialog

Post by Vladimir »

Hello,

Unfortunately, these dialogs in the viewer cannot be disabled.

The system print dialog cannot be disabled, it always displays by the Flash Player. The page selection dialog can be skip if you print the report using the code:

Code: Select all

report.print(false);
Thank you.
uasy
Posts: 6
Joined: Sat Aug 06, 2011 3:14 am

Supress printer dialog

Post by uasy »

In AIR platform we can supress printer choice dialog.

In "ActionScript 3 Reference" for class flash.printing.PrintJob writed

"....
public function start2(uiOptions:PrintUIOptions = null, showPrintDialog:Boolean = true):Boolean

Parameters:
uiOptions:PrintUIOptions (default = null) — An object designating which options are displayed in the Print dialog that is shown to the user. If the showPrintDialog parameter is false, this value is ignored.
showPrintDialog:Boolean (default = true) — Whether or not the Print dialog is shown to the user before starting the print job
.."

You can create this in Reports.Fx for Flex product?

Big thanks!
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Supress printer dialog

Post by Vladimir »

Hello,

We will try to implement it, but this will only work for AIR applications.

Thank you.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Supress printer dialog

Post by Vladimir »

Hello,

We have added a new option:

StiOptions.print.showSystemPrintDialog = true;

The update will be available in the next prerelease build.

Thank you.
Locked