My application uses a Word document template to develop a document. There is a table (1 row that I use for the table heading). I iterate through a datatable and add a row to the Word document table for each DataRow.
I would like to add another "heading" row to the table whenever the table crosses over to a new page. I haven't found a way to find page breaks or trap a "page break event". Is it possible to do what I want to do?
I guess you need a Directshow filter graph to do it. :
capture the video, compress then stream it using RTP ...
ActiveX - based solution...no I don't know. (Note that the solution does not need to render the flow locally, the issue is not dependent on some UI technology)
There is the Microsoft RTC (Real Time communication) that may interests you.
It implements SIP protocol so you may give it the address of a media relay point that in turn will broadcast the media data to its subscribers.
Easy Profiler : Now open source !
This is shown in call stack when exception occurred:
mfc80ud.dll!CGdiObject::Attach(void * hObject=0xb90510f0) Line 1157 + 0x3 bytes
mfc80ud.dll!CBitmap::CreateCompatibleBitmap(CDC * pDC=0x004bf954, int nWidth=336, int nHeight=189) Line 251 + 0x25 bytes
AxGraph.ocx!CGraphCtrl::Initialize(CDC * pInputDC=0x004bf954, int width=336, int height=189) Line 27
I'm new to Windows COM programming. I was able to make a 64-bit app call a 32-bit COM server (out-of-process, exe) on 64-bit Vista, but not the other way around, the CoCreateInstance call in my 32-bit app failed with a return code 0x80029C4A (error loading type library/DLL).
Can this be done at all? Basically I just need the 32-bit app to send some request to the 64-bit server, and wait for the request to finish. The server should be able to send back a status code indicating whether there is any error.
Looking for an easy way or infact any way to pop event for unmanaged code via csharp com interop wrapper.....
Any one knows a good site for c# COM technologies? I have a serious trouble with this issue....
I'm not sure if I'm posting in the correct forum, this is regarding late binding on a custom DLL in C#.
Basically, I have a self-written DLL which I wrapped using TLBIMP.exe.
Now I am trying to map the DLL's events to that of my own form. The events inside the DLL originate from a class.
I have tried almost every solution I was able to Google and nothing works.
Please do not reply to my thread if you have just Googled a solution, I need to hear from someone who has done this before. I've tried Google.
O.k, I'm going to use simpler names than that of my actual code.
My DLL file is called wrapper_MyDLL.dll and I load it as follows:
I'using COM and the IWebbrowser interface in a non MFC C++ application to have a preview on MS Office documents (doc, docx, xls, ...) in a frame of my application. Works quite fine, but I'm facing two problems, which I was not able to solve yet (though working on it for 2 weeks... ).
1. I have installed IE8 and MS Office 2007. When I'm showing a Word file (.doc), then all the Word toolbars are shown and active. When I'm showing an Excel file (.xls) with the same Navigate command, all the Excel toolbars are hidden. I want these toolbars generally to be hidden. I've tried several things with the "FullScreen", "TheaterMode" and "Toolbar" commands, but these things don't seem to work with this interface !?
I have also tried the OLE command ExecWB with w->iexp->ExecWB(OLECMDID_HIDETOOLBARS, OLECMDEXECOPT_DODEFAULT, NULL, NULL);
This works fine, but unfortunately this is a toggle command. So I may only execute this command, if the toolbars are already shown, but I found no way to determine whether the toolbars are already shown.
Of course, I could check if I'm showing a Word file, and only then I will hide the toolbars. But I really don't like this extension depending behaviour. So does anyone have an idea to generally hide these toolbars? Or is there a possibility to change some flags in MS Word and MS Excel?
2. Is there a possibility to get to know whether a Word document is modified in my application frame? The problem is: Someone could write something to the Word file in my application window. If he then just closes the window, these modifications are lost. The "normal" MS office dialog, which asks whether you want to save your modifications or not, or just cancel, is not coming, while closing the window. I guess my window is already destroyed before this dialog has a chance to come, so I have to show my own dialog for asking before the window is destroyed. And therefore I need to know if the file has been modified.
I have already installed an event listener via the connection points technique to get the WebBrowserEvents, but I didn't find an event which is good for my needs.
Does anyone have an idea?
Thanks in advance
P.S. I'm a newbie to these COM things, so please be patient with me
IWebBrowser interface notifies the window some events, such as DocumentComplete, NavigateComplete, BeforeNavigate, DownloadComplete etc. 'DocumentComplete' will be notified when a document is completely loaded into browser. Then you can get a IDispatch pointer to the loaded document by calling IWebBrowser::get_Documet(). In the case of Word, you will get IDispatch pointer to the _Document interface of Object Model of MS Word Application. See Object Model of MS Word by opening it's type library (MSWORD.OLB) using OLEView.exe tool of Visual Studio. _Document has methods put_Saved() & get_Saved(). You can create wrapper classes for the required interfaces of that Object model.
following is the rough code..
IDispatch *pDsip = 0;
_Document wordDoc(pDisp); //_Document is the wrapper for _Document interface
//Call wordDoc.Save to save document
Investigate on Word interfaces to do something to hide tool bar.. Its possible.
Hope this will help u..
Last Visit: 31-Dec-99 19:00 Last Update: 6-Dec-23 21:18