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
Printable View
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
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?
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.
The error message I get is "no such method or propriety exists". I installed SP6 and I still have this 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.
Nice detective work! :thumb:
I'm sure this will help others. :)
(BTW: Edit your first post again and add the green checkmark icon. Thanks.)
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.Quote:
Originally Posted by Gensor
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.