Crystal Report Question
-
Dear All, I have implemented a crystal report on VS2003 and i have 2 problems, First, i donno how to actvate a print button "it used to be there in VS2005" the second problem is that there is about 300 blank pixels on the left of the report so whe i use the standard print "from the explorer" the page is split into 2 pages (horizontally). U use landscape paper... Any clues of how i can solve this? Thanx in advance
Best Regards 3ala2 :)
-
Dear All, I have implemented a crystal report on VS2003 and i have 2 problems, First, i donno how to actvate a print button "it used to be there in VS2005" the second problem is that there is about 300 blank pixels on the left of the report so whe i use the standard print "from the explorer" the page is split into 2 pages (horizontally). U use landscape paper... Any clues of how i can solve this? Thanx in advance
Best Regards 3ala2 :)
u can use following method to fix your all problems. convert your ReportDocument to pdf file and show pdf file in browser. and code's of this method:
System.IO.MemoryStream oStream; oStream = (System.IO.MemoryStream)rptDoc.ExportToStream( CrystalDecisions.Shared.ExportFormatType.PortableDocFormat); Response.Clear(); Response.Buffer= true; Response.ContentType = "application/pdf"; Response.BinaryWrite(oStream.ToArray()); Response.End();
We Can Do Anything, If We Want It