Try looking here for an example of using iFrame in your Flex app:
 
http://coenraets.com/viewarticle.jsp?articleId=95
 
run the example and you could put your PDF where the web page is and then use _javascript_ to print the PDF (I'm guessing the last bit!)
 
Simon


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson Hager
Sent: 01 October 2005 01:57
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to print PDF file when click on a button

That would work or use the iframe approach embedded inside of your application.
 
 
Carson
 

____________________________________________
 
Carson Hager
Cynergy Systems, Inc.
http://www.cynergysystems.com

 
Email:  [EMAIL PROTECTED]
Office:  866-CYNERGY ext. 89
Mobile: 1.703.489.6466

 
 

 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sandip Patil
Sent: Friday, September 30, 2005 5:20 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to print PDF file when click on a button

Hi Carson,
 
You mean to say to print my PDF I need to open it in browser like URL
 
Http://localhost:8080/Mydir/Pdf_filname
 
with this code
 
 <mx:Button label="Print File"  click="getUrl(xyz.link, '_blank')" />
 
where xyz is my PDF file name ......
 
Sandip.

Carson Hager <[EMAIL PROTECTED]> wrote:
Flex does not have any native PDF rendering but I'd sure like to see
that in the future with the whole Adobe merger.  Your best bet is to
load the PDF in an iframe and let the browser launch acrobat. The user
will likely have to click on the print button that acrobat provides. I
don't believe you can script to that aspect of the acrobat container but
I could be wrong.


Carson


____________________________________________

Carson Hager
Cynergy Systems, Inc.
http://www.cynergysystems.com

Email:  [EMAIL PROTECTED]
Office:  866-CYNERGY ext. 89
Mobile: 1.703.489.6466



-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sandip_patil01
Sent: Friday, September 30, 2005 4:04 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to print PDF file when click on a button

Hi All,

I want to print PDF file.Which I stored in database.Now I want to print
that PDF file when I click on a button.
Here What I want is,

Let say I have a file "ABC.mxml" which has a button when I click on that
button my PDF file should open.And then from menu I can print that.
But how to open that PDF file when I click on that button.
Any sugeession ....

Thx in advance,
Sandip Patil.







------------------------ Yahoo! Groups Sponsor --------------------~-->
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~->

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links







Yahoo! for Good
Click here to donate to the Hurricane Katrina relief effort.

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to