<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Printing Problem with AlivePDF in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301679#M7129</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The continuing printing saga:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've installed a sample print utility from this thread:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2421&amp;amp;t=299883&amp;amp;mc=11#936860"&gt;http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2421&amp;amp;t=299883&amp;amp;mc=11#936860&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The solution calls for 2 parts - installing a .Net piece on the server in IIS and then adding the Flex components to the Flex project.&amp;nbsp; Everything seems fine on the Flex side, but when I run the create PDF code from the Flex app there is an error in the .Net piece.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When run on a remote machine the attached Error1 page appears.&amp;nbsp; When I check the app URL on the server side, I get a little more detail, but still errors out, as shown in the Error2 attachment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I sent the author an e-mail directly, but thought I'd post here as well to see if anyone knew right off if there was a fix.&amp;nbsp; I've already checked .Net versions and 3.5 is the installed / required version.&amp;nbsp; I've also created a separate app pool in IIS in case that was an issue (from reading online ASP .Net forums / blogs).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone have any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Brad&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jun 2010 19:43:49 GMT</pubDate>
    <dc:creator>BradOleson</dc:creator>
    <dc:date>2010-06-09T19:43:49Z</dc:date>
    <item>
      <title>Printing Problem with AlivePDF</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301679#M7129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The continuing printing saga:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've installed a sample print utility from this thread:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2421&amp;amp;t=299883&amp;amp;mc=11#936860"&gt;http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2421&amp;amp;t=299883&amp;amp;mc=11#936860&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The solution calls for 2 parts - installing a .Net piece on the server in IIS and then adding the Flex components to the Flex project.&amp;nbsp; Everything seems fine on the Flex side, but when I run the create PDF code from the Flex app there is an error in the .Net piece.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When run on a remote machine the attached Error1 page appears.&amp;nbsp; When I check the app URL on the server side, I get a little more detail, but still errors out, as shown in the Error2 attachment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I sent the author an e-mail directly, but thought I'd post here as well to see if anyone knew right off if there was a fix.&amp;nbsp; I've already checked .Net versions and 3.5 is the installed / required version.&amp;nbsp; I've also created a separate app pool in IIS in case that was an issue (from reading online ASP .Net forums / blogs).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone have any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Brad&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jun 2010 19:43:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301679#M7129</guid>
      <dc:creator>BradOleson</dc:creator>
      <dc:date>2010-06-09T19:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Problem with AlivePDF</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301680#M7130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Brad,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; That dot Net portion can be avoid completely if you force your clients to use Flash Player 10. If you set your flex projects html wrapper to use flash player 10.0.22 or higher than you can use code like this in your print widget&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;const fileReference:FileReference = new FileReference();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fileReference.addEventListener(Event.COMPLETE, removeCur);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fileReference.addEventListener(Event.CANCEL, removeCur);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fileReference.addEventListener(IOErrorEvent.IO_ERROR, removeCur);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fileReference.addEventListener(SecurityErrorEvent.SECURITY_ERROR, removeCur);
&amp;nbsp;&amp;nbsp;&amp;nbsp; fileReference.save(myPDF.save(Method.LOCAL,"",Download.INLINE,"myPDF.pdf"),"map.pdf");&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:28:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301680#M7130</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T14:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Problem with AlivePDF</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301681#M7131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: jtrappet2010&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you need to be using the Flex 4 SDK to use FileReference.save?&amp;nbsp; In the &lt;/SPAN&gt;&lt;A href="http://livedocs.adobe.com/flex/3/langref/flash/net/FileReference.html#save%28%29"&gt;3.5 SDK help&lt;/A&gt;&lt;SPAN&gt; it shows the FileReference object as having a save method but when I try to use it I get an error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;1061: Call to a possibly undefined method save through a reference with static type flash.net:FileReference&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jun 2010 15:02:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301681#M7131</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2010-06-10T15:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Problem with AlivePDF</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301682#M7132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, you just need to require Flash Player 10. In the Compiler section of your project's properties, change "Require Flash Player version" to 10 0 0.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jun 2010 15:41:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301682#M7132</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2010-06-10T15:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Problem with AlivePDF</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301683#M7133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: brad_san&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my case I incorrectly installed the .Net piece...missed copying a file into the proper directory.&amp;nbsp; This was pointed out by a colleague who looked at it for 5 minutes yesterday.&amp;nbsp; Once that structure was repaired, things work fine!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will keep things in mind for being able to do it another way, though, Robert.&amp;nbsp; Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Brad&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jun 2010 18:35:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301683#M7133</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2010-06-10T18:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Problem with AlivePDF</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301684#M7134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Dasa, that was an easy fix!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jun 2010 18:40:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301684#M7134</guid>
      <dc:creator>JacksonTrappett</dc:creator>
      <dc:date>2010-06-10T18:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Problem with AlivePDF</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301685#M7135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: jkalov&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Brad,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; That dot Net portion can be avoid completely if you force your clients to use Flash Player 10. If you set your flex projects html wrapper to use flash player 10.0.22 or higher than you can use code like this in your print widget&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;const fileReference:FileReference = new FileReference();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fileReference.addEventListener(Event.COMPLETE, removeCur);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fileReference.addEventListener(Event.CANCEL, removeCur);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fileReference.addEventListener(IOErrorEvent.IO_ERROR, removeCur);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fileReference.addEventListener(SecurityErrorEvent.SECURITY_ERROR, removeCur);
