> I am again looking at implementing Javascript charts within a LC browser.
> Looking at amCharts.
> Got a chart displaying easily within the browser widget.
> Tries to print the card but the widget does not print.


I’m using amCharts in another project and ran into the same problem: everything 
looked right in Live view but would disappear when I tried to print a PDF. The 
only way I could get them to appear right was by taking a picture of the 
browser and using that image instead of the live JavaScript in the browser 
(widget). I think hh keyed me into this with his epic knowledge of this tool

      set the width of templateImage to the width of widget "Browser"
      set the height of templateImage to the height of widget "Browser"
      export snapshot from rect globalRect(the rect of widget "Browser") to 
tSnapshot as JPEG
      create image “renderedBrowser"
      set the visible of widget “Browser” to FALSE
      put tSnapshot into image tSnapshotName
      set the name of image tSnapshotName to tSnapshotName
      set the loc of image tSnapshotName to the loc of widget “Browser"

—Andrew Bell
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
  • Browser Terence Heaford via use-livecode
    • Re: Browser Andrew at MidWest Coast Media via use-livecode
    • Browser Terence Heaford via use-livecode

Reply via email to