Strydr Posted December 1, 2018 Posted December 1, 2018 (edited) Where I'm trying to get to is that I'm trying to print out the contents of a Listview including the icon used at the front of each row. Another approach that could give me similar results would be to be to print a html page, as these pages have already been created with the data, but I can't get printhtml.exe to work. So, my approach is to take the data, create a temporary file from it and print it. I've been playing around with this for a little bit now and, at this point, I'm not sure which direction I should be chasing: any suggestions? The format of the temporary file is only relevant to me in that it should be simple to print something useful from it and it needs to be "behind the scenes". Although having the standard print dialog window pop up could work, too. -I need to start by saying that I'm having trouble getting the word udf to work properly. When I attempt to add an image, I ALWAYS get the error that $oDoc is not an object. At least that's how I'm interpreting the error: the error message from the example provided for _Word_DocPictureAdd = 1 with the extended error = -2147221005. I also didn't see a way to add a line of text at a time, although I'm sure that there is a way. I've played around with Filewriteline but as far as I can tell, that's to write text, not images. I've come across _GUICtrlRichEdit_Create, but that's for a GUI. Should I use this and just have it "hidden"? I haven't been able to get "printhtml.exe" working. This could be useful if I could: is it still valid? Doesn't seem to have been updated in years and is definitely pre-Windows10. Should I be asking questions on what my problem with it is? I came across this, should I go this route: FileWrite() & _GUICtrlListView_GetItemText() in a Loop, you can find the number of rows by using _GUICtrlListView_GetItemCount() (thankyou guinness) Would this write the icons, too? (even tho there doesn't seem to be a FileWriteImage command?) I've come up with using shellexecute with notepad for printing, we'll see if that will work. I believe that the temporary file format will dictate which program I use for printing it. One issue is that I don't expect the user to have excel, so that eliminates another solution that I found. A lot of what I'm coming across has been superceded but the stuff that has superceded it doesn't seem to work and it's old as well, so I'm not sure where I should be poking my nose, at this point. Help? I'm not looking for the actual code: that's half the fun! But I feel like I'm chasing my tail here, and I don't know which way to run. What am I missing? Thanks! ps: what did I forget to include this time? Edited December 1, 2018 by Strydr
Nine Posted December 1, 2018 Posted December 1, 2018 how about using _ScreenCapture_CaptureWnd ? “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
Strydr Posted December 1, 2018 Author Posted December 1, 2018 I would assume that the screen capture would not catch the contents of the Listview that weren't shown? -as in the list is longer than the window. Interesting command, thanks!
Nine Posted December 1, 2018 Posted December 1, 2018 1 hour ago, Strydr said: I would assume that the screen capture would not catch the contents of the Listview that weren't shown? Assumption correct “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
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