PaulSt Posted November 24, 2010 Share Posted November 24, 2010 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. Link to comment Share on other sites More sharing options...
SadBunny Posted November 24, 2010 Share Posted November 24, 2010 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. Link to comment Share on other sites More sharing options...
PaulSt Posted November 25, 2010 Author Share Posted November 25, 2010 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. Link to comment Share on other sites More sharing options...
leos Posted November 25, 2010 Share Posted November 25, 2010 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. Link to comment Share on other sites More sharing options...
PaulSt Posted December 10, 2010 Author Share Posted December 10, 2010 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? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now