-
Mar 28th, 2018, 12:37 PM
#1
Thread Starter
PowerPoster
[RESOLVED] CR - Suppress "Crystal Reports" when users are printing the report to a PDF
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:
Code:
if (customerName != "" && soNumber != "")
crReport.SummaryInfo.ReportTitle = String.Format("OurCompanyName Service Report - {0} {1}", soNumber, customerName);
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).
There are 10 kinds of people in this world. Those who understand binary, and those who don't.
-
Mar 28th, 2018, 02:20 PM
#2
Re: CR - Suppress "Crystal Reports" when users are printing the report to a PDF
-
Mar 28th, 2018, 02:24 PM
#3
Thread Starter
PowerPoster
Re: CR - Suppress "Crystal Reports" when users are printing the report to a PDF
Thanks, but that is not quite what i am looking for. I want user intervention, because they may want to change the default filename some of the time. Right now, they have to change it all of the time because they don't want the filename to begin with "Crystal Reports".
There are 10 kinds of people in this world. Those who understand binary, and those who don't.
-
Mar 29th, 2018, 07:45 AM
#4
Thread Starter
PowerPoster
Re: CR - Suppress "Crystal Reports" when users are printing the report to a PDF
This is no longer an issue. My boss said the icon the user was clicking to use CutePDF Writer isn't the one they should be using, so no need for me to troubleshoot any longer.
There are 10 kinds of people in this world. Those who understand binary, and those who don't.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|