User Profile

Collapse

Profile Sidebar

Collapse
girlswannahavefun
girlswannahavefun
Last Activity: Feb 7 '08, 02:34 PM
Joined: Aug 20 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • c# .Net, Shapes.AddPicture to Excel worksheet

    Hello everyone! Hope you can help me.
    My asp.net application seems to hang when trying to insert a picture. The webpage just kind of keeps loading and loading and then freezes.

    This is the code:
    Code:
    System.Drawing.Image originalBitmap = System.Drawing.Image.FromFile(picFile, true);
    eWorksheet.Shapes.AddPicture(picFile, Microsoft.Office.Core.MsoTriState.msoFalse, Microsoft.Office.Core.MsoTriState.msoCTrue, 370, 100,
    ...
    See more | Go to post

  • referencing Microsoft Office 2007 object library in Visual Studio

    Hi!
    I am developing an ASP application on a local machine with MS Office 2003 while the server we are testing it on has MS Office 2007.
    In visual studio i have added a reference to Microsoft Excel 2003 Object library.

    I am having some problems with ASP trying to open or save Excel files on the server. Could this be due to me not having the correct reference?
    Is there any way to add the reference to Excel 2007...
    See more | Go to post

  • Thank you for you reply!
    I have now managed to solve this problem by changing this

    Code:
    eWorkbook.SaveAs(fileFolder + c.ID + c.revision + ".xls", Excel.XlFileFormat.[B]xlWorkbookNormal[/B], Type.Missing, Type.Missing, Type.Missing, Type.Missing, Excel.XlSaveAsAccessMode.xlNoChange, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing);
    to this:
    Code:
    eWorkbook.SaveAs(fileFolder + c.ID + c.revision
    ...
    See more | Go to post

    Leave a comment:


  • girlswannahavefun
    started a topic C#, Excel Workbook, SaveAs doesn't work
    in .NET

    C#, Excel Workbook, SaveAs doesn't work

    Hi,
    This is my first post on these forums and I am very new to c# and .Net, so please be gentle:)

    I have an ASP application that is supposed to put data into a workbook and then save it and open it in the browser later on. The program seems to hang on the SaveAs(..) line, it sort of loads and loads and loads and nothing happens. Sometimes it eventually loads the start page of the application (session time out maybe?).
    ...
    See more | Go to post
    Last edited by Frinavale; Oct 7 '09, 01:22 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags.
No activity results to display
Show More
Working...