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
%>