|
-
Nov 3rd, 2005, 08:21 AM
#1
Thread Starter
Fanatic Member
Orientation Problem [RESOLVED]
Why does some times when I use DataReportName.Orientation it gives me an error saying that Orientation is unrecognized ?
I'm doing this :
VB Code:
DR_Commande.Orientation = rptOrientLandscape
Last edited by Gensor; Nov 3rd, 2005 at 09:15 AM.
-
Nov 3rd, 2005, 08:24 AM
#2
Re: Orientation Problem
These are tough questions.
Can you pinpoint any consistencies, such as....it always happens when I [fill in the blank]
or...it happens when I click this button before clicking this button?
Can you make it happen, or does it just happen at what appears to be random times?
-
Nov 3rd, 2005, 08:25 AM
#3
Thread Starter
Fanatic Member
Re: Orientation Problem
It's random time.
Orientation is a known method of DataReports
I compiled a lot of versions with this and some times, I got this error and I can't compile.
-
Nov 3rd, 2005, 08:48 AM
#4
Thread Starter
Fanatic Member
Re: Orientation Problem
The error message I get is "no such method or propriety exists". I installed SP6 and I still have this problem
-
Nov 3rd, 2005, 08:58 AM
#5
Thread Starter
Fanatic Member
Re: Orientation Problem
I found it myself :
Here's what in Microsoft KB
Microsoft Visual Studio 6.0 Service Pack 4 and later service packs include a new property called Orientation for Data Report.
The value for this property is:
• rptOrientDefault = 0
• rptOrientPortrait = 1
• rptOrientLandscape = 2
With this property, you are able to tell the Data Report not to use the orientation setting of the default printer in the Printers Folders. Following is the syntax for implementing the Orientation property:
VB Code:
DataReport1.Orientation = rptOrientLandscape
DataReport1.Show
When you use this new Orientation property in Visual Studio 6.0 Service Pack 4, you may encounter the error below:
Compiler Error
Method or Data member not found.
To fix this error, delete the values for DataMember and DataSource properties of the Data Report and reassign these two properties with the original values.
-
Nov 3rd, 2005, 09:12 AM
#6
Re: Orientation Problem [RESOLVED]
Nice detective work! 
I'm sure this will help others. 
(BTW: Edit your first post again and add the green checkmark icon. Thanks.)
-
Nov 3rd, 2005, 09:15 AM
#7
Thread Starter
Fanatic Member
Re: Orientation Problem [RESOLVED]
What does the green checkmark mean?
-
Nov 3rd, 2005, 09:20 AM
#8
Re: Orientation Problem [RESOLVED]
 Originally Posted by Gensor
What does the green checkmark mean?
The green check mark and the [RESOLVED] in the thread title are both visual indicators that the thread issue has been resolved.
Under "Thread Tools" you will see a menu option entitle "Mark Thread Resolved"...if you click that it will put both the checkmark and RESOLVED in the thread title for you.
It lets everyone know that you have your answer, so if you are looking to see if you can help, you know you can skip that thread. If you are looking for a answer to a similar question then you know you should probably read that thread.
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
|