&amp;nbsp;&amp;nbsp;&amp;nbsp; fileReference.save(myPDF.save(Method.LOCAL,"",Download.INLINE,"myPDF.pdf"),"map.pdf");&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the "removeCur" in this code?&amp;nbsp; I am trying to use your code with a similar alivepdf widget and flexbuilder just sees "removeCur" as an undefined property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:28:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301685#M7135</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-11T14:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Problem with AlivePDF</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301686#M7136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Joshua,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; The RemoveCur is just a simple function that I have that will remove the busy cursor that I set when the pdf export begins. You can delete all those event listeners if you want to.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Sep 2010 18:03:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301686#M7136</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2010-09-29T18:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Problem with AlivePDF</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301687#M7137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: jkalov&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Joshua,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; The RemoveCur is just a simple function that I have that will remove the busy cursor that I set when the pdf export begins. You can delete all those event listeners if you want to.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&amp;nbsp; I had it working before without them, but I wasn't sure if those lines added something.&amp;nbsp; What I'm really trying to get to is have the user be able to either save the pdf or choose to print directly.&amp;nbsp; (Basically what the "Print Map" widget is like on your Flexviewer 2.0 application (although mine is still 1.3).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Sep 2010 12:27:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301687#M7137</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2010-09-30T12:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Problem with AlivePDF</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301688#M7138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried to implement as suggested by you but &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var fileReference:FileReference = new FileReference();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fileReference.addEventListener(Event.COMPLETE, removeCur);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fileReference.addEventListener(Event.CANCEL, removeCur);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fileReference.addEventListener(IOErrorEvent.IO_ERROR, removeCur);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fileReference.addEventListener(SecurityErrorEvent.SECURITY_ERROR, removeCur);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; fileReference.save(myPDF.save(Method.LOCAL,"",Download.INLINE,"myPDF.pdf"),"map.pdf");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it result an error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error Message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"Certain actions, such as those that display a pop-up window, may only be invoked upon user interaction, for example by a mouse click or button press."&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 07:26:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301688#M7138</guid>
      <dc:creator>shafitrumboo</dc:creator>
      <dc:date>2010-10-21T07:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Problem with AlivePDF</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301689#M7139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: rscheitlin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Shafi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Just like the message is telling you you have to call this code directly from a mouse click like a button in a widget or a context menu. It can not be called from any other portion of code that call on another function before it opens the file save dialog.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 11:08:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301689#M7139</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2010-10-21T11:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Problem with AlivePDF</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301690#M7140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Shafi,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Just like the message is telling you you have to call this code directly from a mouse click like a button in a widget or a context menu. It can not be called from any other portion of code that call on another function before it opens the file save dialog.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi, Robert&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I added button click to load the printPDF function, but I have to click the button twice to open the save as window. Is something wrong with that? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Amy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;private function PrintPDF():void&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; generatePDF();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var fileReference:FileReference = new FileReference();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fileReference.save(myPDF.save(Method.LOCAL,"",Download.INLINE,"myPDF.pdf"),"map.pdf");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Feb 2011 18:40:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301690#M7140</guid>
      <dc:creator>AimeiChen</dc:creator>
      <dc:date>2011-02-08T18:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Problem with AlivePDF</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301691#M7141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: rscheitlin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Amy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; The generate pdf function is taking the focus which forces you to have to click the button again to give the focus to the save method. You need to have a button for generate pdf and then then have the user click a button that only has the file reference code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Feb 2011 18:49:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301691#M7141</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-02-08T18:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Problem with AlivePDF</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301692#M7142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Amy,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; The generate pdf function is taking the focus which forces you to have to click the button again to give the focus to the save method. You need to have a button for generate pdf and then then have the user click a button that only has the file reference code.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Got it, thank you so much.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Feb 2011 14:29:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301692#M7142</guid>
      <dc:creator>AimeiChen</dc:creator>
      <dc:date>2011-02-09T14:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Problem with AlivePDF</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301693#M7143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: FrankTT&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been reading the latest threads regarding the PDF Prinitng widget, along with the latest Flex API. I've also implemented a PDF widget which utilizes Robert's code. Once the widget displays and I click "print pdf" I get the following errors:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TypeError: Error #1009: Cannot access a property or method of a null object reference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.alivepdf.fonts::AFMParser/readAFM()[/Users/adobe/Desktop/AlivePDF/src/org/alivepdf/fonts/AFMParser.as:92]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.alivepdf.fonts::AFMParser/makeFont()[/Users/adobe/Desktop/AlivePDF/src/org/alivepdf/fonts/AFMParser.as:252]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.alivepdf.fonts::AFMParser()[/Users/adobe/Desktop/AlivePDF/src/org/alivepdf/fonts/AFMParser.as:53]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.alivepdf.fonts::EmbeddedFont()[/Users/adobe/Desktop/AlivePDF/src/org/alivepdf/fonts/EmbeddedFont.as:39]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the latest AlivePDF.swc library, but I can't seem to troubleshoot the error. Looks like my application can't access the font file. Can you guys lead down the right track on this one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanx&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Frank&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2011 14:08:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301693#M7143</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-03-11T14:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Problem with AlivePDF</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301694#M7144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Frank,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; Here some code that may help:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
