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

Geek News

Threads Replies Last Post
6 Pages: 1  2  3  4  5  6  
Replacing text in Word
I've inherited an old application that creates a word document (Word 2003 and/or 2007) by opening a previously created document and replacing information inside it, like in the example bellow: ......... Attention of: ##vo_name ##vo_street ##vo_csz We would like to thank you for........ .......... Can someone tell me what ##ho_name is? A tag, a bookmark? I couldn't figure it out...
2 12/27/2008 9:33:31 AM
Option->PrintHiddenText exception
The following results in hr = 0x80010105 for options->printHiddenText: // Set PrintHiddenText to true IDispatch *options = NULL; hr = getObject(app, L"Options", NULL, 0, &options); hr = setBoolProperty(options, L"PrintHiddenText", FALSE); PrintComments also results in the same error, however DisplayGridLines as below doesn't cause an error. hr = setBoolProperty(options, L"Display...
1 11/24/2008 1:32:01 AM
Deploy Word Aspx
Hi, I've an aspx page generate a file word, I need deploy production server, but I'can't install word in server, someone knows that libraries deploy server without installing, thanks ...
2 11/19/2008 6:31:11 PM
Shared document opens as "read-only"
Hi, I'm working with a shared document and don't know how to guarantee that it is not opened as "read-only". Here is how I open the file. Suppose wdApp is a Word application, doc is a Word document, sharedPath is the shared path of doc, localPath is the local path of doc and filename is the name of the file. If I'm in the workstation where the file is located, then using Set doc = wdAp...
1 11/3/2008 11:52:00 PM
Does an office app that uses PIA&VSTO need any user privilede to r
I'm developing as a non-administrator user in my domain. It's weird when I debug my app. for instance, -------- Word doc=null; .....(opens the document) for(int i=0;i<doc.Sentences.Count;i++){ object start = doc.Sentences[i].Start; object end = doc.Sentences[i].End; Word.Range rng = doc.Range(ref start, ref end); rng.Select(); } --------- I see doc.Sentences...
2 10/24/2008 10:46:26 AM
Can I search formatted text?
I'm writing an app with VSTO&PIA to parse text with specific format, such as "Heading2","Bold",red color,etc. In MSDN, a simple string replacement program looks like this: object replaceAll = Word.WdReplace.wdReplaceAll; object missing = Type.Missing; app.Selection.Find.ClearFormatting(); app.Selection.Find.Text = orig.ToString(); ...
6 10/9/2008 9:47:08 PM
Programmatically removing digital signatures
I am currently working on a project that involves removing digital signatures from a document programmatically. Is there any way to suppress the 'Remove Signature' dialog box that displays when using the Delete function (code below). Microsoft.Office.Interop.Word.ApplicationClass wordapp = new Microsoft.Office.Interop.Word.ApplicationClass(); object path = fileName; object readOnly...
1 10/3/2008 7:07:01 PM
DsoFramer and Compatibility Pack
On my system there's Word 2003 installed with the Compatibility Pack for the 2007 file format. Opening a .docx file using Word 2003 works properly. I've now downloaded the latest DsoFramer (version 1.3). Using the sample programs VB6TestApp and VB7TestApp I can open .doc files successfully, but .docx files fail with (-2147217149): The associated COM server does not support Active...
1 6/29/2007 5:45:40 AM
About dsoframer project
Hi, I use dsoframer project to contorl a word file, and I want to protect it, just like _document.protect() in mfc. But I don't know how to do? Any one help me? Thanks you very much! yang -- Help ...
2 6/29/2007 4:14:00 AM
how to detect a word document changed or not changed
Hi, i developed a program in C# 2.0 with office 2003 PIAs. I try to detect a word document has been changed or not. I try to check a word document file hash codes before open and after close. Even the document has not been changed but these two hash code always different. And also document before opening and after opening hash codes are different too. I tried to check content property o...
6 6/26/2007 6:46:01 PM
Why I can't see Word template under my project types?
Hi, I am new to VSTO development. I tried to use VSTO to host a word document inside my Visual Studio 2005 environment so that the user can add, edit their document before saving it to database. I followed the instructions to create a new project and add a Word template inside my IDE. However, I can't find word template under my project types? Can anyone tell me why I have that problem...
4 6/13/2007 6:40:18 PM
.doc to PDF, without using MS word or adobe, possible?
Does anybody know if it is possible to batch convert .doc files to .pdf WITHOUT having MS Word or Adobe installed on the local machine. Duing our build process, we are converting several MS Word documents to PDFs. Right now we are using a VB script that uses both Word and Adobe to generate PDF files. We are wanting to make this process completely windowless ( run entirely in the conso...
2 5/30/2007 3:26:44 PM
Automation
Hi, Is there away to do Word automation on a machine that does not have Office installation ? I want to generate a word document without enforcing the user to have Office installation on the machine the document is generated on it, is it possible and if so - Should i install some Dlls that will enable me to do so on the user machine? 10'X Dan Oren...
4 5/29/2007 9:09:47 PM
Word 03 link field relative file path or custom document property?
Hi, I need to edit the link fields on numerous Word 2003 docs to change to a relative file path. After unsuccessfully trying and then reading that it's impossible, I came across the following that mentions a workaround involving using a custom document property to store the base filepath: http://word.mvps.org/FAQS/TblsFldsFms/includetextfields.htm Can someone give me some help on how to ...
6 5/15/2007 1:12:41 AM
Developed in Word 2007, user has 2003. App Crashes
I have a C#/.Net 2.0 app that I developed that has an interface into Word using the WORD.OLB from Word 2007. using Microsoft.Office.Interop.Word; When I deploy the app on another computer with Word 2003, the app raises an unhandled exception: Could not load file or assemble 'Microsoft.Office.Interop.Word. Version 12.0.0.0 How do I make this work for users that have Word 2003 ...
2 5/11/2007 6:00:56 PM
Delphi 7/'word.basic' Ole Object - From the code how to suppess Printing of Footer
My application : is on Delphi 7. Using : 'word.basic' Ole Object to implement printing functionality, - using the call CreateOleObject('Word.Basic'). Requirement : From the code, while Prining some document using the above object suppress the Printing of the Footer Conditionally. Is there any OLE calls/way to do this ? Thanks in advance, Ra...
2 5/11/2007 2:51:22 PM
Suppressing popup message boxes when using Word via ole
Greetings - Using Word 2003 on Windows XP Pro SP2, 512MB system memory. I have a tool written in C#.NET that uses the ole interface in Word to process several hundred Word documents. The process is: Open a document. TheDoc.TrackRevisions = false; TheDoc.AcceptAllRevisions (); SaveAs XML. Close the document, discarding changes. Then do a bunch of processing on the XML form of the...
5 5/7/2007 5:04:02 PM
Saving activex
Hi, I developped an ActiveX wiah can be inserted in a Word document. My ActiveX has some properties wich can be modified by the user that I want to persist. If I add my ActiveX into an Excel document, the modified properties are saved because the activeX is saved when the Excel document is saved. But when I add it to a Word document, the modified properties are not saved because the ...
1 5/4/2007 6:45:47 PM
Opening Word from Excel with Macro.
Hello, I'm writing a Macro in Excel that opens a Word document. This is the code: Sub Macro1() Dim WordDoc As Object Set WordDoc = CreateObject("Word.Application") WordDoc.Documents.Open "C:\Wordfile.doc" WordDoc.Visible = True ' CODE WordDoc.Documents("C:\Wordfile.doc").Close SaveChanges:=wdDoNotSaveChanges WordDoc.Quit Set WordDoc = Nothi...
2 4/19/2007 5:20:17 PM
Word document from a dataset
Hi there, I have an application developed in C# that gathers some user input and builds up a dataset. Once all the information has been gathered I need to give the user the option of inserting this data into a report. I have been looking into several techniques to accomplish this and just need a little help on finding out what would be the best method. I have been trying to create ...
2 4/18/2007 5:26:35 PM
Word 2007 OLE Container Control
Does anyone know of a way to embed Word 2007 into a .NET application, ala the old OLE container control? We would like to have Word show up within our WinForm application. Thanks, Mike ...
2 4/18/2007 4:27:18 PM
Embedding Question
Greetings, I need to embed a word file within another word file, that's no problem. Where the problem comes in is that both documents are 11x17. When I go to embed the one document in the other, either programmatically or through the menus, the maximum height of the embedded OLE object is 12.9". I can't make it any bigger. I can change the width of the object however I need to, but not ...
2 4/18/2007 4:27:17 PM
How to "stop inking" programmatically?
I'm controlling Word 2003 from VB, and apparently some users have been using the ink features but finding that if they don't click "stop inking" before they hit our save button, that the ink gets discarded. I'm trying to find out how to stop inking from calls to the application/document. I've looked all over the docs, but the only thing that seems to be related is a call to discard ink...
1 4/9/2007 7:50:01 PM
Using DOCPROPERTY in LINK field
I am writing a long manual in MS-Word 2003 that uses OLE links to MS-Excel files. Here's an example of one of my links: { LINK Excel.Sheet.8 "{ DOCPROPERTY home_folder}RMS 2400\\Book files\\Linked_files\\2400\\Section_2.doc\\RMS_2400_Slip_Die.xls" "Body" \a \f 0 \p } In this example, please note that I use a custom document property, "home_folder", to store the directory path to the...
10 4/9/2007 9:33:50 AM
Word 2007 & VC++ 2003 OLE App
I am having trouble with Word 2007 and my VC++ 2003 application using embedded OLE documents. I am using the InlineShapes interface for deleting inline pictures from Word documents. The problem I am having is when I delete a Shape from a Word 2007 document, save the document and then close the document, I get an assertion failure when trying to release the COleDocObjectItem and winword...
1 4/5/2007 1:54:05 PM
6 Pages: 1  2  3  4  5  6  

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