Hi
how can I give the desired name(default name ) for report during saving?
Please refer to attched screenshot.
I am using printBarManager for printControl…
Reports report = new Reports.XtraReports();
xtraUserControl1.printControl1.PrintingSystem = report .PrintingSystem;
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Hello,
To define the exported document filename, please adjust the PrintingSystem.ExportOptions.PrintPreview.DefaultFileName property.
For instance, check a sample project posted in the Q93665 thread (Saving the report name (PRNX)), and let me know if you need any clarification.
I'll be glad to help you.
Thanks,
Alex.
Thanks,
It is not working I tried following option
ReportsUserControl1.printControl1.PrintingSystem.ExportOptions.PrintPreview.DefaultFileName = "OverridesReport" + "_" + _MGID + "_" + DateTime.Now.ToString("MMMddyyyyHH:mm:ss'GMT'");
it takes default as 'Document'.
I tried following code as well, but it did't work.
overrideReport.ExportOptions.PrintPreview.DefaultFileName = "OverridesReport"
I am user using control ,inside which I am showing report ,I guess it is not showing any PrintPrview ,thats why it is giving problem,can't I set the name whithout PrintPriview…?
it is taking "Report.Name " as default name for export.
sometime it is working sometime not …I am confused,what is happened ,how it worked?
Please advice.
Hi Dewraj,
Thanks for the update. Unfortunately, I haven't managed to reproduce a similar problem by following the scenario you described.
In the attachment, you'll find a sample project illustrating the approach I suggested previously. Please review it, and check what's missing.
If this doesn't help, update my code to illustrate the problem. I'll be glad to help you.
Thanks,
Alex.
Thanks Alex,
I found the problem,
Actaully in my case I was assgining name as "OverrideReport_XXXX_27Feb2009 21:23:25GMT"
but as per filenaming standard name can't cotains special character such as ':' ,so it report name was defaultnig back to original default name 'Document'.
Thanks& Regards
Dewraj
Problem is solved.
Thanks Alex