Posted 2 May 2018, 12:42 am EST
Hi I have a richtextbox that I am loading content into from an HTML file I have set the richtextbox width in my sub report to span the width of an A4 page, and the HTML content contains a table which I have set the width to various different values but no matter what I do when the html is rendered into the PDF report it only takes up a portion of the width of the A4 page.
I have set the width of the subreport and the PrintWidth of the “report” inside the subReport control. But nothing I do seems to make the width of the imported HTML take up the width of the page.
// this i have in the properties
this.SubReportConditions.Width = 8.128F; // width of A4 page
…
void Detail_Format(object sender, EventArgs eArgs) {
…
SubReportConditions.Report = new Conditions(conditionsFile);
// tried this
SubReportConditions.Report.PrintWidth = SubReportConditions.Width;
// also tried this
SubReportConditions.Report.PageSettings.PaperWidth = SubReportConditions.Width;
…
}
but I cannot get the text in the HTML file to spread across the width of the A4 page, it takes up about 80% of the width.
note - other elements printed on the same page (in the main part of the report), do take up the width of the page without a problem.
thanks
Derek
