473,507 Members | 6,727 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Change Word document in WebControl

Hi !

I have a problem with WebControl

I opened Microsoft Word document not directly, but in Visual Basic 6.0
WebBrowser control.
When I selected with Range.Select any text the Saved property of the
document did not change, but when I highlighting even one character with
Range.HighlightColorIndex, I cannot prevent the WebControl from displaying
save message. Undo method also has no effect.
Even if I set oWebControl.Document.Saved = true, the message displayed
anyway and WebControl performs save on Yes button. The same trick works well
if I open Excel document.

How can I force WebControl not to save Word document and not to display save
message ?

Thanks!

Igor.
Jun 25 '07 #1
1 1946
GS
are you using vb 6 webbrowser control because of not having the option of
using PIA from Microsoft office for .net?

if that is not the case, download the redistributable pia for the lowest
version of office being used among your user and access the document
directly that way.

google search: site:microsoft.com office pia

I am using PIA for excel automation in my application

"Igor" <Ig**@discussions.microsoft.comwrote in message
news:02**********************************@microsof t.com...
Hi !

I have a problem with WebControl

I opened Microsoft Word document not directly, but in Visual Basic 6.0
WebBrowser control.
When I selected with Range.Select any text the Saved property of the
document did not change, but when I highlighting even one character with
Range.HighlightColorIndex, I cannot prevent the WebControl from displaying
save message. Undo method also has no effect.
Even if I set oWebControl.Document.Saved = true, the message displayed
anyway and WebControl performs save on Yes button. The same trick works
well
if I open Excel document.

How can I force WebControl not to save Word document and not to display
save
message ?

Thanks!

Igor.

Jun 25 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2591
by: Richard Cornford | last post by:
For the last couple of months I have been trying to get the next round of updates to the FAQ underway and been being thwarted by a heavy workload (the project I am working on has to be finished an...
2
4301
by: Vivek | last post by:
Hi, I have an application that writes to a word document. After that I wish to print the document to a particular printer automatically. I tried but it keeps on printing to the default...
7
6212
by: Dave | last post by:
Apologies for the newbie question. I have created a vb.net program for my company that is designed to work with Word Templates (about forty of them that we commonly use) that are selected by the...
1
7617
by: Adam Faulkner via DotNetMonster.com | last post by:
I had a problem before extracting pages from an existing word document and then inserting the content into a new word document. The following code below works with Microsoft Word 2000 Function...
3
5466
by: ljungers | last post by:
I need to make some changes to a Query/select/print report using word application. What I need to do is change the way Word is called yet keep the process the same. Word is used so changes can be...
4
12413
by: etuncer | last post by:
Hello All, I have Access 2003, and am trying to build a database for my small company. I want to be able to create a word document based on the data entered through a form. the real question is...
1
976
by: =?Utf-8?B?Tmljaw==?= | last post by:
Hi all, i have a webpage with a button and click button to generate a word document, which take about 10 second. so what i am trying to do is i write a javascript to display a message to...
5
1852
by: raha | last post by:
hi. Is there any body to help me? I am writing a web program. I have some forms. each form have some controls and users can edit the controls. finally they can save their forms. I would like...
3
2835
by: AndyDelbaere | last post by:
Hello, I have a word document with multiple pages. I want to select a random page and be able to change the orientation (from portrait to landscape and vice versa) This should only change the...
0
7313
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7029
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7481
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5619
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5039
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
411
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.