Page 1 of 1

Save dialog file name

Posted: Mon Dec 06, 2010 3:37 pm
by fama_0
Is there a property either on the viewer or the report that I can set to prefill the save dialog's file name field? If not I'm sure I could intercept the save event and handle it that way, but I wanted to make sure I wasn't missing anything that already exists.

Save dialog file name

Posted: Tue Dec 07, 2010 5:54 am
by Andrew
Hello,

Do you want to redefine our event and do your own?

Thank you.

Save dialog file name

Posted: Tue Dec 07, 2010 2:06 pm
by fama_0
I want everything to work like it currently does, but be able to specify the file name so that the user does not have to fill anything in when saving. If you don't have a property for that then could I please get an example of the current saving code. Thank you.

Save dialog file name

Posted: Wed Dec 08, 2010 4:41 am
by Andrew
Hello,

In general it is prohibited in the Silverlight security policy to set a default file name in the SaveFileDialog, as it could be done in .NET. Here we make our class, which is responsible for saving a report.
Please see the attached file.

Thank you.

Save dialog file name

Posted: Thu Dec 09, 2010 1:07 pm
by fama_0
Thank you. Could you also post the code used to save a rendered report to a pdf? That's really the only one that the user will be allowed to do. Since setting the default filename is not allowed in Silverlight yet, I'll just ask if the user wishes to put the recommended filename in the clipboard before going into the save dialog.

Save dialog file name

Posted: Fri Dec 10, 2010 3:51 am
by Anton Lozovskiy
Hello,

>>Thank you. Could you also post the code used to save a rendered report to a pdf? That's really the only one that the user will be allowed to do.
Call the InvokeReportSavePdf () method of StiSLViewerControl for the export to PDF.


>>Since setting the default filename is not allowed in Silverlight yet, I'll just ask if the user wishes to put the recommended filename in the clipboard before going into the save dialog.
We create an example for you, please see.

Thank you.