MC Henning
June 14th, 2001, 10:09 PM
Am frustrated by a persistent problem -- in a simple project that uses DataReport to display DataEnvironment output, print preview fails with the "report width too large" error because the design-time DataReport ReportWidth + LeftMargin + RightMargin > 11" (totals 19620 twips).
Have installed VS 6 SP5, and included this code in the command click event that invokes the print preview:
Printer.PaperSize = vbPRPSLegal
DataReport1.Orientation = rptOrientLandscape
DataReport1.Refresh
DataReport1.Show
Works like a champ if I manually reset the default document's Paper Size to Legal, but shouldn't it be enough to programmatically reset it?
Have seen an interesting suggestion for using IE to preview, but would *really* like to get this working within DataReport. Gurus, any ideas are SOOOO appreciated!
Thanks,
MC
Have installed VS 6 SP5, and included this code in the command click event that invokes the print preview:
Printer.PaperSize = vbPRPSLegal
DataReport1.Orientation = rptOrientLandscape
DataReport1.Refresh
DataReport1.Show
Works like a champ if I manually reset the default document's Paper Size to Legal, but shouldn't it be enough to programmatically reset it?
Have seen an interesting suggestion for using IE to preview, but would *really* like to get this working within DataReport. Gurus, any ideas are SOOOO appreciated!
Thanks,
MC