How to set the file attribute info when exporting.

Stimulsoft Reports.NET discussion
Post Reply
shrek
Posts: 14
Joined: Sun Mar 24, 2013 5:39 am

How to set the file attribute info when exporting.

Post by shrek »

Hello,

By the code "report.ExportDocument(StiExportFormat.Word2007, ....);", the report is exported as Word 2007 file, is it possible to modify the following attribute text info of the exported file:
1, Unit ("Stimulsoft" is written as defualt)
2, Author ("Stimulsoft Reports 2012.3.1500 from 3 December 2012" is written as default)
2, Last modified by ("Stimulsoft Reports 2012.3.1500 from 3 December 2012" is written as default)

Is it possbile to modify these attribute text info when exporting by calling report.ExportDocument(...) ?

Thanks
Felix
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: How to set the file attribute info when exporting.

Post by HighAley »

Hello.

To set PDF file properties you could use next report properties:

Code: Select all

Title - Report Name
Author - Report Author
Subject - Report Alias
Also you could set next properties for all exported PDF files

Code: Select all

Stimulsoft.Report.StiOptions.Export.Pdf.CreatorString
Stimulsoft.Report.StiOptions.Export.Pdf.KeywordsString
or use StiPdfExportSettings to set these properties for each report:

Code: Select all

Stimulsoft.Report.Export.StiPdfExportSettings.CreatorString
Stimulsoft.Report.Export.StiPdfExportSettings.KeywordsString
Thank you.
shrek
Posts: 14
Joined: Sun Mar 24, 2013 5:39 am

Re: How to set the file attribute info when exporting.

Post by shrek »

Hello,

Thanks for your reply.

For exporting Office Excel and Word file , is it possible to set its properties (Unit / Author / Last modified by) ?

Thanks
Felix
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: How to set the file attribute info when exporting.

Post by HighAley »

Hello, Felix.
shrek wrote:For exporting Office Excel and Word file , is it possible to set its properties (Unit / Author / Last modified by) ?
Unfortunately, it's impossible to set these properties now.

Thank you.
shrek
Posts: 14
Joined: Sun Mar 24, 2013 5:39 am

Re: How to set the file attribute info when exporting.

Post by shrek »

OK, thanks for you information, hopefully this feature will be supported in the next release. :-)
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: How to set the file attribute info when exporting.

Post by HighAley »

Hello.

If it's possible to do fast, we will try to add it in our release this week.

Than you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: How to set the file attribute info when exporting.

Post by HighAley »

Hello.

We have made an improvement in the Word 2007 and Excel 2007 export.
Please, check our next release next week.

Thank you.
Post Reply