Sign in to follow this  
Followers 0
PaulSt

ListView Printing and Copying

5 posts in this topic

I created a report from a sqlite database in an array and imported that array into listview. I tweaked the listview to create a formatted version of the report. Now I want to copy (to Word for example) or print from listview retaning the listview formatting. I can't see a way to do it.

Any insight is greatly appreciated. Thanks in advance. :graduated:

Share this post


Link to post
Share on other sites



What exactly do you mean by "retaining the listview formatting"? Like pasting a screenshot in word? Or preserve the order that it has in the Listview? Or something else?

Roses are FF0000, violets are 0000FF... All my base are belong to you.

Share this post


Link to post
Share on other sites

Thanks for your interest SadBunny.

The LV has been formatted with a fixed font (Courier), some text has been padded, cols have been aligned, etc. so that LV items line up like:

Joe Jones

Assets as of 12/31/09

Desc and Acct Cost MV

----------------------- -------- --------

IBM Account 1234 100 125

Coca Cola Account 345 45 50

In effect this LV is essentially a formatted report.

I would like to place btns on the gui holding the LV that would enable the user to copy to clipboard, and/or print from list view but can't see what functions I should use.

Should I be importing the array derived from sqlite into RichText for the report rather than LV?

Am I taking the wrong approach to create an sqlite report?

Many thanks for your interest and input.

Share this post


Link to post
Share on other sites

You can generate a html document from your information, and load it into IExplorer (see specific functions), with all formatting you want.

From IExplorer you can print the document properly.

Share this post


Link to post
Share on other sites

Thanks for your helpful post leos.

I have moved ahead as you suggested and created the html doc. It loads into IE nicely. I also embedded IE in a GUI with good success.

Now I am wondering if anyone has developed a GUI that presents the html report and offers options (i.e. buttons) for printing, copying, etc. using rich text or some other component within the GUI?

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