Discussion:
generating a PDF from an IW app with Rave
(too old to reply)
Ray Porter
2008-06-17 20:10:05 UTC
Permalink
Hi,
I've found the sample app that shows how to generate a PDF with RAVE from an
IW app. I've tried to adapt the sample code (using a code-based report
instead of a pre-designed one). I have a minimal report that is being
created in a subdirectory under /Files (running in stand-alone mode) but I'm
getting a "404 File Not Found" error when the app tries to display the
report. I can see the PDF file in the session directory under /Files so I
know the file is being created. What am I missing?

Thanks,
=================================
Ray Porter
Information Systems
Applications Development Manager
Division of University Advancement
University of North Carolina at Chapel Hill
Phone: (919) 259-9389
Fax: (919) 843-3314
Pager: (919) 216-4218

***@unc.edu
http://www.unc.edu/~dragon

Meddle not in the affairs of dragons for thou
art crunchy and taste good with ketchup
willem van deursen
2008-06-18 09:30:37 UTC
Permalink
Post by Ray Porter
Hi,
I've found the sample app that shows how to generate a PDF with RAVE from an
IW app. I've tried to adapt the sample code (using a code-based report
instead of a pre-designed one). I have a minimal report that is being
created in a subdirectory under /Files (running in stand-alone mode) but I'm
getting a "404 File Not Found" error when the app tries to display the
report. I can see the PDF file in the session directory under /Files so I
know the file is being created. What am I missing?
Don't know if it is related, but I have had problems with the /Files
directory. I now use the full pathname, and that seems to solve this

MyFileName:=WebApplication.ApplicationPath+'Files\xxxxx';

Hope this helps

Willem
--
Willem van Deursen, The Netherlands
***@nospam_carthago.nl
replace ***@nospam_ for @ to get a valid email address
www.carthago.nl
Ray Porter
2008-06-18 11:02:42 UTC
Permalink
Thanks, Willem. I'll give it a try.

Ray
Post by willem van deursen
Post by Ray Porter
Hi,
I've found the sample app that shows how to generate a PDF with RAVE from
an IW app. I've tried to adapt the sample code (using a code-based
report instead of a pre-designed one). I have a minimal report that is
being created in a subdirectory under /Files (running in stand-alone
mode) but I'm getting a "404 File Not Found" error when the app tries to
display the report. I can see the PDF file in the session directory
under /Files so I know the file is being created. What am I missing?
Don't know if it is related, but I have had problems with the /Files
directory. I now use the full pathname, and that seems to solve this
MyFileName:=WebApplication.ApplicationPath+'Files\xxxxx';
Hope this helps
Willem
--
Willem van Deursen, The Netherlands
www.carthago.nl
Ray Porter
2008-06-18 19:20:38 UTC
Permalink
Thanks to those who replied.

The solution ended up, as is often the case, being very simple but not
documented anywhere I could find. All I had to do was set the
ServerController AllowSubFolders property to true (instead of the default
false) and everything started working like a champ.

Thanks,
Ray
Post by Ray Porter
Thanks, Willem. I'll give it a try.
Ray
Post by willem van deursen
Post by Ray Porter
Hi,
I've found the sample app that shows how to generate a PDF with RAVE
from an IW app. I've tried to adapt the sample code (using a code-based
report instead of a pre-designed one). I have a minimal report that is
being created in a subdirectory under /Files (running in stand-alone
mode) but I'm getting a "404 File Not Found" error when the app tries to
display the report. I can see the PDF file in the session directory
under /Files so I know the file is being created. What am I missing?
Don't know if it is related, but I have had problems with the /Files
directory. I now use the full pathname, and that seems to solve this
MyFileName:=WebApplication.ApplicationPath+'Files\xxxxx';
Hope this helps
Willem
--
Willem van Deursen, The Netherlands
www.carthago.nl
willem van deursen
2008-06-19 05:52:10 UTC
Permalink
Post by Ray Porter
The solution ended up, as is often the case, being very simple but not
documented anywhere I could find. All I had to do was set the
ServerController AllowSubFolders property to true (instead of the default
false) and everything started working like a champ.
Post by willem van deursen
Don't know if it is related, but I have had problems with the /Files
directory. I now use the full pathname, and that seems to solve this
MyFileName:=WebApplication.ApplicationPath+'Files\xxxxx';
Great! This also solved my problem: After setting AllowSubfolders I can
use just plain
MyFile := 'Files\xxxx';

Thanks!

Willem
--
Willem van Deursen, The Netherlands
***@nospam_carthago.nl
replace ***@nospam_ for @ to get a valid email address
www.carthago.nl
Loading...