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.
Pergunta
Girréis
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.
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.