Jump to content
Fórum Script Brasil
  • 0

Como Corrigir?



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?



obs: segue a parte do código.

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

    DataSubsistemas.rsCommand1.Filter = filtro
   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


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.



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.

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
    • Total Posts
  • Create New...