Comments (2)
That's not possible.
Excel uses .xlsx files to read in data. Epplus reads the data from this file in and stores it in memory accessible via programming through its variables for example in a variable of ExcelWorksheet type. There is no file with the edited data until you save. So Excel cannot open it without saving.
from epplus.
Thank you for your interest. Then I found a solution like this. I save it to the temp folder. I'm viewing it from there. The temp file is automatically deleted when the application is closed.
// Create a temporary file collection and add a temporary file with ".xlsx" extension.
string filePath = new TempFileCollection().AddExtension("xlsx");
package.SaveAs(filePath);
// Create a new Process object to start an external process (Excel application).
using (var excelProcess = new Process())
{
// Specify the file to be executed (Excel.exe).
excelProcess.StartInfo.FileName = "Excel.exe";
excelProcess.StartInfo.UseShellExecute = true;
// Specify the file information to be opened in Excel. The "/n" parameter ensures that Excel is opened in a new window.
excelProcess.StartInfo.Arguments = "/n " + filePath;
// Start the Excel application.
excelProcess.Start();
}
from epplus.
Related Issues (20)
- Values from the names manager are expanded with additional quotation marks HOT 1
- Support for the GetPivotData function - PivotTable Calculations
- Add support for newer Excel functions
- Richtext and inline-strings
- Issue with Negation of Defined Named and Ranges in Formula Calculation HOT 1
- Nullable Type member column is not shown in LoadFromCollection() with Members using version above 7.0.10.0. HOT 1
- Automap exception workflow issues HOT 4
- Copy ExcelGroupShape to another sheet HOT 1
- "Can't set bordercolor when style is not set." on Runtime Cell Creation HOT 2
- Can we create excel file in memory and can we directly open that in excel application installed on machine I am using this epplus on desktop application for generating excel file. HOT 1
- Assembly load failure HOT 3
- Clear validations and add new HOT 1
- Conditional Formatting Rules Turning to NaN After Saving
- ParentGroup of ExcelDrawing HOT 4
- Reading worksheets causes stuck problems HOT 2
- ExcelRange.Text returns invalid formatting on formats with "?" in some cases HOT 1
- Comment.RichText.Text does not decode ASCII characters _0Xxxxx_ HOT 1
- ExcelControlScrollBar InvalidCastException
- Unopenable file with conditionalformatting iconset
- Could not load file or assembly 'System.Configuration.ConfigurationManager' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from epplus.