On my local machine, when I preview the report, I am shown the report as it is in Crystal in terms of the dimensions of the page. For instance, I have an 11x17 report and it shows up that way in the browser window of my ASP distribution local site, etc. When I click the print button, it also shows up in the Print Preview as 11x17, which is what I want. However, for some reason when I distribute the report to my webserver, in Firefox the report views as Letter (shows up in the CrystalReportsViewer) and when I click print it shows up in the print preview as letter. In IE, the CrystalReportsViewer is 11x17, but the Print preview is again letter. Obviously, this is problematic because the report is in fact 11x17 and I need it to go to preview and print that way. Adjusting the page setup options in the IE print menu doesn't re-adjust the pages because the viewer is set to Print to Pdf, rather than Active X, and exported it to Letter. Furthermore, I could have sworn that it worked properly not even a couple of days ago. I have a line similar to the following:
If (reportDoc.PrintOptions.PageContentHeight = 11 And reportDoc.PrintOptions.PageContentWidth = 17) Then
reportDoc.PrintOptions.PaperSize = PaperSize.Paper11x17
End If
in my code, which definitely worked before and does work locally. It does occur to me that my PDF Export function doesn't have the above lines (and suffers from a similar issue, though again... not on my local machine), but I don't think the Print button utilizes my export code..
Anyone have any ideas why I'm (perhaps suddenly) struggling with this?
Pont
If (reportDoc.PrintOptions.PageContentHeight = 11 And reportDoc.PrintOptions.PageContentWidth = 17) Then
reportDoc.PrintOptions.PaperSize = PaperSize.Paper11x17
End If
in my code, which definitely worked before and does work locally. It does occur to me that my PDF Export function doesn't have the above lines (and suffers from a similar issue, though again... not on my local machine), but I don't think the Print button utilizes my export code..
Anyone have any ideas why I'm (perhaps suddenly) struggling with this?
Pont