If you don't want to read all of this, because I just realized it took me a while to get to the point, here is the simple question: How do I prevent prepending "Crystal Reports" to my file name when "Print Report" is clicked and you choose CutePDF Writer?
The gory details...
My C# application is running a report for our uses. It's a service report. It is for a customer and a certain service order (SO) of theirs.
My boss asked "Change Export File Name of Service Report". The name somehow was defaulting to ""Service Report - CMS". I have no idea where that came from. It's not a string I saw anywhere in my code. CMS is the application name, but I'm not sure how it knows that. Maybe it's embedded in the report file itself (which I looked at, but couldn't see it there either. Another developer created the rpt file).
But I did find I could do this to override it:
But where that was overriding it was on frmReportViewer, the icon on the far left (see screen shot). And that works fine. But, one of my users said it "wasn't working" and it turns out she was using the icon 2nd from the left and "printing" her file to a PDF. No one had given me a screen shot of exactly where they meant, so I took a guess. Maybe I'm not wrong, maybe it's both places. But when this user chooses CutePDF Writer, it uses the name "OurCompanyName etc." but with "Crystal Reports" prepended. Is there a way to get rid of that?
(I apologize for there being no screenshot. It's not uploading for some reason).
The gory details...
My C# application is running a report for our uses. It's a service report. It is for a customer and a certain service order (SO) of theirs.
My boss asked "Change Export File Name of Service Report". The name somehow was defaulting to ""Service Report - CMS". I have no idea where that came from. It's not a string I saw anywhere in my code. CMS is the application name, but I'm not sure how it knows that. Maybe it's embedded in the report file itself (which I looked at, but couldn't see it there either. Another developer created the rpt file).
But I did find I could do this to override it:
Code:
if (customerName != "" && soNumber != "")
crReport.SummaryInfo.ReportTitle = String.Format("OurCompanyName Service Report - {0} {1}", soNumber, customerName);
(I apologize for there being no screenshot. It's not uploading for some reason).