Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / Services / Reporting Services / July 2008

Tip: Looking for answers? Try searching our database.

Reporting viewer for local rdl paper size 'letter'

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mttc - 28 Jul 2008 12:50 GMT
I add to my C# solution report (rdl) and I run it locally with
Datatable. I config the paper size on report properies to 210*297 and
I also try on the code:

Me.RptPrev.LocalReport.GetDefaultPageSettings.PaperSize.PaperName =
"A4"
       Me.RptPrev.LocalReport.GetDefaultPageSettings.PaperSize.Height
= 11.7 '297
       Me.RptPrev.LocalReport.GetDefaultPageSettings.PaperSize.Width
= 8.3 '210
       Me.RptPrev.LocalReport.GetDefaultPageSettings.Margins.Left =
0.5
       Me.RptPrev.LocalReport.GetDefaultPageSettings.Margins.Right =
0.5

but at runtime I got Letter with Margins=2.5

How I do with that?
Norman Yuan - 28 Jul 2008 15:11 GMT
I believe local report is *.rdlc file, not *.rdl file.

>I add to my C# solution report (rdl) and I run it locally with
> Datatable. I config the paper size on report properies to 210*297 and
[quoted text clipped - 14 lines]
>
> How I do with that?
mttc - 29 Jul 2008 06:26 GMT
> I believe local report is *.rdlc file, not *.rdl file.

you can run rdl as local if you give the DataSet like that:

       adp.fill(tbl)
       Dim p As New frmPreview  '===given Form with Report Viewer on
it
       p.RptPrev.ProcessingMode =
Microsoft.Reporting.WinForms.ProcessingMode.Local
       p.RptPrev.LocalReport.ReportPath = "rpt_XXXXXX.rdl"
       p.RptPrev.LocalReport.DataSources.Add(New
Microsoft.Reporting.WinForms.ReportDataSource("XXXX", tbl))

But what about the paper size?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.