We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Open new xls instance

Thread ID:

Created:

Updated:

Platform:

Replies:

126025 Sep 18,2016 09:03 PM Sep 20,2016 07:20 AM Windows Forms 3
loading
Tags: XlsIO
Nicolas
Asked On September 18, 2016 09:03 PM

Hi, I am trying to open a new instance of Excel before exporting data to this instance, and apparently I have not seen any properties that helps to do that. All the codes are about opening an existing file, or save the changes to a new file, I would like to open a new file, perform the export (this part is performing well), leaving an unsaved file. Thanks in advance - Nicolas

Abirami Varadharajan [Syncfusion]
Replied On September 19, 2016 07:25 AM

Hi Nicolas, 
  
Thank you for contacting Syncfusion support.  
  
You can create a new Excel document with the below code snippet. 
  
Code Snippet: 
application.DefaultVersion = ExcelVersion.Excel2013; 
  
IWorkbook workbook = application.Workbooks.Create(1); 
  
  
  
Please let us know if you have any concerns. 
  
Regards, 
Abirami. 


Nicolas
Replied On September 19, 2016 07:56 PM

Hi I already tried that, but did not worked for me, however I found a workaround by saving the file in a temporary folder and opened this file - Thank you! - Nicolas

Abirami Varadharajan [Syncfusion]
Replied On September 20, 2016 07:20 AM

Hi Nicolas, 
 
We are glad that your issue is resolved through a workaround. 
 
You can also save the workbook to a stream and reopen it whenever needed. 
 
Regards,
Abirami.
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;