1 Reply Latest reply on Aug 23, 2010 11:18 PM by Adi2010

    Display PDF from flex windows application




      I am creating a flex windows application using action script and mxml script.I need help in displaying a PDF document in that windows application from a netwrok drive or local pc.I tried google search it is giving me some open source projects with IFrames.But,they can be only used for browser applications(web).So,anyone please suggest me how could i accomplish this task with winows application.




        • 1. Re: Display PDF from flex windows application
          Adi2010 Level 1

          Hi ,


          The solution for the thread is



          <mx:HTML id="pdfHtml" location="test.html" width="100%" height="100%" />


          var pdfFile:File = File.applicationDirectory.resolvePath(pdfHtml.location);
              pdfFile = new File(pdfFile.nativePath);
              var fileURL:String = pdfFile.url;
              pdfHtml.location = fileURL;