473,386 Members | 1,943 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Automation and .NET (NEED HELP PLEASE)

Hello,

This is a post that started in the vb.net newsgroup that I am having
difficulty in getting answers to. It involves using the web browser control
as the replacemnt for the Ole Container that existed in vb6. It is a vb.net
windows app. If anyone and I do mean anyone has answers to this please
help.....I am a little under the gun as the boss indicated we need to have
it exist within the app and I told him that I could do this not remembering
the Ole Container was dead.

I also have Visual Studio Tools for Office 2003 installed but I am not sure
if that will help. It needs to work for Office 2000,XP and 2003.

Open Visual studio start a new project, add 3 buttons to form1 and the
(Ax)WebBrowser control.

load the document with teh button1 click event:

AxWebBrowser1.Navigate("C:\test.doc")

(Can this dialog that appears be turned off programmatically(asks if it
should open or save)?)

Make changes to the document by typing.

Have button2 do something like insert text into the document (something
along the lines of what you would do if automating the document.)

Click button3 to save the document and reload with the changes.

Is this possible?

Thank you all for any help you might be able to give....
Nov 20 '05 #1
3 1073
Hi,

See if the following helps

http://support.microsoft.com/default...NoWebContent=1

Hope this helps

Chris Taylor
"scorpion53061" <sc****************************@yahoo.com> wrote in message
news:eU**************@tk2msftngp13.phx.gbl...
Hello,

This is a post that started in the vb.net newsgroup that I am having
difficulty in getting answers to. It involves using the web browser control as the replacemnt for the Ole Container that existed in vb6. It is a vb.net windows app. If anyone and I do mean anyone has answers to this please
help.....I am a little under the gun as the boss indicated we need to have
it exist within the app and I told him that I could do this not remembering the Ole Container was dead.

I also have Visual Studio Tools for Office 2003 installed but I am not sure if that will help. It needs to work for Office 2000,XP and 2003.

Open Visual studio start a new project, add 3 buttons to form1 and the
(Ax)WebBrowser control.

load the document with teh button1 click event:

AxWebBrowser1.Navigate("C:\test.doc")

(Can this dialog that appears be turned off programmatically(asks if it
should open or save)?)

Make changes to the document by typing.

Have button2 do something like insert text into the document (something
along the lines of what you would do if automating the document.)

Click button3 to save the document and reload with the changes.

Is this possible?

Thank you all for any help you might be able to give....

Nov 20 '05 #2
I figured something out.......Thank you.
"Chris Taylor" <ch*************@hotmail.com> wrote in message
news:uQ**************@TK2MSFTNGP12.phx.gbl...
Hi,

See if the following helps

http://support.microsoft.com/default...NoWebContent=1
Hope this helps

Chris Taylor
"scorpion53061" <sc****************************@yahoo.com> wrote in message news:eU**************@tk2msftngp13.phx.gbl...
Hello,

This is a post that started in the vb.net newsgroup that I am having
difficulty in getting answers to. It involves using the web browser

control
as the replacemnt for the Ole Container that existed in vb6. It is a

vb.net
windows app. If anyone and I do mean anyone has answers to this please
help.....I am a little under the gun as the boss indicated we need to have it exist within the app and I told him that I could do this not

remembering
the Ole Container was dead.

I also have Visual Studio Tools for Office 2003 installed but I am not

sure
if that will help. It needs to work for Office 2000,XP and 2003.

Open Visual studio start a new project, add 3 buttons to form1 and the
(Ax)WebBrowser control.

load the document with teh button1 click event:

AxWebBrowser1.Navigate("C:\test.doc")

(Can this dialog that appears be turned off programmatically(asks if it
should open or save)?)

Make changes to the document by typing.

Have button2 do something like insert text into the document (something
along the lines of what you would do if automating the document.)

Click button3 to save the document and reload with the changes.

Is this possible?

Thank you all for any help you might be able to give....


Nov 20 '05 #3
I figured something out.......Thank you.
"Chris Taylor" <ch*************@hotmail.com> wrote in message
news:uQ**************@TK2MSFTNGP12.phx.gbl...
Hi,

See if the following helps

http://support.microsoft.com/default...NoWebContent=1
Hope this helps

Chris Taylor
"scorpion53061" <sc****************************@yahoo.com> wrote in message news:eU**************@tk2msftngp13.phx.gbl...
Hello,

This is a post that started in the vb.net newsgroup that I am having
difficulty in getting answers to. It involves using the web browser

control
as the replacemnt for the Ole Container that existed in vb6. It is a

vb.net
windows app. If anyone and I do mean anyone has answers to this please
help.....I am a little under the gun as the boss indicated we need to have it exist within the app and I told him that I could do this not

remembering
the Ole Container was dead.

I also have Visual Studio Tools for Office 2003 installed but I am not

sure
if that will help. It needs to work for Office 2000,XP and 2003.

Open Visual studio start a new project, add 3 buttons to form1 and the
(Ax)WebBrowser control.

load the document with teh button1 click event:

AxWebBrowser1.Navigate("C:\test.doc")

(Can this dialog that appears be turned off programmatically(asks if it
should open or save)?)

Make changes to the document by typing.

Have button2 do something like insert text into the document (something
along the lines of what you would do if automating the document.)

Click button3 to save the document and reload with the changes.

Is this possible?

Thank you all for any help you might be able to give....


Nov 20 '05 #4

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

Similar topics

25
by: Neil Ginsberg | last post by:
I have a strange situation with my Access 2000 database. I have code in the database which has worked fine for years, and now all of a sudden doesn't work fine on one or two of my client's...
21
by: Neil | last post by:
Is there a way to trap an error generated in another app that is controlled via automation? I have an Access 2000 app that opens Word 2000 and proceeds to open a series of documents and, in each...
6
by: Frank X | last post by:
Excel 2002 introduced a capability to add custom worksheet functions to Excel direct from a COM/ActiveX object. I can use C# to develop a COM object which I can use fine from Excel/VBA, however...
7
by: Franck | last post by:
Hi, I'm using an xls file through my web service to print out a pdf file from which I returned path. In this way, got a macro in my XLS file which do the print out. Testing it from the xls file...
2
by: Alfredo Magallón Arbizu | last post by:
Hello, I have an ASP.NET application that reads an Excel file through automation. The app has a loop until first cell of a row is blank. While the app works perfectly under Windows 2003, it...
6
by: a.theil | last post by:
Please help! I need a simple excel automation, just 2 write some files into excel. I do: Dim oXL As Excel.Application Dim oWB As Excel.Workbook Dim oSheet As Excel.Worksheet Dim oRng As...
1
by: electrixnow | last post by:
I need some help on automation for office. I found some code I want to use, it looks like this: Variant wordTables = wordActiveDocument.OlePropertyGet( "Tables" ); long table_count =...
12
by: Tomas | last post by:
Hi, I have worked with VB.NET for half a year (semi-newbie). Currently I am looking around for some books for those that crossed the starting hurdle. There are too many books out there-make...
22
by: liya.tansky | last post by:
Hello, I'm developing an intranet (win XP, .NET 2, Visual Studio 2005, Microsoft.Office.Interop.Word.dll in references) and needed to implement find-replace in word doc before sending letter and...
10
by: cj2 | last post by:
I open a word template in VB and add values to the bookmarks then save the document as as pdf. When I then go to close the document it pops up a save as dialog box. It's already saved the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.