I am working on a timetable function:

Controller:

def classtimesweek():
 
rows=db((db.lesrooster.bedrijf_id==1)&(db.lesrooster.dag_id==db.dag.id)&(db.lesrooster.level_id==db.level.id))
\
        
.select(db.lesrooster.ALL,db.dag.dag,db.level.level,orderby=db.lesrooster.dag_id|
db.lesrooster.tijd)
    return dict(rows=rows)


View:

<table id="init" class="display" style="margin-top: 12px;">
  <thead>
    ...
  </thead>
  <tbody>
    ...
  </tbody>
</table>


Now I would like the user to be able to download the timetable as a
pdf and print it. What is the most straightforward way to do this?


Kind regards,

Annet.

Reply via email to