Results 1 to 8 of 8

Thread: Orientation Problem [RESOLVED]

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    May 2004
    Location
    Granby, Qc, Canada
    Posts
    602

    Resolved 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:
    1. DR_Commande.Orientation = rptOrientLandscape
    Last edited by Gensor; Nov 3rd, 2005 at 09:15 AM.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    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?

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    May 2004
    Location
    Granby, Qc, Canada
    Posts
    602

    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.

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    May 2004
    Location
    Granby, Qc, Canada
    Posts
    602

    Re: Orientation Problem

    The error message I get is "no such method or propriety exists". I installed SP6 and I still have this problem

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    May 2004
    Location
    Granby, Qc, Canada
    Posts
    602

    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:
    1. DataReport1.Orientation = rptOrientLandscape
    2. 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.

  6. #6
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    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.)

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    May 2004
    Location
    Granby, Qc, Canada
    Posts
    602

    Re: Orientation Problem [RESOLVED]

    What does the green checkmark mean?

  8. #8
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Orientation Problem [RESOLVED]

    Quote 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
  •  



Click Here to Expand Forum to Full Width