Skip to main content
October 11, 2011
Question

suppress the Print dialog box in Air /Flex

  • October 11, 2011
  • 1 reply
  • 2373 views

Hello,

I am trying to print the pdf files(which is located in my system) directly in the printer without showing print dialog box .

I tried to print the screen without displaying print dialog box using flash.printJob.start2().

but am not able to print pdf files in the printer its printing dark screen only also it just printing the UIcomponent size only. its not printing all d pages available inside pdf file.

Can you please help me to resolve this issue.

This topic has been closed for replies.

1 reply

Participating Frequently
October 12, 2011

Hi,

Could you please open a new bug report on this over at bugbase.adobe.com? Please include sample media, code, project or app to help us reproduce the issue. Finally, once the bug has been added, would you mind posting back with the URL so that others affected can add their votes and comments?

Thanks,

Jian

Adobe Flash Runtime team

October 13, 2011

Hi

I tried to open a new bug report , that screen itself not displaying properly and I couldnt able to enter any comments there ,I can see only the option buttons.

and I am trying to print the documents which is having mutiple pages using flash printJob . the following code I have used . here i am trying to Print Textfield .

Could you please me how can I add document/pdf file/text file instead of TextField.

va txt:TextField = new TextField();

txt.text = "Hello Test" ;

var sheet:Sprite = new Sprite();

sheet.addChile(txt);

and in printing

If(PrintJob.start2(null,false))

{

PrintJob.addPage(sheet);

PrintJob.send();

}

Participating Frequently
October 13, 2011

Have you tried the technique mentioned in http://cookbooks.adobe.com/post_Printing_a_PDF_document_from_AIR_without_displayin-16288.html ?

Thanks,

Jian

Adobe Flash Runtime team