473,324 Members | 2,166 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,324 software developers and data experts.

How to open MS Word Inside VB Application

Hi Friends,

I am trying to open MS Word Inside VB Application with all controls. I can open only notepad. But Unable to open Word in side VB Form.

If any one know please suggest me.

Thanks
vishwa Ram.
Oct 6 '07 #1
8 2675
QVeen72
1,445 Expert 1GB
Hi,

Use "OLE" control on the form, or
"Shell" the application

Regards
Veena
Oct 6 '07 #2
Dear Veena,

Thanks for your nice Idea,

1. When I use Shell, Word opens as sepate window.
2. When I use OLE, it is avail inside application. All word functions available.

But I want all menu and Icon on the heading. How we can get these thing please suggest. also File Menu.

Thanks,
vishwa Ram.
Oct 6 '07 #3
QVeen72
1,445 Expert 1GB
Hi,

Set OLE Control's MiscFlags property =2

Want To take a look at this M$ Link

REgards
Veena
Oct 6 '07 #4
Dear Veena,

Thanks for your excellant help.

I am following what you said. I want to open New/Existing/Save/SaveAs document from/to a particular location. Can't do these thing in this Embeded application in OLE. Please suggest how to do these things.

Thanks
vishwa Ram
Oct 6 '07 #5
QVeen72
1,445 Expert 1GB
Hi,

You can use "OLE's :
SaveToFile
ReadFromFile

or else use "Common Dialog Control" To Open/Save files.

REgards
Veena
Oct 6 '07 #6
Dear Veena,

when we use the below OLE method, we need to pass a integer argument. How to pass a argument, when i pass a integer, it throws an error.

SaveToFile(FileNum as Integer)
ReadFromFile(FileNum as Integer)

Regards,
vishwa Ram.
Oct 6 '07 #7
QVeen72
1,445 Expert 1GB
Hi Vishwa,

you can also save like this :

Expand|Select|Wrap|Line Numbers
  1.  
  2. OLE1.object.SaveAs ("C:\MyNewFile.doc")
  3.  
  4.  
Regards
Veena
Oct 6 '07 #8
Dear Veena,

Thanks a lot for your helping.

Thanks,
vishwa Ram.
Oct 8 '07 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Anne Richmond | last post by:
I got the following code from a website somewhere. When I try to run it I get the error - Activex component can't create object "Word.Application". It is running on localhost and test2.doc does...
3
by: TLMM | last post by:
I have a Word doc already created that I want to open from an asp page. I want it to open in Word and allow the user to modify if necessary. I currently have it opening (using href), but it is...
3
by: Bill Agee | last post by:
I need to open Word from my Access application. I would like to do without minizing Access to open word from the desktop if possible.
8
by: sudha | last post by:
Hi, To open a word doc from c#, i use the following code : Word.ApplicationClass WordApp = new Word.ApplicationClass (); // give any file name of your choice. object fileName =...
1
by: Oscar Hdez G. | last post by:
We are developing an application that controls documents. We need inside the application an editor of advanced texts that allows to elaborate different types of simple and complex documents according...
0
by: walkabout | last post by:
A shared document is left open frequently so need a script that detects 5 minutes inactivity and saves changes and closes document. thanks. could mod the following but needs to save changes and...
7
by: Peter | last post by:
ASP.NET 2.0 I am trying to open a Word document and Excel document from a dialog web page, what's the best way to do that? I have tried the following: Response.Clear();...
7
by: Peter | last post by:
I have the following code which is executed from a modal web page - it works fine on most, but on some computers the Word loads into memory but never displays. This occurs with IE6 and IE7, but...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.