Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trying to Redirect To a .PDF file
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01060026
Message ID:
01060292
Views:
16
It is definitely a pathing problem. You might try some of the following possibilities:

Note where the browser focus is when the current page is loaded. T Where in the directory tree are the pdf files in relation to the current webpage? If they are in the same directory, then you can simply do a response.redirect('myfile.pdf').
If they are one level below, response.redirect('./myfolder/myfile.pdf')
One level up - response.redirect('..\myfolder\myfile.pdf')

There could also be a rights issue with the folder you are trying to access. Try outputting the pdfs to a temp folder and giving full rights to everyone. That redirection should work.

John

>UPDATE:
>
>One of my programmers got this to work.
>
>Instead of
>
>
>
>Response.Redirect("http://localhost/mypages/myReport.PDF")
>
>
>
>
>He tried:
>
>
>
>Response.Redirect("http://localhost\mypages\myReport.PDF")
>
>
>
> ... and the dang thing worked. The only difference being the direction of the slashes.
>
>As an additional FYI: Internet Explorer doesn't care which way the slashes are. It works both ways.
>
>Thanks for the help....
>
>-Steve Kanski
John Harvey
Shelbynet.com

"I'm addicted to placebos. I could quit, but it wouldn't matter." Stephen Wright
Previous
Reply
Map
View

Click here to load this message in the networking platform