0

have this printing page and i need to display image uploaded in the form..........and here is the code regarding the printing page

Protected Sub print_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles print.Click
        Dim fs As New FileStream("file.html", FileMode.Create, FileAccess.Write)
        Dim s As New StreamWriter(fs)
        Dim st As String
        s.BaseStream.Seek(0, SeekOrigin.End)
        s.WriteLine("<html>")
        s.WriteLine("<head></head>")
        s.WriteLine("<body>")
        s.WriteLine("<font face='courier new'>")
        s.WriteLine("<center>GOVERNMENT  OF INDIA<br>DEPARTMENT OF INFORMATION TECHNOLOGY<br>NATIONAL INFORMATICS CENTRE<br>Andhra Pradesh State Centre, Hyderabad.<br><bold>VISITOR'S PASS</bold></center> </font>")
        s.WriteLine("<td valign='top'><bold>:</bold></td>")
        s.WriteLine("<td rowspan=6 width 20%><img src= pictures></td>")
        s.WriteLine("</tr>")
        s.WriteLine("<pre>SI.NO. " + serialno.Text + "  years : " + years.Text + "  date " + dateofvisit.Text + "   timein " + inout.Text + "  Time OUT </pre>")
        s.WriteLine("<table>")
        s.WriteLine("<tr>")
        s.WriteLine("<td>")
        st = visitorsname.Text
        s.WriteLine("<font face='courier new' size=2> VISITOR'S NAME </font></td valign='top'><td>:</td><td valign='top' >" + st + "</td>")
        s.WriteLine("</td>")
        s.WriteLine("</tr>")
        s.WriteLine("<tr>")
        st = officertovisit.Text
        s.WriteLine("<td valign='top'><font face='courier new'  size=2>OFFICER TO VISIT</font></td valign='top'><td>:</td><td valign='top' >" + st + "</td>")
        s.WriteLine("</tr>")
        s.WriteLine("<tr>")
        st = pur.Text
        s.WriteLine("<td valign='top'><font face='courier new' size=2>Purpose</font></td><td valign='top'>:</td><td valign='top'>" + st + "</td>")
        s.WriteLine("</tr>")
        s.WriteLine("<tr>")
        st = wing.Text
        s.WriteLine("<td valign='top'><font face='courier new' size=2>FLOOR</font></td><td valign='top'>:</td><td valign='top'>" + st + "</td>")
        s.WriteLine("</tr>")
        s.WriteLine("<tr>")
        s.WriteLine("</table>")
        s.WriteLine("<br>")
        s.WriteLine("<br>")
        s.WriteLine("<pre>SIGNATURE OF VISITOR     SIGNATURE OF OFFICER VISTED     SIGNATURE OF DUTY OFFICER")
        s.WriteLine("<br>")
        s.WriteLine("<font face='courier new'><center>(TO BE RETURNED TO DUTY OFFICER BEFORE LEAVING)</center></font>")
        s.WriteLine("</body>")
        s.WriteLine("</html>")
        s.Close()
    End Sub

can anyone suggest the how to display the uploaded image on the printing page

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by pauldani
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.