.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

save to word

Posted By:      Posted Date: September 16, 2010    Points: 0   Category :Windows Application
Hello, I have an application that I am using to convert excel files to HTML for use on the web. The user has the choice via a button to select which file they want to save. Each time Excel sheet 2 needs to be saved. I am having a problem in my code that doesn't allow sheet 2 to be saved each time. Has anyone any tips. Here is the part of code that seems to be wrong/not complete. objExcel = CreateObject("Excel.Application") objExcel.Workbooks.Open((path + TreeView1.SelectedNode.Tag)) objExcel.Visible =False objSheet = objExcel.Sheets.Item("Sheet2") objSheet.Cells.CurrentRegion.Select() objSheet.Cells.Copy()   I'd be grateful for the help.

View Complete Post

More Related Resource Links

Word save file on SharePoint via mapped drive


Hi, I have a Document Library mapped to a drive letter. I am able to browse the drive through Windows Explorer. However when I try to save a document to the drive Word returns, 'Unable to connect to the Web server.' .  I have been unable to find any information regarding this error message. If I try to create a document in the Document Library through Windows Explorer and the mapped drive, I get a different error message: 'Unable to create the file 'New Microsoft Office Word Document.docx' There is no user session key for the specified logon session.' After I click OKand refresh the directory, a 0 KB New Microsoft Word Document.docx file has been created. When that file is opened, it is in Read-Only mode.


Windows Server 2003 R2
Webclient service started
Signed into the Microsoft Online Services Sign in Application
IE configured through the sign in application
site added to the trusted sites in IE

Thank you again for your input.

open Word document in iframe without open/ save dialouge

Hello All! In my application users upload their word document and user has been given an option to preivew the uploaded document. Inorder to  preview  the document  i put the following code in my page_load eventdiv1.InnerHtml = "<iframe name='iframe4' src='DocumentUuploaded/report.doc ' target='iframe4'  frameborder='no' height='500' scrolling='no' width='800'></iframe>";The problem is it is asking Do you want to open or save this file. How can i get rid of this dialouge box . Pls helpThanks in advance.

How to save word document in sql database?

Hi all, I have created a word document in my application (.Net). How can I save the word document (containing tables and some HTML formats) in a database and retrieve it for later use? Thank you in advance,

Word 2010, Save to SharePoint, Browse for a location, nothing happens

I want to save a document to my sharepoint workspace but in Word 2010, Save to SharePoint, Browse for a location, nothing happens.  I click the button which flickers but nothing appears.

Save from WORD in SharePoint



when save from WORD to SharePoint the user gets a message of:

"The file cannot be save because some properties are missing or invalid... Go to Document information panel..."

Is there a way to set skipping that message and always display the Document information panel?


Opening a MS Word File and setting the save location



I have an ASP intranet site which opens word documents from a shared network drive (link is stored in a DB).  When the user then goes to save the document, it points the user to their default location - say C:\myprofile\my documents.  How can i get it so that the user can just click on save and it saves it in the location it got the file from?  I am using the following code to grab the document:

Response.AddHeader("Content-disposition", "attachment; filename=" & docfilename)
Response.ContentType = "application/vnd.ms-word"

If i navigate through the network share manually through windows, open the document and click save - it will save it to the right location.


How to enable Word 2010 to save to one of the document libraries on a newly installed Sharepoint Ser



I have a newly installed Sharepoint Server 2010 (say, http://spserver/) somewhere on our LAN on Windows Server 2008 R2. And I am working with Word 2010 on my Windows 7 machine. I have created a Document library somewhere in a subsite of the Sharepoint server (say, http://spserver/subsite/doclibrary)

Now, working with Word 2010 I want to simply save the document that I'm working into that document library Doclibrary. I go to Word 2010 backstage... and can't find anything there.

1) Save As? It only shows my file system...

2) Save & Send? I see there Save to Sharepoint. But Browse for Location button gives me nothing. If I press Save As here, I just get my file system again.

What should I configure on Sharepoint server or in my machine, so that I can save to my doclibrary with as few clicks as possible, just like I always did with my local file system.

Default Column Values in a Document Library (SP2010) do not show up in word 2010 until you save and


when you create a document in a SP 2010 document library (of a particular content type, by clicking new, letter (content type name) in sharepoint for example) which has default values set on in in the library (set by using library settings -> change default column values), the default values do not show up until you create the document , save it and reopen it again.  Is this a bug or by design.  If it is by design, it is horrible since if some of the column default values are mandatory in the content type then you actually have to type them in before you could possibly save the file which defeats the whole point of having default column values.  Also it is tremendously clunky for a user to have to create file, save it , close it, and reopen it just to view the default metadata in the document information panel that is supposed to be there.

Anyone have any thoughts/solutions to this problem?


Save word doc as pdf


