I have a Silverlight application where I want to export some data. The output file format will most likely be PDF or Word. But let me assume that I can generate the contents of the file accordingly. I want you to have the "Save" dialog box so that the user can save this data or open it directly in the program.
Now, obviously, I could just start the user on the URL and export on the server and change the MIME response type to Word or PDF. It will be very good. However, the main theme is that I already have the correct client data (including complex filters, etc.), and re-creating this dataset on the server just to send it back to the client again seems silly if I can to avoid.
Is there a way to take an existing dataset in Silverlight and generate a Word or PDF file and get it on the user's computer? I could also do this using JavaScript using a browser from Silverlight. I do not want to use Silverlight outside the browser.
source
share