Articles 3D Audio Custom Controls General RB Graphics Hacks Mac OS X Menus Novelty Printing REALbasic 2005 REALbasic 2006 Registration Resources Reviews Serial Speech Sockets XML Video Resource Links News Current News February 2006 January 2006 December 2005 November 2005 October 2005 September 2005 August 2005 July 2005 June 2005 May 2005 April 2005 March 2005 ![]() REALbasic for Dummies by Erick Tejkowski ![]() Learning REALbasic through Applications REALbasic for Macintosh REALbasic Cross-Platform Application Development
Older files are in Stuffit 5 or greater format. Newer files are ".Zip". Download StuffIt Expander |
|
By now, you probably know that PDF is a very important part of Mac OS X. It can create and display PDF without any extra software. Did you know that you can create your own PDF documents using standard REALbasic code? If not, join us today as we take a look at how to do it. Build the Interface
That's it! That wasn't so tough, now was it? Add the Code
As you can see, the code is outlined with a square. Drag that square to the Action event of the PushButton in the Code Editor. That's all there is! To test your code, select the Debug-Run menu. Click the PushButton. You'll immediately see a Page Setup dialog. Adjust it to you liking and click OK. ![]() Next, you'll see the standard Print dialog. Notice the "Save as PDF" button at the bottom of this window. That's the one you want to click. ![]() When you click the "Save as PDF" button, you'll see the standard Save dialog. The new document that you "print" can be opened with your favorite PDF viewer like Preview or Adobe Acrobat. Conclusion |
||||
|
||||||||||||||||||||||||||||||||
Maintained by the Staff of ResExcellence. This entire site ©1997-2006 ResExcellence
Privacy Statement? Sure we gotta Privacy Statement.
[an error occurred while processing this directive]