If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Displaying PDF Content in ASP ALong With PAge Buttons

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-29-06, 01:56
DBA_Rahul DBA_Rahul is offline
Registered User
 
Join Date: May 2004
Location: bangalore
Posts: 270
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
%>
__________________
Reply With Quote
  #2 (permalink)  
Old 07-04-06, 01:57
DBA_Rahul DBA_Rahul is offline
Registered User
 
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...............
__________________
Reply With Quote
  #3 (permalink)  
Old 07-04-06, 02:13
dimis2500 dimis2500 is offline
Registered User
 
Join Date: Jan 2005
Posts: 362
I thing about 2 solutions.
1.Use frames
2.Use a link for download the file
dimis
Reply With Quote
  #4 (permalink)  
Old 07-04-06, 03:10
DBA_Rahul DBA_Rahul is offline
Registered User
 
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...............
__________________
Reply With Quote
  #5 (permalink)  
Old 07-05-06, 09:56
koncept koncept is offline
Registered User
 
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.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On