-
Nov 14th, 2011, 07:46 PM
#1
Thread Starter
New Member
Data Report LandScape Orientation
Hi to Community,
I have some problem with the data report, i couldn't make my reports into other paper orientation specially in landscape, is anyone could help me to make my datareport into landscape view,
Thanks a lot,
cheers,
-
Nov 14th, 2011, 09:45 PM
#2
Re: Data Report LandScape Orientation
I think in code you have to set:
Printer.Orientation = vbPRORLandscape
DataReport.Orientation = rptOrientLandscape
-
Nov 14th, 2011, 11:30 PM
#3
Thread Starter
New Member
Re: Data Report LandScape Orientation
hi dilettante,
I've been already set this code you given, but in my datareport there's no property attach or dot orientation applied(unable to set datareport.orientation),
Thanks,
-
Nov 15th, 2011, 01:57 AM
#4
Lively Member
Re: Data Report LandScape Orientation
-
Nov 15th, 2011, 06:28 AM
#5
Hyperactive Member
Re: Data Report LandScape Orientation
You can download file pageset.dll from net and copy it to your project folder and insert it into your project and then you can code it as dilletante told.............
_____________________________________________________________
If i solved your answer plz rate my post
-
Nov 15th, 2011, 07:34 AM
#6
Re: Data Report LandScape Orientation
Moved To The Reporting Section
Thanks for the report mcsmba1!
-
Nov 15th, 2011, 12:08 PM
#7
Re: Data Report LandScape Orientation
There's no need for "pageset.dll". you should download and install SP6 as StupIdot posted. This should be installed anyway.
Last edited by wes4dbt; Nov 15th, 2011 at 12:15 PM.
-
Nov 16th, 2011, 06:32 AM
#8
Hyperactive Member
Re: Data Report LandScape Orientation
Yes, if he has sp6 then its ok, if no then he definitely will install pageset.dll
-
Jul 4th, 2018, 05:48 AM
#9
New Member
Re: Data Report LandScape Orientation
Originally Posted by mcsmba1
Yes, if he has sp6 then its ok, if no then he definitely will install pageset.dll
I have also set below lines before opening the data report (Installed SP6)
Printer.Orientation = vbPRORLandscape
DataReport.Orientation = rptOrientLandscape
but its ignore this settings and take settings from windows default printer and shown message paper width is larger than page
So how i will resolve this issue.
-
Jul 4th, 2018, 03:58 PM
#10
Re: Data Report LandScape Orientation
You should post your actual code.
-
Jul 5th, 2018, 01:58 AM
#11
New Member
Re: Data Report LandScape Orientation
please check below code for same
DataEnvironment1.Connection1.Open
DataEnvironment1.RepFarmerDetails_Grouping
RepFarmerDetails.Sections(1).Controls.Item("LblCompany").Caption = ResCompany!company_name
RepFarmerDetails.Sections(1).Controls.Item("LblReportTitle").Caption = "Farmer Crop Details Report"
RepFarmerDetails.Sections(1).Controls.Item("LblFromDate").Caption = "From Date:" & " " & DTFromDate.Value
RepFarmerDetails.Sections(1).Controls.Item("LblToDate").Caption = "To Date:" & " " & DTToDate.Value
RepFarmerDetails.Orientation = rptOrientLandscape
Printer.Orientation = vbPRORLandscape
RepFarmerDetails.Show
RepFarmerDetails.Refresh
-
Jul 5th, 2018, 12:56 PM
#12
Re: Data Report LandScape Orientation
That looks Ok. How wide is the report? You might try re-installing SP6
-
Jul 5th, 2018, 04:26 PM
#13
Re: Data Report LandScape Orientation
Not
Originally Posted by pravinj
Code:
RepFarmerDetails.Orientation = rptOrientLandscape
Printer.Orientation = vbPRORLandscape
but, as Dilettante wrote:
Code:
Printer.Orientation = vbPRORLandscape
RepFarmerDetails.Orientation = rptOrientLandscape
it could make the difference.
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
|