Working in C# and using the ReportDocument object model, here's some sample code for changing fonts:
private void updateReport(ReportDocument doc){ Font ft; foreach (Section sec in doc.ReportDefinition.Sections) { foreach (ReportObject obj in sec.ReportObjects) { if (obj.Kind == ReportObjectKind.FieldHeadingObject) { FieldHeadingObject fobj = (FieldHeadingObject)obj; ft = new Font("Arial", fobj.Font.Size, fobj.Font.Style, fobj.Font.Unit, fobj.Font.GdiCharSet, fobj.Font.GdiVerticalFont); fobj.ApplyFont(ft); } else if (obj.Kind == ReportObjectKind.FieldObject) { FieldObject fobj = (FieldObject)obj; ft = new Font("Arial", fobj.Font.Size, fobj.Font.Style, fobj.Font.Unit, fobj.Font.GdiCharSet, fobj.Font.GdiVerticalFont); fobj.ApplyFont(ft);
} else if (obj.Kind == ReportObjectKind.TextObject) { TextObject fobj = (TextObject)obj; ft = new Font("Arial", fobj.Font.Size, fobj.Font.Style, fobj.Font.Unit, fobj.Font.GdiCharSet, fobj.Font.GdiVerticalFont); fobj.ApplyFont(ft); } } }}
I don't see a way for changing the fonts in a crosstab or subreport, though. Hopefully this will at least get you started if you decide to go this route.
-Dell
Edited by hilfy - 06 Jul 2012 at 11:24am