This is a migrated thread and some comments may be shown as answers.
Setting the download file name
4 Answers 18 Views
This is a migrated thread and some comments may be shown as answers.
SSirica
Top achievements
Rank 1
SSirica asked on 24 Jul 2020, 05:49 PM
My PDFs are stored in a database, so there is no initial document to load due to it being a stream/blob.  How do I set the download document name?

4 Answers, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 28 Jul 2020, 06:15 AM

Hi SSirica,

You can set the default download name through the MessagesSettings.DefaultFileName option of the PDF viewer:

                <telerik:RadPdfViewer runat="server" ID="RadPdfViewer1" Height="450px" Width="1000px"
                    Skin="Default" RenderMode="Lightweight">
                    <MessagesSettings DefaultFileName="YouCustomFileName"></MessagesSettings>
                    <PdfjsProcessingSettings>
                    </PdfjsProcessingSettings>
                </telerik:RadPdfViewer>

Regards,
Vessy
Progress Telerik

0
SSirica
Top achievements
Rank 1
answered on 28 Jul 2020, 01:21 PM
I will give that a try.  Thank you Vessy.
0
SSirica
Top achievements
Rank 1
answered on 28 Jul 2020, 01:27 PM
That worked perfectly.  Thank you!!!
0
Vessy
Telerik team
answered on 28 Jul 2020, 01:51 PM

Hi,

You are more than welcome, SSirica :)) I am glad I managed to help!

Regards,
Vessy
Progress Telerik

Asked by
SSirica
Top achievements
Rank 1
Answers by
Vessy
Telerik team
SSirica
Top achievements
Rank 1
Share this question
or