DBRW - Make pdf display

S

SAC

I'm using FP2000.

How do I make a pdf display in the DBRW?

I have a db with two fields. The name of a show and the path and name to
the corresponding pdf file.

I have a dropdownbox displaying the names of the shows. When I click
submit, I'd like the pdf to display.

Thanks.
 
S

Stefan B Rusynko

The PDF is nothing but another web page to display
Your form needs to pass the pdf file name and path to a ASP page which then just uses a response redirect
Say the path (w/o a trailing / ) is in a form field "filepath" and the file name is in a form field "filename"
The ASP page would be just
<%
strURL = Request.QueryString("filepath") & "/" & Request.QueryString("filename")
Response.Redirect strURL
%>




| I'm using FP2000.
|
| How do I make a pdf display in the DBRW?
|
| I have a db with two fields. The name of a show and the path and name to
| the corresponding pdf file.
|
| I have a dropdownbox displaying the names of the shows. When I click
| submit, I'd like the pdf to display.
|
| Thanks.
|
|
 
S

SAC

Sorry, I'm new to this. I don't know where to put that code.

I was thinking I could use the hyperlink property of the dropdown box to the
contents of the field in the db and it should display, but I guess not.

So I should put this code in respnse to the submit button?

Thanks.


Stefan B Rusynko said:
The PDF is nothing but another web page to display
Your form needs to pass the pdf file name and path to a ASP page which
then just uses a response redirect
Say the path (w/o a trailing / ) is in a form field "filepath" and the
file name is in a form field "filename"
 
M

Mike Mueller

See if this MS KB article helps...
http://support.microsoft.com/default.aspx?scid=kb;EN-US;216285

Miek


