the error was:
System.ArgumentException: The value is not within the range expected.
à Microsoft.Office.Interop.Excel.WorkbookClass.ExportAsFixedFormat(XlFixedFormatType Type, Object Filename, Object Quality, Object IncludeDocProperties, Object IgnorePrintAreas, Object From, Object To, Object OpenAfterPublish, Object FixedFormatExtClassPtr)
à Excel_to_Pdf.Form1.Form1_Load(Object sender, EventArgs e) dans C:\Documents and Settings\Administrateur\Mes documents\Visual Studio 2005\Projects\Excel_to_Pdf\Excel_to_Pdf\Form1.cs:ligne 53.
No clue, sorry.
Try to search the error "System.Runtime.InteropServices.COMException (0x800A03EC): Exception from HRESULT : 0x800A03EC" in Google, hopefully someone already encountered (and solved) this error.
As I said, in my machine your code worked with an XSL, so maybe the problem is related to the document you are using.
Anyway, you can save an XLSX as XLS by using the SaveAs method on the workbook object and specifying XlFileFormat.xlWorkbookNormal as file format.
I have console application that contain sub project define as dll,
I would like to add XML to the dll so the when I deliver the dll it already contain the xml without sending dll and xml separately
How can I add it?
Should I just select add item and then select the XML file?
Add it as a linked resource to the dll which you are sending.
In Visual studio you can easily add a linked resource by going to project properties / Resources button. Click on the top first dropsown button to change ti to files and then you can easily add.
I am currently trying to figure out how the [assembly: AssemblyVersion("1.0.0.*")] works. In particular the * part of it. I understand about the Major Number, Minor Number and Build Number. What I don't understand is the Revision Number.
As it is * it automatically increments... however; what determines the revision number. I.e. where does it come from?
This is also what i expected... however; I dont understand how it is generated.
For example, the application i am currently working on requires it to be displayed.
I ran the appplication and the number that was displayed was 126.96.36.19976, I made a couple of changes and ran it again, then the new version number was 188.8.131.5268. I don't understand why it increments so much.