Hello guys,
I'm implementing a qrCode on my web site using the google api. It creates the image just right but when I go to my cell phone to read it, it doesn't identify the parameters.
How can I resolve this?
Here is the code to generate the image:
Private Sub GerarMeuQrCode()
Dim pUrl As String
ExibeOcultaMenu(False)
ViewState("vlID") = Request("pID")
If ViewState("vlID") Is Nothing Then ViewState("vlID") = 0
Dim Ds As Data.DataSet
Ds = EditalItens.Consultar(" A.ID = " & ViewState("vlID"), "")
LbQrCode.Text = DBNull.Value.ToString
If Not Ds Is Nothing Then
If Ds.Tables(0).Rows.Count > 0 Then
If Ds.Tables(0).Rows(0)("VER_LINKITEM") = True Then
pUrl = "https://chart.googleapis.com/chart?chs=300x300&cht=qr&chl=" & Ds.Tables(0).Rows(0)("LINK_PRIVADOITEM")
LbQrCode.Text = "<div style='text-align:center;'><img src='" & pUrl & "'></div>" &
"<div style='margin-top:20px;'>" &
" <div><h3>Edital: " & Ds.Tables(0).Rows(0)("EDITAL") & "</h3></div>" &
" <div>Curso:</div>" &
" <div>" & Ds.Tables(0).Rows(0)("NOME_CURSO") & "</div>" &
" <div>Turno/Turma:</div>" &
" <div>" & Ds.Tables(0).Rows(0)("TURNO_TURMA") & "</div>" &
" <div>" & Ds.Tables(0).Rows(0)("LINK_PRIVADOITEM") & "</div>" &
"</div>"
End If
End If
End If
End Sub
As the page will only have one label, I believe there is no need to insert the html here. But, the link to be generated should be this:
https://chart.googleapis.com/chart?chs=300x300&cht=qr&chl=http://web.centec.org.br/sisgeti/privado/index.aspx?&id=864305363BC27FA6014B81470E6FE7BF
Grateful!