Congratulations to all monthly winners of May 2013 !!! They have won INR 2900 cash and INR 27497 worth prize.
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 1203 |  Welcome, Guest!   Register  Login
 Home > Forums > VB.NET > Save As MSWord Document ...
Sakthi.Singaravel

Save As MSWord Document

Replies: 6 | Posted by: Sakthi.Singaravel on 5/26/2012 | Category: VB.NET Forums | Views: 575 | Status: [Member] | Points: 10  


How to execute "save as" function for MSWord using vb .net.......?

Regards,
Singaravel M


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

Santhiram
Santhiram  
Posted on: 5/26/2012 1:53:38 PM
Level: Starter | Status: [Member] | Points: 25

Dim newDoc As New Word.Document
newDoc = WordApp.Documents.Add
newDoc.SaveAs("My new Document")

Is this u want?

Sakthi.Singaravel, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Sakthi.Singaravel
Sakthi.Singaravel  
Posted on: 5/31/2012 11:35:00 PM
Level: Silver | Status: [Member] | Points: 25

but in my application has saveAs2 and its throws error..

Regards,
Singaravel M

Sakthi.Singaravel, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Sakthi.Singaravel
Sakthi.Singaravel  
Posted on: 5/31/2012 11:36:33 PM
Level: Silver | Status: [Member] | Points: 25

i added microsoft word object library 9.

Regards,
Singaravel M

Sakthi.Singaravel, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Sakthi.Singaravel
Sakthi.Singaravel  
Posted on: 5/31/2012 11:42:13 PM
Level: Silver | Status: [Member] | Points: 25

my reference is correct?

Regards,
Singaravel M

Sakthi.Singaravel, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Santhiram
Santhiram  
Posted on: 6/1/2012 6:06:02 PM
Level: Starter | Status: [Member] | Points: 25

This method can be used only in Word 2010 projects.Which version is your Word Document.For complete refernce u can see this link

http://msdn.microsoft.com/en-us/library/microsoft.office.tools.word.documentbase.saveas2.aspx

Sakthi.Singaravel, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Sakthi.Singaravel
Sakthi.Singaravel  
Posted on: 6/2/2012 12:23:21 AM
Level: Silver | Status: [Member] | Points: 25

i m using all versions word 2003 2007 2010..

Regards,
Singaravel M

Sakthi.Singaravel, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Reply - Please login to reply


Click here to login & reply

Found interesting? Add this to:


 Latest Posts

Write New Post | More ...

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 6/19/2013 10:52:12 PM