VB DataReport - Problem with ReportWidth
I am stuck setting the ReportWidth propery of the DataReport control.
This is my reasoning: an A4 sheet (portrait) is 29.7 cm wide, if 1 cm is 567 twips, then the DataReport.ReportWidth could be set up to 29.7 * 567 = 16839 twips approx.
Whenever I set my ReportWidth to a value larger than 9200 (I was trying 13995) I get this error message: "Report width is larger than paper width".
Anybody has a clue how do I solve this? Has this to do with printer settings?
TIA for your help,
Please post questions to the forums, where others may benefit.
I do not offer free assistance by e-mail. Thank you!
Thanks Phil (again) for the great help!
If anyone is interested, it seems after SP4, there's a DataReport.Orientation property, which can be set to:
• rptOrientDefault = 0
• rptOrientPortrait = 1
• rptOrientLandscape = 2
But this property is not available at design-time, and not documented in the help.
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL