Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I have a report data which comes from back end service (.NET) and report format in HTML table.(angular)
I need to export this report to excel with Angular front end.
what would be the best way to achieve this? I found couple of ways which would be the better one or suggest if you find any other way
1. export the html table with xlsx package available on npm.
2. send http request which will get all the data from back end service including html.
Please also let me know what would the ideal solution for handling export to excel functionality. Is there any documentation Microsoft provides?
I use EPPlus on the back end in ASP.NET to generate Excel files. Open source, works great, far easier to deal with than manually creating the XLSX packages, and it supports a number advanced Excel features.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am using WPF windows application and I want to export data-grid data to Microsoft Word with background colors. Please suggest a way to do it.
I think you will need to use Microsoft.Office.Interop.Word namespace ... this is a walk-through https://msdn.microsoft.com/en-us/library/ee342218.aspx ... I guess you will be making use of the Table interface .
You will need msword at your machine and wherever your application is deployed.
Personally, if i had an option then i would export the data as CSV format and indicate the colour in one of the values.
That said, i don't really know the limitations but this should get you going .. alternatively try to find an open source lib that can help you with this. That is AFAIK there is no out of the box solution by .Net
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
Hi and thanks in advance.
I'm using C# and Visual Studio 2013 in this project. My task is to find a way to convert Word documents to .pdf and the conversion needs to be done in the cloud. Any suggestions?
Thanks
Steve
You may get different results from different service providers. Since you have a MVC application, I would consider having a server-side conversion service instead of a cloud one, because you could achieve better performance.
Conversion service could be template based with OpenXML API support, so that no Word instance is needed on the server. One tool that I think of could be suitable for you is Docentric Toolkit. You have to buy a license, though. So if you have budget for it, this might work for you. Beside .docx you can get pdf or xps output.
Number of cloud solutions are available for DOCX to PDF conversion. I suggest GroupDocs.Conversion Cloud Service for high quality and reliable PDF conversion, it supports 50+ popular file formats.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I would like to validate Excel data according to the following before importing into a database:
Some columns have a maximum length
Some columns are numbers/dates
There must be no special characters
How can i go about this? (I am using C#)
EDIT: How do I validate an Excel column to have a maximum text length using Interop, for example, if I do not want the text to be more than 30 characters long? #JMK #artm #Linger #ivan_pozdeev #BenR
Use the Microsoft OpenXML SDK for Office to open the file and examine its contents. Library is available here http://msdn.microsoft.com/en-us/library/office/bb448854(v=office.15).aspx
Open XML SDK will be a great start
try this guide from MSDN - http://msdn.microsoft.com/EN-US/library/office/gg575571(v=office.15).aspx
NOTE - Open XML SDK is free to use and distribute. Go through documentation and first try to understand how Spreadsheets are structured. Also Open XMl SDK support ONLY open XMl file foramts, that means .XLSX as default for exel and NOT .XLS
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
Can you please help me in generating PDF file using c# and without using 3rd party dll?
Expect all possible solutions/ideas/suggestions.
Thanks,
Anil
You can create a rdlc file and export it to PDF using the built-in function of ReportViewer.
Using ReportViewer you can also create a report and export it to PDF at runtime (without preview).
Is the pdf fromat a strict requirement? If not, it is a bit easier to create html or rtf documents, if you can't use 3 part libraries.
If it is a requirement, you can create a pdfdocument (example here) and create a text-template (like this one) to replace the data you want.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Upon suggestion this question has been amended to the following;
Does anyone here know about Baan as a system and if so how compatible (if at all) is it with Excel from a developer's point of view? I need to pull reports from Baan to populate Excel workbooks and be able to take certain portions of data into other workbooks without bringing in the whole code and sifting through it.
This is really 3 independent questions:
How do I parse a BaaN report in C#? (You may have some trouble with this, unfortunately.)
How do I read an Excel file in C#?
How do I generate an Excel file in C#?
if you are looking the pull data from data source into excel that is just tabulate format. so what you need to learn is excel inter-op with C# and that is very simple i can provide you some of samples. as like.
http://vscontrols.blogspot.com/2010/09/manipulating-excel-using-adonet.html
and if you are looking to pull complex data and matrix values from the Data Source then i suggest you to read about the EXCEL DNA its an open source having power to play around the Excel widely.