Export into different file format - apache-flex

I want to Export in charts & datagrid data into different file formats - "PDF, Word and
Excel" in my web application..I am using Flex 3 and want to export the file in local system.
Any help will be highly appreciable...
Thanks in Advance...

If you are using Java/.NET/PHP or any back-end, you should be using PDF/word generation API to stream the file in required format.
For ex: You can use Apache POI or APache FOP apis to render MSword or PDF files and using Flex, users can download the files.
http://poi.apache.org/
xmlgraphics.apache.org/fop/

You can use AlivePDF to create PDF files in AS3.

Related

generate xml manifest from media specifically audio

I am trying to implement DRM and EME in my my dashjs music streaming app but then I realized that to use dashjs I need to have a manifest xml file to handle segmentation ..etc so does any one know how to generate manifest automatically or even better generate it on the cliemt side when uploading audio
i solved it using shaka packager to encrypt and create the xml manifest for me automatically

Test a excel file using Selenium

I have a web application in ASP.NET and C# that exports some data on a click of a button. How to test the contents of the Excel file from the exported file in a location on a system using Selenium?
I know by saving Excel file as HTML we can open Excel sheet as a web page. But I am not able to find a way to open it from C# code.
Selenium is for automating web/http transactions and nothing else.
Read this article on MSDN that will give you some info how to work with C# and Excel: https://msdn.microsoft.com/en-us/library/aa188489.aspx
Some more brief information:
https://support.microsoft.com/en-ie/help/302084/how-to-automate-microsoft-excel-from-microsoft-visual-c--net
I was able to do that with help from google
Application app = new Application();
Workbook Wrk =app.Workbooks.Open("C:/Users/Desktop/Delete/filename");
Wrk.SaveAs("c:/Users/Desktop/InvoiceMeet.html", XlFileFormat.xlHtml);
This will covert an Excel file to a browser file. Thanks!

Attach dynamic Table as pdf and send via emal in asp.net

i want to attach a dynamic table Generated through c# code, and attach it as a pdf document
and send it via email to customer in asp.net
please help
Thanks in Advance
Regards.
Zain
You can use:
iTextSharp:
iTextSharp is a C# port of iText, and open source Java library for PDF generation and manipulation. It can be used to create PDF documents from scratch, to convert XML to PDF (using the extra XFA Worker DLL), to fill out interactive PDF forms, to stamp new content on existing PDF documents, to split and merge existing PDF documents, and much more.
Also, Refer:
Create PDFs in ASP.NET - getting started with iTextSharp
Creating PDF Documents with ASP.NET and iTextSharp

asp.net Web API retrieve file(s) without saving them

I want to retrieve file(s) with ASP.NET Web Api, XML file(s) or zip file(s).
There are many examples how to do this, like this:
http://www.asp.net/web-api/overview/working-with-http/sending-html-form-data,-part-2
But the problem is, I don't want to save them on HDD!
I just want to validate the XML with some functions and generate a report on the fly and want to return this report.
But every tutorial use the "MultipartFormDataStreamProvider" witch save the files on HDD.
How can I get the file(s) and file name(s) in memory?
Kind regards
I think you can use the MultipartMemoryStreamProvider?
See a way to implement file upload without writing to the file system.

How I can export a datatable to excel 2007 and pdf from asp.net?

I have to make reports with graphics in Excel and PDF from data in a database in an asp.net app.
I don't want to use com objects so I have been using Open Xml Sdk to build the excel file from a template file and redirect the response to the new file generated but I don't know how to make the PDF file...
I accept any comments about how I can generate the pdf file in my web app...
Thanks by the time invested reading this...
go to this site for pdf.
http://itextsharp.sourceforge.net/
I've done this before but with a bit of a cheat.
Office XP and onwards can actually read html files as office documents so if you sent a html document containing a table with the extension and mime type of an excel doc then windows would open it in excel.
From there you can use a web service such as http://www.htm2pdf.co.uk/htm2pdf-web-service.aspx to convert the html table data into a pdf.
Even better than that if you change the extension of a docx or xslx file to zip you can unzip the stored files and you'll find they are xml files that you can edit and rezip (changing the extension back of course).
The easiest solution -- in my opinion -- is to use Client Report Definition Files. After you defined reports, you can
show them to users in your ASP.NET application using the ReportViewer component (Google for asp.net ReportViewer),
export them directly to Excel (Google for localreport excel),
export them directly to PDF (Google for localreport pdf).
For the last two options, you can either save the file to disk or send it directly to the asp.net client (again, there are lots of code examples on the web).

Resources