|
-
Sep 5th, 2005, 01:30 AM
#1
Thread Starter
Fanatic Member
Working With Datareport in VB6
Hi! how will i make my datareport 'landscape' not 'portrait' with the paper size of A4, when it generate and print reports. thanks in advance!
-
Sep 5th, 2005, 01:38 AM
#2
Re: Working With Datareport in VB6
Call it like this, and you can select printer options. Send TRUE for ShowDialog
object.PrintReport(ShowDialog, Range, PageFrom, PageTo)
The PrintReport method syntax has these parts:
Part Description
object Required. Anobject expression that evaluates to an object in the Applies To list.
ShowDialog Optional. Aboolean expression that determines if the Print dialog box is shown.
Range Optional. Sets an integer that determines if all the pages in the report will be executed or a range of pages, as shown in Settings.
PageFrom Optional. An integer that sets the page from which to start printing.
PageTo Optional. An integer that sets the page at which to stop printing.
-
Sep 5th, 2005, 05:18 AM
#3
Re: Working With Datareport in VB6
have you tried...
VB Code:
DataReport1.Orientation = rptOrientLandscape
DataReport1.Show 1
-
Sep 5th, 2005, 05:59 AM
#4
Fanatic Member
Re: Working With Datareport in VB6
take not to use
VB Code:
DataReport1.Orientation = rptOrientLandscape
you need service pack 4 or above.
Useful Links
.Net
#Develop, GhostDoc, CodeKeep , be.PINVOKE, Good Code Snippet Site
Krypton Toolkit, XPCC / XP Common Controls, QSS Windows Forms Components
VB.COM
VB.Classic Help File, MB Controls, MZTools, ADO Stored Procedure Generator add-in,
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|