11 Answers, 1 is accepted
Reports are paged with fixed sizes and printed based on the PageSettings properties.
Test settings a Report.PageSettings.PaperKind and Report.PageSettings.PaperSize to such values that allows you to gather the whole content on a single page. Thus when you print there will be only one page, and the printer will not cut the paper.
There is also an approved feature request for having support for print settings for roll paper. Feel free to vote for the feature, as features are considered for implementation based on the demand for them.
Regards,
Stef
Telerik
If the report is printed directly from a Report Designer's preview, you have option to manually change the page settings of the document. This will allow you to set manually paper size gathering the whole content.
If reports are only designed in the Standalone Report Designer, and then are printed from code. the TRDX file's content can be deserialized into a Telerik.Reporting.Report object, which allows you to change the report's PageSettings properties in code.
Regards,
Stef
Telerik
The suggested settings should be applied on the report's PageSettings.
You can serialize back in TRDX file the report, which is modified at run-time, to compare the differences and to determine if the changes can be applied while designing the report.
I hope this information helps you.
Regards,
Stef
Telerik
i tried the following code but invain
using (System.Xml.XmlReader xmlReader = System.Xml.XmlReader.Create(ReportPath, settings))
{
Telerik.Reporting.XmlSerialization.ReportXmlSerializer xmlSerializer = new Telerik.Reporting.XmlSerialization.ReportXmlSerializer();
Telerik.Reporting.Report report = (Telerik.Reporting.Report)xmlSerializer.Deserialize(xmlReader);
report.PageSettings.PaperKind = PaperKind.Custom;
report.PageSettings.PaperSize = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Cm(100), Telerik.Reporting.Drawing.Unit.Cm(500));
PSetting.Copies = NoOfCopies;
reportProcessor.PrintReport(report, PSetting);
}
The result page must be 100x500 in CM. Please test exporting the report in PDF - Exporting Report Programmatically.
Then print it from the PDF reader to verify the settings are correct and the printer keeps the report's PageSettings.
Regards,
Stef
Telerik
As of Telerik Reporting R3 2016 printing on continuous paper is supported. There is a PageSettings.ContinousPaper property allowing you to print without paging the document.
For more details, please check PageSettings Properties.
Regards,
Stef
Telerik by Progress