How best to display a report?

1 view
Skip to first unread message

adelaide_mike

unread,
Nov 21, 2009, 5:08:24 PM11/21/09
to Django users
Please excuse my lack of knowledge about the following. (If I knew
the answer, I would not be asking...)

Django 1.0.2 being used to create, manage and report on data in
tables. I am using ReportLab to generate a .pdf which I store with a
known name in a sub-directory.

I have seen websites where a link can be used to activate the
workstation's download mechanism, such that, at least in Mac OSX,
the .pdf will be displayed. That is exactly what I want. The source
code gives no clue as to how this is done.

Any pointers would be much appreciated. Thanks

Mike

Kenneth Gonsalves

unread,
Nov 21, 2009, 6:30:25 PM11/21/09
to django...@googlegroups.com
On Sunday 22 Nov 2009 3:38:24 am adelaide_mike wrote:
> Django 1.0.2 being used to create, manage and report on data in
> tables. I am using ReportLab to generate a .pdf which I store with a
> known name in a sub-directory.
>

it is there in the docs - search for reportlab in the docs.
--
regards
Kenneth Gonsalves
Senior Project Officer
NRC-FOSS
http://nrcfosshelpline.in/web/

adelaide_mike

unread,
Nov 22, 2009, 5:40:39 AM11/22/09
to Django users
Hi Kenneth, and thanks for the reference. I must admin I did not
think of looking int he Django docs for ReportLab related stuff.
Should have.

My new problem is that the example in the docs uses canvas, but in
order to display tabular data I think I need to use SimpleDocTemplate,
with which I am able to prodice the pdf I want. I do not see how to
incorporate this technology into the given example.

Perhaps someone has done this and can give me the next pointer?

Mike

adelaide_mike

unread,
Nov 22, 2009, 7:44:28 AM11/22/09
to Django users
Nevermind. Found the solution in a post from abrightwell. Thanks.

Mike
Reply all
Reply to author
Forward
0 new messages