I want to add a form-feed to my panel after each Item that I print so that I can have each Item print on its own page.
Is that even possible to do?
For example I can add a line-break to my panel but not sure how to add a form-feed.
Example:
Panel1.Controls.Add(new LiteralControl("<br />"));
Any help would be appreciated.
Thank you
Use the page-break-after css style:
Panel1.Controls.Add(new LiteralControl("<br style='page-break-after:always;' />"));
And watch for the newer break-after css style to replace it (not well supported yet):
Panel1.Controls.Add(new LiteralControl("<br style='break-after:page;' />"));
Note that these apply to a box, so using a <br/>
may not be the best choice. An <hr/>
might work better.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With