[reportlab-users] passing output file name

Tim Roberts timr at probo.com
Fri Aug 12 13:02:27 EDT 2005


On Thu, 11 Aug 2005 19:05:37 -0400, "Doug Taylor" <dougdata at hotmail.com> 
wrote:

>I am looping through a set of values that will be used as the filename to
>save my pdf.
>
>One module passes the string name to another.
>
>I am using the example reportlab file that calls SaveToFile function from
>pdfdoc.py
>
>No modifications have been made.
>
>The error message is: 
>
>  File "C:\Python24\reportlab\pdfbase\pdfdoc.py", line 232, in SaveToFile
>    f = open(filename, "wb")
>
>IOError: [Errno 13] Permission denied:
>'c:\\docume~1\\doug\\locals~1\\temp\\ReportLab_tmp\\reportlab_test'
>
>If the filename is hard coded, the process works fine, but clearly I can not
>have all files writing to the same document name! 
>


If I had to guess, I'd guess that you were only passing the directory 
name, and not including the file name.  Can you show us the code that 
leads up to the SaveToFile call?

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the reportlab-users mailing list