Results 1 to 5 of 5
  1. #1
    Join Date
    May 2004
    Location
    bangalore
    Posts
    270

    Unanswered: Displaying PDF Content in ASP ALong With PAge Buttons

    Hello Folks,
    I have to display the pdf content on my asp page. Following is the code that i am using for the same. Now my problem is that in this case i am unable to display any customised page button or the other control on the asp page. I need couple of buttons and images along with the pdf content. plz help in this regard.



    <%
    dim objFSO, objTS
    FileName = "C:\Documents and Settings\rahul.jha\Desktop\Actuator Drawings(PDF)\146345A.pdf"
    Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
    Set objTS = objFSO.OpenTextFile(FileName)

    NameFile=Right(FileName,Len(FileName)-InstrRev(FileName,"\"))

    Response.ContentType = "application/pdf"

    Response.Buffer = True
    Do While Not objTS.AtEndOfStream
    strChunk = objTS.Read(32)
    strTmp = ""
    For i = 1 to Len(strChunk)
    strTmp = strTmp & ChrB(Asc(Mid(strChunk, i, 1)))
    Next
    Response.BinaryWrite strTmp
    Response.Flush
    Loop
    Response.BinaryWrite objTS
    Response.flush
    objTS.Close
    Set objTS = Nothing
    Set objFSO = Nothing
    %>

  2. #2
    Join Date
    May 2004
    Location
    bangalore
    Posts
    270

    Reply Pals.....

    Hey Pals.... Plz reply to my query............. Its urgent..... Apart from the pdf content i need to have some text message and some buttons.


    Waiting for th early response...............

  3. #3
    Join Date
    Jan 2005
    Posts
    362
    I thing about 2 solutions.
    1.Use frames
    2.Use a link for download the file
    dimis

  4. #4
    Join Date
    May 2004
    Location
    bangalore
    Posts
    270
    Yes DIMIS2500........ I think that might work, as the different frame page can have different CONTENTTYPE..........


    Lemme Try........... Hope it works.......... Newaz Thanks...............

  5. #5
    Join Date
    Jul 2006
    Posts
    26
    I would recomend using one frame, two layers and an iframe. let the main page be your site with basic navigation. use one layer for controls, and let the iframe control/host the pdf file.

Posting Permissions

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