[Embed(source='assets/arial.ttf', embedAsCFF='false', fontName='myArial', mimeType='application/x-font')]
&amp;nbsp;&amp;nbsp; private var font1:Class;
var myCoreFont:IFont = new&amp;nbsp; CoreFont (FontFamily.ARIAL);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myPDF.setFont(myCoreFont,8);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course this assumes you have the arial.ttf in the assets folder of your project.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:28:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301694#M7144</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T14:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Problem with AlivePDF</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301695#M7145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: FrankTT&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think that might be my problem. I commented this section of code due to errors during compilation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/*&amp;nbsp;&amp;nbsp;&amp;nbsp; [Embed(source='assets/arial.ttf', embedAsCFF='false', fontName='myArial', mimeType='application/x-font')]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; private var font1:Class;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; [Embed(source='assets/esri_40.ttf',&amp;nbsp; mimeType="application/octet-stream")]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; private var fNorthArrow:Class;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; [Embed(source='assets/esri_40.ttf', embedAsCFF='false', fontName='esriNorth', mimeType="application/x-font")]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; private var fNorthArrowFont:Class;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; [Embed(source="assets/b617d5849ea5bacc44c29fc0d4c2bed6_esri_40.afm", mimeType="application/octet-stream")]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; private var afmNorthArrow:Class;&amp;nbsp;&amp;nbsp; */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I get a hold of these missing .ttf files or is there a work around?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanx.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2011 14:27:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301695#M7145</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-03-11T14:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Problem with AlivePDF</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301696#M7146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Frank,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; You should be able to search your machine and find these in the windows fonts folder.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2011 14:31:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301696#M7146</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-03-11T14:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Problem with AlivePDF</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301697#M7147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: FrankTT&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Robert.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The only error now is referring to esri_40.afm. I could not find that one. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; [Embed(source="assets/b617d5849ea5bacc44c29fc0d4c2bed6_esri_40.afm", mimeType="application/octet-stream")]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; private var afmNorthArrow:Class;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2011 14:59:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301697#M7147</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-03-11T14:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Problem with AlivePDF</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301698#M7148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Frank,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; I forgot that I had to create that one.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2011 15:56:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/printing-problem-with-alivepdf/m-p/301698#M7148</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-03-11T15:56:50Z</dc:date>
    </item>
  </channel>
</rss>

