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

Report Metadata

5 Answers 188 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michele
Top achievements
Rank 2
Michele asked on 28 Nov 2011, 04:26 PM
Hello,
it's possibile to set somewhere some metadata? I wish to add in exported pdf the number of page and an id that an external tool will process..
it's possible?
Thanks
Paolo

5 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 28 Nov 2011, 04:45 PM
Hello Paolo,

The available device information settings are listed in PDF Device Information Settings help article.

Greetings,
Steve
the Telerik team

Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

0
Michele
Top achievements
Rank 2
answered on 28 Nov 2011, 04:51 PM
Hello Steve,
no I was meaning I need to print a document with the page count, if I set as device information I can't tell the report to add context information ad an ID or pagecount...
0
Steve
Telerik team
answered on 29 Nov 2011, 04:40 PM
Hello Paolo,

Your question and goals are not clear at all. Where does this ID come from and where/how do you plan to use it? I've pointed you to the device information settings as you can use them for such information, specifically via the JavaScript attribute you can control numerous variables in a PDF document. For more info refer to Acrobat JavaScript Scripting Guide.

Regards,
Steve
the Telerik team

Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

0
Michele
Top achievements
Rank 2
answered on 29 Nov 2011, 05:13 PM
Hello Steve,
I use a reportbook to concatenate some reports (in the truth the report is always the same , called with different parameters), the export to pdf is the composition of those report and got a total number of pages (let's consider 10 for simplify), I need to store in the single report the information that report 1 (ID=1, PageCount=3) report2 (ID=30, PageCount = 5) report3(ID=66, PageCount=2) ... if there's a metadata filed I'll format as I need inserting those info... for now the method I've found is a static method that writes to a tmp file, then process it as I need and delete it... but I would like to have a more clean solution...
0
Steve
Telerik team
answered on 02 Dec 2011, 04:19 PM
Hi Paolo,

Thank you for the clarification - the answer is no, there is no cleaner solution. The one we thought of is creating properties for each info you need, and utilize this info in the report expressions via user functions. Sounds somewhat like what you are already doing.

Kind regards,
Steve
the Telerik team

Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

Tags
General Discussions
Asked by
Michele
Top achievements
Rank 2
Answers by
Steve
Telerik team
Michele
Top achievements
Rank 2
Share this question
or