Last post Apr 02, 2014 11:12 PM by Michelle Ge - MSFT
Apr 02, 2014 05:56 AM|murthykagita|LINK
I am using Report Viewer for reports. I have designed the report and executed, it is executing perfectly but the desing at runtime is not following my desing.
Following is my Code:
Dim DS As New dsApprovals
Using db As New Data.Members
If (DS.Tables("TableApprove").Rows.Count > 0) Then
MReportViewer.ProcessingMode = ProcessingMode.Local
MReportViewer.LocalReport.ReportPath = Server.MapPath("~/Reports/ApprovalReport.rdlc")
Dim datasource As New ReportDataSource("dsApproval", DS.Tables("TableApprove"))
Dim pg As New System.Drawing.Printing.PageSettings()
pg.Margins.Top = 0
pg.Margins.Bottom = 0
pg.Margins.Left = 0
pg.Margins.Right = 0
Dim size As System.Drawing.Printing.PaperSize = New PaperSize()
size.RawKind = CInt(PaperKind.A4)
pg.PaperSize = size
Please help me.
Apr 02, 2014 11:12 PM|Michelle Ge - MSFT|LINK
I'm not sure the specific error
messages, you want to say that, the disply is different from your design. Please refer to check if the RDLC filepath is correct.
There is an artical about Design View, please refer to the links below:
Hope it's useful for you.