473,387 Members | 1,592 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,387 software developers and data experts.

Using Word in VB 6.0

164 100+
Hi..

I used web browser control or Ole control to open word dicuments. But whenever I opening the document I coulnd not save the document from VB itself.

I want to save the opened document.. The word document should be opened within VB and have to save the document without any dialog boxes. So that user cannot able to know where the file was saved..

Give me spme ideas..


Thank u
Feb 19 '07 #1
6 3077
hello dear friend
i m new to VB. can u help me in VB??
Feb 19 '07 #2
arunbalait
164 100+
Ya friend..

Tell us your doubts, will answer you up to our knowledge......
Feb 19 '07 #3
arunbalait
164 100+
When I closes the opened document a msg box appears asking to save, rather than that I want to create a button or any to save the opened file...

Give me some ideas..

Thank you
Feb 19 '07 #4
HI

It will help you
Expand|Select|Wrap|Line Numbers
  1. Dim oWord As Microsoft.Office.Interop.Word.Application
  2. Dim oDoc As Microsoft.Office.Interop.Word.Document
  3. oWord = CreateObject("Word.Application")
  4. oWord.Visible = False
  5. oDoc = oWord.Documents.Add
  6.  
  7. 'your content'
  8.  
  9. oDoc.SaveAs(Application.StartupPath & "Test.doc")
  10. oWord.Quit()

Mahesh
Feb 19 '07 #5
arunbalait
164 100+
Ya thanx

I shall check it out...

But I think this code opens ms word separately instead opening within VB window.
Feb 19 '07 #6
hariharanmca
1,977 1GB
Ya thanx

I shall check it out...

But I think this code opens ms word separately instead opening within VB window.

so that you can use MS word OCX control in components
Feb 19 '07 #7

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

Similar topics

2
by: Martin Lucas-Smith | last post by:
I am trying to use PHP's COM support to open a URL from within MS Word then save the document. I am using PHP5.0.3/Apache2/WindowsXP. phpinfo() confirms that COM support is enabled. ...
2
by: Mikey | last post by:
Sample VB .NET source code to create mailing labels or customized letters using MS Word MailMerge This VB .NET source code will start MS Word and call methods and set properties in MS Word to...
0
by: Mikey | last post by:
Sample VB .NET source code to create mailing labels or customized letters using MS Word MailMerge This VB .NET source code will start MS Word and call methods and set properties in MS Word to...
2
by: Mikey | last post by:
Sample VB .NET source code to create mailing labels or customized letters using MS Word MailMerge This VB .NET source code will start MS Word and call methods and set properties in MS Word to...
0
by: Mikey | last post by:
Sample VB .NET source code to create mailing labels or customized letters using MS Word MailMerge This VB .NET source code will start MS Word and call methods and set properties in MS Word to...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
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.