SAC wrote:
: Sorry, I'm new to this. I don't know where to put that
: code.
:
: I was thinking I could use the hyperlink property of the
: dropdown box to the contents of the field in the db and
: it should display, but I guess not.
:
: So I should put this code in respnse to the submit button?
:
: Thanks.
:
:
: message :: The PDF is nothing but another web page to display
:: Your form needs to pass the pdf file name and path to a
:: ASP page which
: then just uses a response redirect
:: Say the path (w/o a trailing / ) is in a form field
:: "filepath" and the
: file name is in a form field "filename"
:: The ASP page would be just
:: <%
:: strURL = Request.QueryString("filepath") & "/" &
: Request.QueryString("filename")
:: Response.Redirect strURL
:: %>
::
:: --
::
:: _____________________________________________
:: SBR @ ENJOY (-: [ Microsoft MVP - FrontPage
:: ] "Warning - Using the F1 Key will not break anything!"
:: (-;
:: To find the best Newsgroup for FrontPage support see:
:: http://www.net-sites.com/sitebuilder/newsgroups.asp
:: _____________________________________________
::
::
: ::: I'm using FP2000.
:::
::: How do I make a pdf display in the DBRW?
:::
::: I have a db with two fields. The name of a show and
::: the path and name to the corresponding pdf file.
:::
::: I have a dropdownbox displaying the names of the shows.
::: When I click submit, I'd like the pdf to display.
:::
::: Thanks.
 
S

SAC

Thanks. This works with a picture, but I haven't been able to make it work
with a pdf.

I've used pictures in a different web and had success using a list. So I
put a pdf in that web and changed the dbr to reflect a pdf and it doesn't
open it.

Also, I'd like to know how to do this with a drop-down box rather than a
list. It seems like ti should work similarly to the pictures.

Any thing else you can think of?

Could I use your original post and a an after_click event to the dropdown
box and reference that code you gave me?

Thanks.
 
M

Mike Mueller

Do you want this in the same window or a new window--- now I
need to try this out.

Mike


SAC wrote:
: Thanks. This works with a picture, but I haven't been
: able to make it work with a pdf.
:
: I've used pictures in a different web and had success
: using a list. So I put a pdf in that web and changed the
: dbr to reflect a pdf and it doesn't open it.
:
: Also, I'd like to know how to do this with a drop-down
: box rather than a list. It seems like ti should work
: similarly to the pictures.
:
: Any thing else you can think of?
:
: Could I use your original post and a an after_click event
: to the dropdown box and reference that code you gave me?
:
: Thanks.
:
: message :: See if this MS KB article helps...
::
http://support.microsoft.com/default.aspx?scid=kb;EN-US;216285
::
:: Miek
::
::
:: SAC wrote:
::: Sorry, I'm new to this. I don't know where to put that
::: code.
:::
::: I was thinking I could use the hyperlink property of the
::: dropdown box to the contents of the field in the db and
::: it should display, but I guess not.
:::
::: So I should put this code in respnse to the submit
::: button?
:::
::: Thanks.
:::
:::
::: message :::: The PDF is nothing but another web page to display
:::: Your form needs to pass the pdf file name and path to a
:::: ASP page which
::: then just uses a response redirect
:::: Say the path (w/o a trailing / ) is in a form field
:::: "filepath" and the
::: file name is in a form field "filename"
:::: The ASP page would be just
:::: <%
:::: strURL = Request.QueryString("filepath") & "/" &
::: Request.QueryString("filename")
:::: Response.Redirect strURL
:::: %>
::::
:::: --
::::
:::: _____________________________________________
:::: SBR @ ENJOY (-: [ Microsoft MVP -
:::: FrontPage ] "Warning - Using the F1 Key will not break
:::: anything!" (-;
:::: To find the best Newsgroup for FrontPage support see:
:::: http://www.net-sites.com/sitebuilder/newsgroups.asp
:::: _____________________________________________
::::
::::
::: ::::: I'm using FP2000.
:::::
::::: How do I make a pdf display in the DBRW?
:::::
::::: I have a db with two fields. The name of a show and
::::: the path and name to the corresponding pdf file.
:::::
::::: I have a dropdownbox displaying the names of the
::::: shows. When I click submit, I'd like the pdf to
::::: display.
:::::
::::: Thanks.
 
S

SAC

I would like to be able to selction an item in the dropdown box and then
have the pdf activate the Adobe Acrobat reader without showing the name of
the pdf file and having to click on it.

Thanks for your help. I really appreciate it.

Mike Mueller said:
Do you want this in the same window or a new window--- now I
need to try this out.

Mike


SAC wrote:
: Thanks. This works with a picture, but I haven't been
: able to make it work with a pdf.
:
: I've used pictures in a different web and had success
: using a list. So I put a pdf in that web and changed the
: dbr to reflect a pdf and it doesn't open it.
:
: Also, I'd like to know how to do this with a drop-down
: box rather than a list. It seems like ti should work
: similarly to the pictures.
:
: Any thing else you can think of?
:
: Could I use your original post and a an after_click event
: to the dropdown box and reference that code you gave me?
:
: Thanks.
:
: message :: See if this MS KB article helps...
::
http://support.microsoft.com/default.aspx?scid=kb;EN-US;216285
::
:: Miek
::
::
:: SAC wrote:
::: Sorry, I'm new to this. I don't know where to put that
::: code.
:::
::: I was thinking I could use the hyperlink property of the
::: dropdown box to the contents of the field in the db and
::: it should display, but I guess not.
:::
::: So I should put this code in respnse to the submit
::: button?
:::
::: Thanks.
:::
:::
::: message :::: The PDF is nothing but another web page to display
:::: Your form needs to pass the pdf file name and path to a
:::: ASP page which
::: then just uses a response redirect
:::: Say the path (w/o a trailing / ) is in a form field
:::: "filepath" and the
::: file name is in a form field "filename"
:::: The ASP page would be just
:::: <%
:::: strURL = Request.QueryString("filepath") & "/" &
::: Request.QueryString("filename")
:::: Response.Redirect strURL
:::: %>
::::
:::: --
::::
:::: _____________________________________________
:::: SBR @ ENJOY (-: [ Microsoft MVP -
:::: FrontPage ] "Warning - Using the F1 Key will not break
:::: anything!" (-;
:::: To find the best Newsgroup for FrontPage support see:
:::: http://www.net-sites.com/sitebuilder/newsgroups.asp
:::: _____________________________________________
::::
::::
::: ::::: I'm using FP2000.
:::::
::::: How do I make a pdf display in the DBRW?
:::::
::::: I have a db with two fields. The name of a show and
::::: the path and name to the corresponding pdf file.
:::::
::::: I have a dropdownbox displaying the names of the
::::: shows. When I click submit, I'd like the pdf to
::::: display.
:::::
::::: Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top