Data not visible when trying to save excel file using epplus - epplus

I am migrating an application which uses ClosedXML as dependency to epplus.
When I try saving the same file using epplus the data inside that excel file is not visible.
Also the size of the excel file reduces.
[Update] - If I try saving a file which was previously modified and saved using ClosedXML I am not able to see data in excel. But if I try saving the file which was created using epplus only then the issue is not visible.

Related

Open the specific folder by usig Excel VBA code?

I got difficulties with VBA code.
I have a Excel file named Database for GL and I want activate this file by using VBA code then I want to Vlookup some information from this file to my current working file.
I have the directory for file.
C:\Users\user\Desktop\Avromed QSC\GL_Analysis
Avromed QSC - is file folder
GL_Analysis - is file folder
Database for Gl - is excel file.
Please, help me to define proper VBA code for this action.

How to change the format of Excel in VSTO Project?

We have a VSTO project for Excel and the current excel document that is binded is .XLSX format, now we want to convert the .XLSX to .XLSB (binary), is there a easy way to do it or we have to create a new project from scratch and keep adding all modules and files manually? Please guide me
You need to create a new project. If you unlink the VSTO solution from the existing workbook then it could be saved to the other file format and used as the basis for the new project. And you can copy the code in the existing project over to the code files created for the new project - no need to retype everything.

How do I Embed file in excel, use it and then embed new version again into excel workbook I'm creating a new Userform control for excel?

I'm creating a custom Usercontrol (Userform) for excel, the name is Virtual forms.
The control is storing data in external file that is created in the same folder where the workbook is (example: VFFile.vf).
How to embed this file into excel (maybe OLEObject? or is there some other solution?)
More info:
I created a Usercotrol (ActiveX control) for excel, which uses an external file with definitions (VFFile.vf). And now to avoid that the developer always has to define the filename where this file on his computer is, I would like to somehow incorporate the file into Excel (when he drops this control onto excel worksheet the control will also put this file into excel workbook). Is there a way to do this?
I continue to use an external file because it gives me the possibilities to use this control in other environments, not only VBA with Excel.
For example, I can use it also in Python, or C# or VB.net.
Thank you guys for your tips and directions.
Davor

Saving Excel Worksheet as a Read Only PDF File?

I have a report that is built off of an excel macro that is triggered when the file is opened. I use a Windows Scheduled Task to open the file which triggers the macro and then closes the file.
As part of the process within this marco one of the worksheets is saved as PDF file to our network. This file is then linked to through our sharepoint site. It appears that if someone is viewing this pdf and the macro is triggered it doesn't update the PDF File since it is opened. I am handling this error by saving a backup file to a different folder with a different name.
I'm trying to find a good way to work around this. Is there a way to export and save the PDF as read only through the excel vba? Is there a setting in Sharepoint that would make the file open as Read Only?
Any suggestions would be greatly appreciated.
Thanks in advance.

Use excel input with 2007 poi stream ,do not release excel resources?

Excel input (select 2007 poi stream) ,after some steps , I want to move some excel files (previous excel input use it) to another directory, then I have an error, the excel file I want to move is using by another one. It is not release resources?