473,382 Members | 1,705 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Setting page layout in data report in vb6

5
Hi everyone!,

Please help me to do the setting page layout in data report. i dont think the default setting in data report is portrait, my project is need a landscape report, but i dont know how to do. Please help. Thank you.
Feb 15 '08 #1
4 11260
werks
220 100+
Hi everyone!,

Please help me to do the setting page layout in data report. i dont think the default setting in data report is portrait, my project is need a landscape report, but i dont know how to do. Please help. Thank you.
To specify the orientation (Landscape or Portrait) at runtime, use the orientation property:
DataReport1.Orientation = rptOrientLandscape

It works on VB 6 (SP6)

--
Kenneth
"Better Than Yesterday"
Feb 15 '08 #2
drsvvr
5
Hi, Thanks for your help.


To specify the orientation (Landscape or Portrait) at runtime, use the orientation property:
DataReport1.Orientation = rptOrientLandscape

It works on VB 6 (SP6)

--
Kenneth
"Better Than Yesterday"
Feb 15 '08 #3
drsvvr
5
this my code but i cannot do the orientation, please help me to include my code.
'**********************************************
Private Sub cmdPrintPrev_Click()
DE1.rsPRMasterlist_Grouping.Filter = ""
If Option4.Value = True Then
DE1.rsPRMasterlist_Grouping.Filter = ""
End If
R_PR.Show
End Sub
'**********************************************
Private Sub Form_Load()
txtdate.Text = Format$(Date, "m/dd/yy")
Centerform Me
Option4.Value = True
Call GroupNo
FilterPRCode
End Sub
'**********************************************
Private Sub Option4_Click()
If Option4.Value = True Then

DataCombo3.Visible = True
End If
End Sub

"Error : "Report width is larger than the paper width."
Feb 15 '08 #4
9815402440
180 100+
hi
you can use orrientation method only if you have vb6 sp5 or higher installed on your computer. you can download it from http://msdn2.microsoft.com/en-us/vstudio/aa718363.aspx
if you dont want to do that then download PageSet.dll from microsoft.com
but pageSet.dll dont change orientation on network printer. it can be used for the printer that is attached to the local computer.
regards
manpreet singh dhillon hoshiarpur
Feb 16 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: amber | last post by:
Hi there, I'm having trouble with the page setup in a report I've created. Originally I copied an existing report (that was setup as landscape layout). On the new report, I changed the layout to...
3
by: mark | last post by:
How do I get all fields on one page of a report? I have a report that has a column for each day of the week and 6 records for each day. I need each weekday's records returned on only one detail...
2
by: azizul khan | last post by:
I will be greatfull if any can help me to make a multi column page layout report in vb code. example : i have 500 idno. in database. i need to print all idno. 4 column in a page of dbreport....
8
by: David Lozzi | last post by:
Howdy, I have a user control that is a report to display data. On the page the control is inserted in, I have filter options to filter the report. When I try to do something like this, nothing...
7
by: John | last post by:
Hi How can I change the printer page layout to landscape via code? Basically I would like to avoid having the user set the layout every time manually. Thanks Regards
7
by: steve | last post by:
Hi All I have created rdlc files and when I load them into Report Viewer at run time they appear OK If I click on 'Print layout' button on Report Viewer the view again appears acceptable ...
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
4
by: Joe101 | last post by:
Question: How to put access data base onto a web page?
4
by: Bob Alston | last post by:
My client insists that the printed copy of text entered into a memo field have EXACTLY the same layout as it appears on the screen. I found I had to eliminate the vertical scroll bar. Then I...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.