Hello all, I need to list all the openned excel and word documents along with the path of the document. I am able to list the applications using EnumWindowsProc and Process.ProcessName. But i don't know how to find the path of the document. Can anyone help me? Thanx in advance. JRK
User 513823
Posts
-
List of open excel documents and the path of the document -
Writing text to an open notepad fileThank you again for your effort Martin. As you said, i tried SendMessage-ing WM_CHAR, it works for Notepad and Wordpad. But i couldnot write into Excel or Word file. With SendKeys, I am able to send text to any window. Is there anyway we can do to avoid showing the file? JRK
-
Writing text to an open notepad fileThank you Martin. It solves my other problem. But this is different. I dont want the notepad to bring to the foreground. I want to update the openned notepad file while it is in the background. Can you help me? Thanks
-
Writing text to an open notepad fileHi guys, I need to write some formatted string into a notepad file that is already opened by the user. I tried using TextWriter , but we need to close and open the notepad file to reflect the changes. Also Process.StartInfo doesnot help. Can anyone help me out? Thanks in advance. Jrk
-
Passing cdc across threadsHi suiram Thanks for your response. Yes i am passing hdc to the thread. I tried with CS_OWNDC, But of no improvement. My problem is with the CDC of PrintPreview. What should i do now. Please, do help me. kumari
-
Saving multiple html files to excel worksheetsHi friends, I am saving my reports in excel. First i format my reports in html tags and then open the html files as excel file programattically. The problem is Excel worksheet can hold only 65535 rows. My reports have enormous data to save. So i am generating multiple html files with the max of 65500 rows. Now , i need to know how to convert the html files into excel worksheets of a single excel workbook. Please help me out. Thanks in advance Kumari
-
Passing cdc across threadsHi pals, I am facing a difficulty with CDC across threads. Actually, i spawn a secondary thread to calculate the display coordinates of the strings. So i am calculating the height and width of the strings based on the font selected in the CDC. It works fine with the scroll view but the calculation goes wrong with the PrintPreview. Bcos ,SelectObject(pMyFont) is always returning NULL. How do i solve this problem. Help me out friends. Thanks in advance. Kumari