This is a migrated thread and some comments may be shown as answers.

reporting .DocumentName not respected by Acrobat

1 Answer 57 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
rugydp
Top achievements
Rank 1
rugydp asked on 16 Jun 2015, 08:41 AM

Hi there

I have some reports that I want to export as .pdf with a custom document name set. While debugging I can see the .DocumentName property is set properly in the report object. 

When the report opens inline in the browser (IE11 with acrobat add-on) and I select "Save as..." the suggested filename is still the default name and not my custom document name.

What am I missing here?

Thank you

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Stef
Telerik team
answered on 16 Jun 2015, 11:53 AM
Hello rugydp,

The report's DocumentName property is used to name the file saved on exporting a report.

If you are using the approach from How do I display a PDF directly in the browser without exporting first the file is not saved, the rendered document's bytes are returned with the Response. The file can be returned as an attachment where the name is specified on adding the Content-disposition header.

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
rugydp
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or