msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Disabling Fill-In Fields

 
Post new topic   Reply to topic    msvisual.com Forum Index -> OLE Automation
Author Message
johnrou



Joined: 04 Oct 2007
Posts: 1

PostPosted: Thu Mar 08, 2007 4:30 am    Post subject: Disabling Fill-In Fields Reply with quote

I'm stuck while dealing with Word Fill-In fields in VB. I have a
small application that opens a Word document and prints it to the
default printer. Here's what I have:

Dim oWord_App As Word.Application
Set oWord_App = New Word.Application
oWord_App.Documents.Open "C:\test.doc"


This code opens the document just fine. The Word document uses Fill-
In fields. When I run the program, the fill-in fields look for a
response from the user. The problem is that this app needs to sit on
a server, so I need to open the document without the fill-in fields.


While searching today, I found the line:
oWord_app.Documents(0).Fields.Locked = true


but it's a catch22.... I can't lock the fields until the document is
open, but I can't open the document until I disable the fields......


In the end, I need to find a way to open the Word document without
initializing the Fill-Ins... By the way, I can't remove the Fill-In
fields from the Word Document.... they are required by some of our
end
users.


Thanks for the help.......

Archived from group: microsoft>public>vb>ole>automation
Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
Disabling VBA Runtime error popups Hello, I'm working on a tool for validating XLA code. Im using automation to drive Excel from JSCript (target is C#), and I have no problem. Except when a Runtime Error occurs (I want precisely detect such error before releasing new I can o

Changing background/fill colors of a cell in an Excel Object I'm populating a spreadsheet with an SQL recordset through VB code (v6.0). I need to HIGHLIGHT a cell if it meets certain criteria. I need to know (and trust me, I've looked all over the net/MSDN library for this) what the cell property is called that all

Setting fields in Word 2002 from VB6 Hello all I am trying to create a Word 2002 document from within VB6 SP5. The code I use is Dim wdApp As Object Dim strFileName As String ' create Word app Set wdApp = wdApp.Visible = True ' add the filename to the Word a

Problems with Merge Fields in Footer/Header Hi All, to get the list of Merge fields in a doc we use: This instruction ignores the fields in Header/Footer and in TextBox. Is there a way to count the merge fields in this areas ? Thanks in advance. Gianni

Can't update fields in form The following code displays the form, but does not allow me to change the value of any of the fields in the form. Can someone please tell me why, because I sure can't figure it out. The form works fine in Access. Notes: The database is not marked read o
Post new topic   Reply to topic    msvisual.com Forum Index -> OLE Automation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group