Results 1 to 10 of 10

Thread: how to print the form in asp

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2006
    Posts
    33

    how to print the form in asp

    Hi
    to all i am new in programming.form is displaying data from the table.
    & i want to print of that page how i can achive through asp coding

    Thanks.
    i try with the below code where REF is the pagename of which i want to take the print

    so it problem is that it is now showing the data only table heading with the
    printable format i am getting

    <%
    Const ForReading = 1

    Dim strReferrer, objFSO, objOpenFile, strLine
    strReferrer = Request.QueryString("REF")

    If Len(strReferrer) < 1 then
    strReferrer = Request.ServerVariables("HTTP_REFERER")



    End If


    Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
    Set objOpenFile = objFSO.OpenTextFile(Server.MapPath(strReferrer), _
    ForReading)

    'Output each line of the file...
    Do Until objOpenFile.AtEndOfStream
    strLine = objOpenFile.ReadLine
    Response.Write strLine & vbCrLf
    Loop

    objOpenFile.Close
    Set objOpenFile = Nothing
    Set objFSO = Nothing
    %>
    Last edited by soni; Nov 30th, 2006 at 05:33 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width