User Module: Application: Data Report Creator and Printer

Share your advanced PureBasic knowledge/code with the community.
collectordave
Addict
Addict
Posts: 1310
Joined: Fri Aug 28, 2015 6:10 pm
Location: Portugal

User Module: Application: Data Report Creator and Printer

Post by collectordave »

I needed a data report creator and printer routine for a couple of applications I am converting after searching the forum I could not find anything so developed this.

My design brief was for a simple data report creator and print application and to allow predeined reports to be distributed with an application to be printed from a menu selection.

The heart of the application is Report.pbi which holds all the code to create a new report, load, save and print an existing report.

there are way too many characters to post here so this is my first try at a dropbox link. Apparently just click the link and download.

https://www.dropbox.com/s/tdnid5fdw01mh ... r.zip?dl=0

This is my first attempt at a complete application but please post all bug reports and code improvements here. I have tested this to small extent on Windows and MAC OSx.

Kind regards

CD
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 2137
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

Re: User Module: Application: Data Report Creator and Printe

Post by Andre »

Did a (short) test on MacOS 10.6.8 with PB5.42 - and it seems to run very well, especially well-working code for printing is included. Thank you :mrgreen:

Some first notes:
- included "SelectImages.pbi" is missing in the package, had to comment the related IncludeFile statement
- If I go to 'Preview' and have no report loaded before, a "missing gadget" occurs on line 142 in CDPrint.pbi

More testing is needed... :D
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
collectordave
Addict
Addict
Posts: 1310
Joined: Fri Aug 28, 2015 6:10 pm
Location: Portugal

Re: User Module: Application: Data Report Creator and Printe

Post by collectordave »

Thanks Andre
- included "SelectImages.pbi" is missing in the package, had to comment the related IncludeFile statement
- If I go to 'Preview' and have no report loaded before, a "missing gadget" occurs on line 142 in CDPrint.pbi
The select Images.pbi include is my mistake. I found that on windows you can set to view images as you select and the MAC displays an image as you select so it was an uneeded complication just uses the openfile requester now. I can reinclude if needed for Linux.

Fixed the missing gadget bit as well will repost the zip file ASAP.

This will be updated as I wish to include a Print which pages dialog and to remove that little bug I need to return a value from the report printing so it can run in silent mode to count pages as well as preview and print mode.
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.
User avatar
Columbo
Enthusiast
Enthusiast
Posts: 303
Joined: Wed Sep 10, 2014 7:17 am
Location: Ontario Canada
Contact:

Re: User Module: Application: Data Report Creator and Printe

Post by Columbo »

Hi Dave, This is the link with the 404 message.

https://www.dropbox.com/s/tdnid5fdw01mh ... r.zip?dl=0

Thanks.
http://www.oldtimeradiotoday.com - Listen to or download classic old time radio broadcasts.
Post Reply