Jump to content
Fórum Script Brasil
  • 0

Como Corrigir?


Girréis

Question

Bom dia, amigos.

ontem instalei o SP6 para que eu pudesse usar a sintaxe: .Orientation = rptOrientLandscape

acontece que deu erro ao compilar, como faço para resolver esse problema?

grato,

girréis

obs: segue a parte do código.

erro:
Compile error:

Method or data member not found


Private Sub cmdPrevia_Click()
Dim vdescricao As Integer, filtro As String

With DataReport1
    .Orientation = rptOrientLandscape
    
For i = 1 To ListView1.ListItems.Count
    If ListView1.ListItems(i).Checked = True Then
        filtro = filtro & IIf(filtro <> "", " Or ", "") & " IDENTIFICACAO like '" & ListView1.ListItems(i) & "'"
    End If
Next

    DataSubsistemas.rsCommand1.Filter = filtro
    .Show
   End With
End Sub

Encontrei no site da microsoft um trecho do erro acima, alguém pode me explicar?

Microsoft Visual Studio 6.0 Service Pack 4 introduces 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:

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.

valeu,

girréis

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152k
    • Total Posts
      651.5k
×
×
  • Create New...