474,000 Members | 2,030 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Setting page layout in data report in vb6

5 New Member
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 11324
werks
220 New Member
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.Ori entation = rptOrientLandsc ape

It works on VB 6 (SP6)

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


To specify the orientation (Landscape or Portrait) at runtime, use the orientation property:
DataReport1.Ori entation = rptOrientLandsc ape

It works on VB 6 (SP6)

--
Kenneth
"Better Than Yesterday"
Feb 15 '08 #3
drsvvr
5 New Member
this my code but i cannot do the orientation, please help me to include my code.
'************** *************** *************** **
Private Sub cmdPrintPrev_Cl ick()
DE1.rsPRMasterl ist_Grouping.Fi lter = ""
If Option4.Value = True Then
DE1.rsPRMasterl ist_Grouping.Fi lter = ""
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.Visi ble = True
End If
End Sub

"Error : "Report width is larger than the paper width."
Feb 15 '08 #4
9815402440
180 New Member
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
5680
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 portrait. Now, the report, when viewed or printed, shows the first page as portrait, and the 2nd as landscape! This is bad enough in itself, but the 2nd page repeats data from the first page (I assume it is printing pg 2 as though pg 1 was also...
3
6130
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 page. Instead I am getting a new table layout for each day of the week. I have tried grouping on every record and combination I can, manipulating the Group Properties but can't get it right. I have the entire report in the Detail Section, with...
2
1940
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. thanks *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
8
2282
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 happens. dim filt as string ... build filter string... UserControl.ReportFilter = filt
7
2834
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
21762
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 If I click on 'Page setup' button the margins left & right are not what I set on the rdlc file at design time (1.5cm) they are 5.9mm
1
6552
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" setting to be "E_ALL", notices are still not getting reported. The perms on my file are 664, with owner root and group root. The php.ini file is located at /usr/local/lib/php/php.ini. Any ideas why the setting does not seem to be having an effect? ...
4
2157
by: Joe101 | last post by:
Question: How to put access data base onto a web page?
4
1758
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 copied the memo field from the form to the report. I verified that the font and font size (MS Sans serif 8) were the same. However, the text shows differently. On the printed version, more text shows on the line than in the form. Suggestions?
0
10427
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10246
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11950
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
11762
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
11011
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7724
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
5271
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4841
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3861
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.