I have designed crystal report which needs to be print in A6 paper in visual studio 2019, from local host it is printing fine, but after deployment in IIS it is not printing properly. Could any one help on this. out put of print is coming in center instead of full page
-
"it is not printing properly" is an extremely vague description. Explain properly what you have, what you expect and what you are gettingFranck– Franck2024-09-23 10:51:30 +00:00Commented Sep 23, 2024 at 10:51
-
it is not taking full page, instead of it is coming in centerLakshmi– Lakshmi2024-09-23 10:55:10 +00:00Commented Sep 23, 2024 at 10:55
Add a comment
|
1 Answer
After deploying on IIS, the server's printer settings may be different from your local computer. Please check the server's default printer settings and make sure the paper size is set to A6.
Besides, If the server's default printer settings override the report settings, you may need to manually set the paper size in code. In C#, you can use the following code:
reportDocument.PrintOptions.PaperSize = CrystalDecisions.Shared.PaperSize.PaperA6;