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

Interop saveAs html automation

Hello ppl...

1)

i've finally got my automation launched correctly..
but this time i wanna know how to close my winword.exe
process which seems to remain in memory despite closing
the app... can you tell me how to 'kill' this app from
memory.

2)

can you ppl tell me how to saveas an html document
instead of just saving my word document as is... (I'm
especially looking for the code which will automate the
saving the doc to html)

Here is my code bellow.. how can i improve it?

Expand|Select|Wrap|Line Numbers
  1.  
  2. Dim oWordApp As
  3. Microsoft.Office.Interop.Word.ApplicationClass
  4. oWordApp = New
  5. Microsoft.Office.Interop.Word.ApplicationClass()
  6.  
  7. Dim oWordDoc As
  8. Microsoft.Office.Interop.Word.Document
  9. Dim fileName, isVisible, missing As Object
  10. fileName = "c:\bhav\TheDoc.doc"
  11.  
  12. oWordDoc = New
  13. Microsoft.Office.Interop.Word.Document()
  14. oWordDoc = oWordApp.Documents.Open(fileName)
  15.  
  16. oWordDoc.Activate()
  17.  
  18. oWordApp.Selection.TypeText("Another brick in the
  19. wall")
  20. oWordApp.Selection.TypeParagraph()
  21. oWordDoc.Save()
  22. oWordApp.Quit()
  23.  
  24.  

From bracoute
Thanks in advance

Plz if you can, reply me via my email address:
br******@hotmail.com
Nov 17 '05 #1
0 2411

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

Similar topics

0
by: TOM | last post by:
I want to saveas silently ! it will not prompt to user for saveas please tell me how can I do this silently. please do replay ! OLEObject IE IE = CREATE OLEObject
1
by: Sarah | last post by:
Hello. I am using Microsoft.Office.Interop.Excel in a C# .NET project. I want to open an Excel application with a specific file name. I am currently opening it with this code: ...
2
by: Steve | last post by:
I'm using Visual Studio .NET (not 2003), and am developing a class that works with Word theough the Office PIAs (Interop). I can open word and do things with it programatically, but I can't close...
8
by: | last post by:
Hi All, I'm tring to write an application which open .xls files and get information from them ( using .xls file as a database ). According to the MSDN (...
2
by: SiJP | last post by:
I've been having a few issues recently in creating a vb.net class library (using vs.net 2003), registering it for com interop and then invoking its functions from an object in VB6. The error I...
0
by: Zeljko | last post by:
VB.net 2005 express - Office Word 2003 Office 11 library =references I need to make from VB.net search in Word for these words: "tree", "bus", "car"...(complete list contains ca. 50 words) when...
1
by: allbelonging | last post by:
C#.Net Outlook 2003 automation (programmatically) with Office.Interop.Outlook Problem: I have my outlook 2003 configured with multiple mailbox on my local machine. I want to specify the mailbox...
8
by: priyankalakhe | last post by:
Hi, I'm new to Automation and am currently trying a code from msdn http://msdn2.microsoft.com/en-us/library/aa155776(office.10).aspx to automate a word application(Office 2003) in VC++...
0
by: Bitula | last post by:
Hi, I have a problem with powerpoints saveas during automation. I'm using ppt app to save several ppts to html and to gif. Despite using the app from separate threads (in MTA) looking at my log it...
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...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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?
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.