Sign in to follow this  
Followers 0
wysocki

How do I create a hardcopy report?

2 posts in this topic

#1 ·  Posted (edited)

I got my first SQLite program running and it produces some nice data that I can view in the console window with _SQLite_Display2DResult($aResult) or view an array of the returned data with _ArrayDisplay($aResult) or _SqliteDisplay($aResult). However, I'd like to do some custom formatting and place text and data where I want to on a report. I'd like an option to save the report as a text file to disk or print it as well. I thought about having my script start Notepad and send the text to it to create a report, but there's a couple of downsides there: the user could change the data before printing and other problems, like it takes forever to send several hundreds of characters to it. I tried creating a variable which I loaded with the data wrapped around a bunch of html and then wrote the variable to an html file. When I opened the file in a browser, it was fast, but it's a pain formatting all the html code.

Short of buying a report writer, isn't there some way of creating an empty window and filling it with text (with some save and print options)?

Edited by wysocki

Share this post


Link to post
Share on other sites



You don't need to do it in a "visible" way.

Have a look at: FileOpen, FileWrite, FileWriteLine, _FileWriteFromArray, FileClose ...

You will definitely get an idea about how to write your info in a file.


SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0