I have made a custom content type in a document library in WSS 3.0. When I create a new document (word doc) in the library, I am able to fill in meta data in word. I can then save the document in the document library abd the metadata is also saved. I then save the word document as pdf directly to the document library. When I then open properties of the pdf document in the document library, all metadata is missing. Is there a way to save the metadata when I save the document as pdf?


Save images to SQL CE

Storing binary objects (such as image, office document etc.) into database is a little cumbersome when it comes to retrieval. Hence the most commonly accepted way is only store the file path in the database, and to store the documents on a file share.

PrintPocketCE Print Pocket Excel, Pocket Word and email files

Version 3.560 (May 15, 2009):

Important bug fix: a slight difference in how some devices create fonts was causing a few devices to have significantly longer print times for large print jobs.

Adjusted PocketJet printer paper feed commands

Other minor fixes and enhancements.

Version 3.559 (Mar 5, 2009):

Added support for Martel MCP78xx printers

Version 3.558 (Aug 20, 2008):

Added support for Martel MCP78xx printers

Version 3.557 (June 27, 2008):

Fixed error in Canon printer support

Fixed COM0 port selection

Version 3.556 (June 15, 2008):

Added support for Brother MW-260

Added support for Sato MB400

Version 3.555 (Aug 8, 2007):

Added support for Pentax RuggedJet 3 and RuggedJet 4 printers

Changed Epson TM-P60 support to maximum page width of 1200 dots

Version 3.551 (Aug 1, 2006):

Added Peripheral Nomad printer support

Version 3.550 (Mar 23, 2006):

Added Panasonic JT-H200PR printer support

Added Pocket Spectrum printer support

Fixed problem with WM5.0 "inverted image" problem

MS Word style comments in asp.net



I need to create a system, that will be similar to ms word style comments. So the idea is the following: on the page there are a pack of text boxes labels and so on, and user need have the way to comment each control, and save commented text, for example to DB, so the others can reed comments too.

I tried PopUpControlExtender, but it works in single way, and i cannot view all the popups in one time. Or may be i missed something and there is a way to popup all the controls at one time? 

Therefore, are there any known solutions for a discribed task, based on PopUpControlExtender or something else?

Profile not being save after redirect.



I am trying to save values into a Profile on Page1, then redirect to Page2 and access those values.  However, after the page redirects the profile values are blank as if they were never saved.   When stepping through the code I can see that they are being save on Page 1.

I suppose I could use session variables to store the information but I don't understand why saving the profile doesn't work.

private void PayWithPayPal()
        ProfileCommon profile = this.Profile;

        if (Global.CurrentUserName.Length > 0)
            profile = this.Profile.GetProfile(Global.CurrentUserName);
        profile.FirstName = uxFirstNameShipping.Text;
        profile.LastName = uxLastNameBilling.Text;
        profile.ShippingAddress.AddressLineOne = uxAddressLineOneShipping.Text;
        profile.ShippingAddress.AddressLineTwo = uxAddressLineTwoShipping.Text;
        profile.ShippingAddress.City = uxCityShipping.Text;
        profile.ShippingAddress.State = uxStateShipping.Text;
        profile.ShippingAddress.ZipCode = uxPostalCodeShipping.Text;

        Response.Redirect("~/expresspayment.aspx", false);

protected void Page_Load(object sender, EventArgs e)
        ProfileCommon p



Is it possible with SQL sorted in descending order according to the word?
In Table I shrajeno Mastercard, Visa, Diners etc ...

All Visa are the first in the order, another Mastercard, etc. ...

Something does not work: ORDER BY PaymentType = 'Visa';

I would not want to work in one field PaymentId (111,222,33, etc. ..) and then use the ORDER BY.

Is this possible in such a way?

how get only two word in database?



i have a feild in database where we store data like







i want only first to word to show in textbox1 like(only PT).

How to save Unicode in SQL Server 2005

I am using google transliteration to display the text in Hindi/Tamil

I tried to store the text appear as Hindi from textarea in an nvarchar
field of database (SQL Server 2005) , the text saved as "???????".

After retireving text from the same it display the text as "???????".

Can anyone help me how to store and retrieve the actual data from SQL
Server 2005?

I am using ASP.net,VB.Net and SQL Server 2005

server side does not save data when using POST data to another URL using WebRequest


 I am using a IIS 7.5 on Windows 7. I have a simple application that uses System.Net.WebRequest to POST data to another URL (in fact, the server side URL is on my local computer and it is hosted in IIS 7.5).

  1.  The problem is the server does not save data from client although on the client side codes when I debug and I see the OK message return from the code line

   response.StatusDescription; // this has value of "OK"
2. How can I debug the server code side where to receive the request from client side who posts the data ?

The following is the codes for client who posts data using System.Net.WebRequest, and codes for server side who received posted data to save to database.

Client side codes: // also run on my local computer

public string PostIntegrationXml(XmlDocument xmlSubmitDoc)




ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend