Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / COM / March 2007



Tip: Looking for answers? Try searching our database.

Disabling Fill-In Fields

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
johnrou@ci.green-bay.wi.us - 08 Mar 2007 07:30 GMT
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.......
Richard T. Edwards - 25 Mar 2007 00:57 GMT
If you're wanting to have the client see a black version of your bound word
doc, why not use a statement in it that returns only blank fields?

Perhaps, I don't understand the question.  But if blank is what you want on
the client side so that when the user submits the filled our information,
this would make sense to me.

> 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
[quoted text clipped - 22 lines]
>
> Thanks for the help.......
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.