JohnPDubya
JohnPDubya

Reputation: 69

How To Print Multiple Pages Programatically?

I have an app that displays transcripts, something like this myapp.com/transcript/1234 The transcripts are formatted so they can just be printed from the browser (ctrl+p).

What should I do to allow the users to be able to print multiple transcripts without visiting each page? e.g. Print transcripts for every user in group B.

Should I create a new view that just displays all of the requested transcripts at once? Do I now have to look into creating PDFs? (shoot me) Other thoughts?

Upvotes: 2

Views: 2266

Answers (2)

ventaur
ventaur

Reputation: 1851

If you want to keep it simple, create/change a view to display all the transcripts to be printed. Wrap each transcript in a container with a style class (like a div, <div class="transcript">...</div>). Use CSS to style each container such that a page-break occurs for each transcript. The style will look something like the following.

.transcript: {
  page-break-after: always;
}

Upvotes: 6

maciek
maciek

Reputation: 659

I personally just create pdfs. Using it for things such as official time sheets and various other forms I can't change. It is actually very simple to do with itextsharp and if your PDF has properly labeled input fields (aka isn't just one big scanned image or something).

Upvotes: 3

Related Questions