troubleshooting Question

Insert page break in Outlook HTMLBody

Avatar of gtwmb
gtwmb asked on
Email SoftwareOutlookInternet / Email Software
5 Comments1 Solution2227 ViewsLast Modified:
Working on a report for an Outlook plug in which could contain one or more tables (using the HMTLBody property of an Outlook message).  If the report contains more than one table, I want to insert a page break in between the tables.  However, when I do a page preview in Outlook, the tables are all on one page.  Does anyone know how to insert a page break into the HTMLBody of an Outlook message?
// newMail defined above
string body = "<br style='page-break-before:always'>";
body += "<table>";
// table code here
body += "</table>";
newMail.HTMLBody = body;
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros