Hi, if you are looking for a solution for a large project, you should evaluate the libraries offered by aspose http://www.aspose.com[^]. I started a project using COM/INTEROP to create an interface to the office world. Then it was necessary to support the generation of word documents on a server without having any MS office application installed. We decided to use aspose. Finally we were able to improve our applications noticeably. Erik
eoe
Posts
-
Generating Excel reports by using .Net -
Error creatin window handleHi, thanks for the excellent link. This is exactly what I was looking for. Using GetGuiResources shows that even if I dispose (or I think that I dispose them) the gui objects, not all used window handles were disposed. Just to give a small example: Before opening an order : 204 / 375 After opening an order : 370 / 1988 After closing an order : 267 / 699 I guess that if everything would work correct the total numbers of available gui handles after closing an order should be the same as before opening the order. Is there any way to detect this memory leak? Regards Erik
-
Error creatin window handleThat’s right. In my opinion, I have used up all window handles. It doesn’t happen at once, but it is an ongoing process. It seems that I don’t destroy every created control. Therefore an advisor can process normally a lot of orders, before the error occurs.
-
Error creatin window handleHi In recent times I often get an application error that it is impossible to create a new control object, because there are no more window handles left. The application is written in C# (.Net 1.1) and is used to create extensive content specific dialogues. At the moment I’m not quite sure how to identify the source of error. Within my object model, I use every time dispose() to destroy any existing graphical object. But it seems that this process doesn’t work correct. It is possible to retrieve the number of window handles that are currently used by an application? Last week I read a thread that states to locate the application process and then use the MainWindowHandle property in relation with EnumWindows to get the total count of all window handles. Unfortunately, I’ have no idea how to implement this procedure (especially how shall I use EnumWindows). Does anyone knows how to perform this task or does anyone have another idea to determine the total count of used window handles? Thanks in advance Erik