Wednesday, May 16, 2007

Report Viewer Control

It's a very nice control to drop on your winForm. However, it's missing what most people think is a basic function, RENDER!!!
so to get the report to render I had to call ReportViewer1.RefreshReport(); method since it does not seem to be making a call to render!

the parameters are: report server: http://localhost/reportserver
and //

Tuesday, May 01, 2007

.NET 2.0/3.0

How to change the size of the paper

PageSettings.PaperSize.Kind to Custom, its saying its a Read Only property and if you want to change the size to any other with

PageSettings.PaperSize.Width

Or

PageSettings.PaperSize.Height

PrintDocument1.DefaultPageSettings.PaperSize = New System.Drawing.Printing.PaperSize(PaperSizeName, PageWidth, PageHeight)