Ir para conteúdo
Fórum Script Brasil
  • 0

Como Corrigir?


Girréis

Pergunta

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 para o comentário
Compartilhar em outros sites

1 resposta a esta questão

Posts Recomendados

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152,1k
    • Posts
      651,8k
×
×
  • Criar Novo...