Article Preview
Buy Now
FEATURE
Scripting PDFs
Combining stock scripting and PDF generation
Issue: 16.4 (July/August 2018) Related Link(s): None Excerpt of article text... In You may remember I suggested this in my original article: I liked the idea of being able to generate stock reports as PDFs, so the natural evolution of the article is to expand the scripting language to support PDF generation. As usual, I like to do things in multiple ways, so I'm going to present two methods of making PDFs: the simple way and the more complicated way. The first method requires minimal scripting—it's just a boolean flag that tells StockScripter to generate a PDF instead of writing the results to PortfolioWindow (see Figure 1). The second way is a comprehensive addition to the StockScripter scripting language. I've pulled some parts from another project I wrote to add full picture drawing support. While this complicates the scripting, it gives you considerable power—anything you draw you can turn into a PDF! Granted, today's demo just touches the surface of what's possible—but I hope you can see the future and adapt this kind of technology for your own projects. The capabilities of XojoScript are incredible and for certain needs, indispensable. So let's get started! ...End of Excerpt. Please purchase the magazine to read the full article.
Author: Marc Zeedar
Author Bio: Marc taught himself programming in high school when he bought his first computer but had no money for software. He's had fun learning ever since.
Article Description: >
Starting Page Number: pt
Article Number: 16402
Resource File(s): project16402.zip Updated: 2018-07-02 22:38:56