Bom dia pessoal, convertir essa função do C# para vba ele funciona perfeitamento no excel e access porem estou tentendo usar ela no vb.net editor VISUAL STUDIO 2013, aparece o erro conforme a imagem enexo, alguem consegue corrigir esse erro; Function crc_ccitt_ffff(strParam As String) As String Const CRC_POLY_CCITT As Long = &H1021& Const CRC_START_CCITT_FFFF As Long = &HFFFF& Dim crc As Long, b() As Byte, c As Long, i As Long, j As Long Dim crc_tabccitt(0 To 255) As Long For i = 0 To 255 crc = 0 c = i * 256 For j = 0 To 7 If (crc Xor c) And 32768 Then crc = (crc * 2) Xor CRC_POLY_CCITT Else crc = crc * 2 End If c = c * 2 Next j crc_tabccitt(i) = crc Next i b = strParam crc = CRC_START_CCITT_FFFF For i = 0 To UBound(b) Step 2 crc = (crc * 256) Xor crc_tabccitt(((crc \ 256) Xor b(i)) And 255) crc = ((crc \ 65536) * 65536) Xor crc Next i crc_ccitt_ffff = Hex(crc) End Function
Olá galera, estou com um pequeno problema..
gostaria de duplicar minha estrutura do report viewer dentro de um laço de repetição
Tem possibilidade ?
Exemplo do código abaixo :
ReportParameter[] parametros =
{
//cabecalho
new ReportParameter("fazenda", ObjPropriedade.nome),
new ReportParameter("lavoura", oArea.descricao + " (" + tamLavoura.ToString() + " Ha)"),
new ReportParameter("cultura", ObjCiclo.Cultura.nome),
new ReportParameter("resteva", resteva),
new ReportParameter("dataPlantio", ObjCiclo.dataPlantio.Value.ToShortDateString()),
new ReportParameter("dataColheita", ObjCiclo.dataColheita.Value.ToShortDateString()),
new ReportParameter("unidade", ObjCiclo.Cultura.UnidadeMedida.nome),
new ReportParameter("minima", ObjCiclo.prodMinima.ToString()),
new ReportParameter("maxima", ObjCiclo.prodMaxima.ToString()),
}
reportAnalises.LocalReport.DataSources.Add(new ReportDataSource("dsCicloInter", lstRelCicloInter));
reportAnalises.LocalReport.DataSources.Add(new ReportDataSource("dsFertilizanteInter", lstRelFertilizanteInter));
reportAnalises.LocalReport.DataSources.Add(new ReportDataSource("dsMediaFertilizanteInter", lstMediaRelFertilizanteInter));
Tentei colocar um laço de repetição nessa estrutura, mas somente me apresenta um relatório.
Boa noite.
Alguém pode me ajudar a fazer a conexão pra salvar Id, UserID e o nome da pessoa ?
Bdados : cadastro
Tabela : usuario
Sem senha : root somente.
Des de já agradeço.
Seguindo instruções da web instalei o reportviewer no Visual Studio Comunity 2017, mas quando vou usar o componente reportviewer da barra de ferramenta, ao inseri-lo no form ao invés de aparecer aquele componente para visualizar relatório, aparece um componente não visual reportviewer1 em baixo do form, o que estou fazendo de errado?
Boa noite amigos programadores.
Como posso salvar os dados do tracker.dat no MySQL ?
Dados : textbox1.text
Estou usando vb.net
Queria uma tabela no MySQL usando o Wamp .
Poderiam me ajudar ?
Obrigado.