Group:  Microsoft Word ยป microsoft.public.word.oleinterop

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Threads Replies Last Post
5 Pages: 1  2  3  4  5  
Save as Zip
Hi! According to this description below it will be possible to see the folder structure of a docx document just by adding the zip extension to the file name but I will not be able to do that with the Beta version. "Create a temporary folder in which to store the file and its parts. Save a Word document (containing text, pictures, and so forth) as a .docx file. Add a .zip extension ...
2 27.09.2006 12:44:36
Word 2003: Save as data only with C#
Hi, What I try to make is Save my word xml with my custom markup that I have create. It's like doing in the UI of Word : Save As in the xml format and put a tick in "Save data only". Do you know how can I do that in a C# code? I have try the following but the result is not what I want: object o = System.Reflection.Missing.Value; object Source = @"c:\word.xml"; object format ...
3 26.09.2006 10:21:01
Preventing the table rows to be partitioned?
Hi, I am developing a .NET application by using C# application, and i use word interop to show some papers in my program. I use bookmarks to insert tables in the word pages, but i want to prevent table rows to be partitioned. What do i mean is that if a table is at the end of the page and some rows go the next page, i want to move the table to the next page by programatically. Can i d...
4 25.09.2006 16:20:06
DSOFramer + WordXML + Protection = Problems!?
Hi, I am using the DSOFramer control (within VB.NET) to display a protected WordML document. I generate the Word XML file myself and use <w:permStart..../> and <w:permEnd.../> to start/stop the protection. When I open the file in Word 2003 it is perfect, everything is locked except the area(s) specified. When I load the same file into the DSOFramer control the whole docum...
2 19.09.2006 13:15:31
Closing Excel workbook throws 'Exception from HRESULT: 0x800A03EC'
I am developing an Office 2003 SmartDocument application where Excel charts in the document are to be populated with data from C# code. The following code handles the update of all Excel charts in the document: System.Globalization.CultureInfo ciOld = System.Threading.Thread.CurrentThread.CurrentCulture; System.Threading.Thread.CurrentThread.CurrentCulture = new ...
3 15.09.2006 07:19:02
Word automatically resizing pasted Excel tables and charts
I'm trying to determine what causes Word to resize Excel tables and charts that are pasted using Edit -> Paste Special. I am pasting charts using the following process: 1. Select a chart object in Excel (one that's embedded on a worksheet, not on a separate chart sheet) by clicking the chart area. 2. Select Edit -> Copy. 3. Create a blank Word document, and paste the chart into it us...
5 14.09.2006 20:40:02
Where is the Word.Page object/interface in the Office.Interop.Word
I am generating a report from the .NET C# Windows application by automating Word 2003. The report works but I need to do some final formatting so that certain blocks of text appear complete on the pages by adding some page breaks. However, I cannot determine whyere to place the breaks until the report is completely generated. The only way I can find to do this is using the Page object...
6 13.09.2006 13:10:02
How can I enumerate embedded objects in Word in a general fashion?
I am currently making our OCX components Office-compatible and I have run into a small problem that I haven't found a good solution for yet. We have two control types: one represents the document and the other represents individual fields within that document. We want the document control to find its associated fields (or vice versa). Initially we developed this with IE as container bu...
5 05.09.2006 11:54:01
Word 97 button events in managed code
Hi, I have a number of Word COM add-ins which are working in Word 2003 and Word2000. I'm now porting these to Word 97 and have run into some problems. Since Word 97 does not support COM add-ins as such, i am using a COM callable wrapper, called from AutoExec VBA macro. This wrapper then calls the "OnConnection" method, which calls OnStartupComplete. In OnStartupComplete, i have some s...
2 24.08.2006 13:53:45
Stopping FileSearch
Is there any way to stop FileSearch once it has been executed? I would like to be able to put a "cancel search" feature in my application, but at the minute I have to wait until execute has finished. Thanks in advance Dave...
1 24.08.2006 08:20:02
CustomDocumentProperties Questions
Hi, I have some questions about the functionality of CustomDocumentProperties. I have written methods to both add and check CustomDocumentProperties. Both of these functions throw exceptions when I use late binding to invoke the methods "add" and "item". However, if i ignore the exceptions the functions seem to work. The exception that I get is "TargetInvocationException SystemArgumentEx...
8 23.08.2006 08:23:02
MS Word - DDE Mail Merge w/Access secured DB
Hi everybody. First, My Configuration: WIN XP PRO SP2 + Office Pro 2003 SP2 I have a VBA procedure in Access which creates a mail merge in Word (I believe through DDE) which works like a charm if the database has no password. If the database does have a password, I cannot seem to make it work. I've tried many variations of the OpenDataSource method, but all I get is either the infamou...
2 17.08.2006 13:43:25
XML content processing across all Word versions
Hi, I'm developing an add-in that must run on all versions of MS Office from 97 up. I need to process an MS doc, the content of which is XML. In MS 2003 I could use doc.XMLNodes to access nodes but i can't use this because its not available in the older versions of Word. In MS 2000, I get the document content, write it out to a file and open this file as an XMLTextReader. I can access...
7 15.08.2006 21:17:01
Com Exception
Hi. One of our customers are having problems trying to launch word programatically "Exception from HRESULT: 0x8007013D" We already tried uninstalling and reinstalling office 11 but it didnt help. Any ideas? Thanks, Hari...
4 15.08.2006 09:14:08
How to set the processor affinity for the Word application?
Hi all, We have noticed that using the Word OLE is much slower on dual processor machines. Limiting the processor affinity to one processor helps. So, I want to set the affinity in my C# code. I succeeded with the following code: oWord = new Word.Application(); oWord.Visible = false; Process[] wordProcesses = Process.GetProcessesByName("WINWORD"); if (wordProcesses.Length == ...
2 08.08.2006 12:46:14
Help about creating excel using template.
Hello!! I have created one file in which i m creating excel using template which contains macro ..now when i dont use macro in template it works perfactly fine but in case of macro it goes off.i mean it gets hang..Please help me out .. Any reply will be appriciated.. Thx, Komal ...
1 07.08.2006 11:18:08
Test
testing newsgroup performance via web -- -- Cindy...
1 07.08.2006 06:52:01
MS Word OLB enum Types
I am creating a class to connect to Microsoft Word using ClassWizard and the object library MSWORD.OLB. Most of the function calls in this class use the Varient type to pass parameters, but I cannot find the actual values for the enumeration types so I can pass in that value. Does anyone know how or where these enumeration types are defined. For example, WdUnits is composed of wdCha...
2 02.08.2006 20:09:17
problem with the COM library reference
I am following the code example presented here_> http://support.microsoft.com/kb/316383/en-us but I have a problem. It instructs me to reference the Microsoft Word Object Library. I cant find it in the COM references. I am using Microsoft Office Standard edition for students and teachers on this machine and the closest COM refence I can find is the Microsoft Office 11.0 Object lib...
3 31.07.2006 10:18:12
SaveAs Xml loses protection information
I have a document I'm showing in a dsoFramer within a C# application. I choose "Tools | Protect Document" from the menu, and mark the document as read-only. I also have a section that Everyone is allowed to edit. I call SaveAs(filename, wdFormatXML, missing...). When I reload the file, the entire document is protected (read-only), but the section that was marked as editable is also read...
2 31.07.2006 06:33:52
ApplyTheme partially works in Office2003
Hi, I've got a weird problem. I create a word document by copying the content of an existing one using the OrganizerCopy and Range methods (C#, .NET 1.1). Then I copy the theme of the source document using the ActiveTheme property and then the ApplyTheme method. Everything works fine, but when I open the copy the theme isn't applied. When I check in "Format -> Theme", I see it is s...
1 28.07.2006 13:55:01
Writing a Word plugin
I need to write a program that will add an item to the Word menu. When the user selects this item from the Word menu an external program must run that saves the current document to a specific folder then does something with the file. I have controlled Word via automation from programs before, however, I have never written a plugin that adds a menu item which executes a program. To my surpr...
3 23.07.2006 04:40:02
Word: detect paragraph format consistent?
Hi, Is there a way to determine if a Word paragraph has consistent formatting (i.e. all characters formatted the same) ? There didn't seem to be any easy way to know this and so I was thinking of a solution where I intially process the document and build a sorted (by position) list of all the styles in use and their position. Then process paragraph by paragraph, checking for each pa...
1 20.07.2006 14:32:01
Using VC++ 6.0 to create a Word doc as outline, ex 1.1 Heading Lev
I"ve found an explanation on how to create a Word2000 doc and write some lines of text to it. Unfortunately the article barely goes beyond that, there are some examples out there for VB (which I've never learned) that i am trying to translate into c++(insufficient detail in the VB). There are tons of objects and types in "msword9.h" file but I cant find sufficient documentation to te...
2 14.07.2006 15:34:51
Disable Control-C and clipboard events programatically?
Hi, I am using office word interop in my project which is being developed by C# and .Net Visual Studio 2005. How can i disable word document from being copied by the users? The users can only see the document but they must not modify or copy the document. Is there a solution for this? Thanks... ...
3 14.07.2006 04:38:46
5 Pages: 1  2  3  4  5  

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net