[reportlab-users] Page X of Y and SimpleDocTemplates
    Daniel Crespo 
    dcrespo at grupozoom.com
       
    Mon Mar 13 14:44:02 EST 2006
    
    
  
Hi to all!
I'm completely new in reportlab. I need to do two important things:
1. Place a string like "Page x of y"
    How can I get the "y" value?
2. Use Frames with SimpleDocTemplates
    How can I use Frames in the below example of SimpleDocTemplate?
from reportlab.lib.pagesizes import letter
from reportlab.platypus import Paragraph, SimpleDocTemplate
styles = getSampleStyleSheet()
styleN = styles['Normal']
styleH = styles['Heading1']
story = []
#add some flowables
story.append(Paragraph("This is a Heading",styleH))
story.append(Paragraph("This is a paragraph in <i>Normal</i> style.",
styleN))
doc = SimpleDocTemplate('mydoc.pdf',pagesize = letter)
doc.build(story)
Until now, I think that the Frame only works with Canvas and not with 
SimpleDocTemplate, but I'm not sure (I have read all the things regarding 
Frames and SimpleDocTemplates)...
Thank you very much.
Daniel
    
    
More information about the reportlab-users
mailing list