I have a Crystal Reports Viewer object and I am trying to send the report that is loaded directly to the printer without first displaying it. I have the code working except for one bug, the report is designed in Landscape and it prints out in Portrait. Funny thing is, if you preview the report first, then it prints fine. But if I send directly to printer using objCRViewer.PrintReport(), it print out using the wrong orientation. I checked the objReport.PrintOptions.PaperOrientation, and it is set to Landscape...
Anyone know what I am missing?
________________________
Ben Santiago, MCP & A+
Programmer Analyst (SQL, FoxPro, VB, VB.Net, Java, HTML, ASP, JSP, VBS)
Eastern Suffolk BOCES - Student Data Services
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
-Rich Cook