我创建了一个html页面。此页面显示带有svg路径的圆圈以及此页面中包含的png文件。现在我想将此页面下载为pdf文件。所以请帮帮我。 我使用了javascript代码但不满意。
connection()
k = "select community,unit,year,name,roll,mbl from info"
cmd = New SqlCommand(k, con)
dr = cmd.ExecuteReader
While (dr.Read())
If dr.GetString(0) = ComboBox2.Text And dr.GetString(1) = ComboBox3.Text And dr.GetString(2) = TextBox1.Text Then
k = "insert into co values(@community,@unit,@year,@name,@roll,@mbl)"
cmd = New SqlCommand(k, con)
cmd.Parameters.AddWithValue("@community", dr.GetString(0))
cmd.Parameters.AddWithValue("@unit", dr.GetString(1))
cmd.Parameters.AddWithValue("@year", dr.GetString(2))
cmd.Parameters.AddWithValue("@name", dr.GetString(3))
cmd.Parameters.AddWithValue("@roll", dr.GetString(4))
cmd.Parameters.AddWithValue("@mbl", dr.GetDecimal(5))
MsgBox("added success")
End If
End While
dr.Close()
cmd.ExecuteNonQuery()