public class MyClass{ private int test; public int Test { get { return test; } set { test = value; } } public IEnumerator GetEnumerator() { return null; }}I'm evaluating the component and everything seems to be working perfectly but there is one thing i want to do and i cant find a way.
I have a report that generates only 1 page (wich is correct) but i need to print 3 copies and put in the report the number of each copy (1,2,3) or "original, duplicate, triplicate) ...
How can we achieve this?
thanks,
Joaquim
4. The data is stored in the Access Database
Issues are as follows:
When these comment fields are to be displayed in the Reports--> HTMLTextBox, (since richtext htmlTextbox is used) error occurs as the HtmlTextBox is unable to identify the html tags (mostly generated by Word, Excel and Pdf).
Steps Followed
Please find attached a sample HTML generated from the Word and the error occured.
Please note..
When these Html generated tags is directly copied into the Design View of Editor properties of the [HTMLTextBox--> Value ]
and switch back to HTML mode, they are displayed fine when you Preview from the Report project (like harcoding) . I have noticed that the Design view of the Editor Properties validates the HTML to proper Html tags. But the HTMLTextBox as such fails to do the same.
The reports needed for the application is dynamic data.
Please need a solution to this..
Thanks
Shalini
Sample HTML
<SPAN FONT-SIZE: 16px""><SPAN lang=DE COLOR: black; FONT-FAMILY: 'Arial Unicode MS'; mso-bidi-font-size: 10.0pt; mso-bidi-font-family: Arial;
mso-ascii-font-family: Arial; mso-hansi-font-family: Arial"">
<P MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify""><STRONG><SPAN lang=DE COLOR: black; FONT-FAMILY: 'Arial Unicode MS';
mso-bidi-font-size: 10.0pt; mso-bidi-font-family: Arial; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial"">智信有限公司</SPAN><SPAN COLOR: black;
FONT-FAMILY: Arial; mso-bidi-font-family: Arial; mso-fareast-font-family: 'Arial Unicode MS'"">(CHEERSIN LIMITED)<?xml:namespace prefix = o ns =
""urn:schemas-microsoft-com:office:office"" /><o:p></o:p></SPAN></STRONG></P>
<P MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify""><SPAN lang=DE COLOR: black; FONT-FAMILY: 'Arial Unicode MS'; mso-bidi-font-size:
10.0pt; mso-bidi-font-family: Arial; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial"">智信工程有限公司</SPAN><SPAN COLOR: black; FONT-FAMILY: Arial;
mso-bidi-font-family: Arial; mso-fareast-font-family: 'Arial Unicode MS'"">(WISE FAITH ENGINEERING LIMITED)<o:p></o:p></SPAN></P>
<P MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify""><SPAN lang=DE COLOR: black; FONT-FAMILY: 'Arial Unicode MS'; mso-bidi-font-size:
10.0pt; mso-bidi-font-family: Arial; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial"">智信企業有限公司</SPAN><SPAN COLOR: black; FONT-FAMILY: Arial;
mso-bidi-font-family: Arial; mso-fareast-font-family: 'Arial Unicode MS'"">(CHEER VISION ENTERPRISES LIMITED)<o:p></o:p></SPAN></P>
<P MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify""><EM><SPAN lang=DE COLOR: black; FONT-FAMILY: 'Arial Unicode MS';
mso-bidi-font-size: 10.0pt; mso-bidi-font-family: Arial; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial"">智信行有限公司</SPAN><SPAN COLOR: black;
FONT-FAMILY: Arial; mso-bidi-font-family: Arial; mso-fareast-font-family: 'Arial Unicode MS'"">(FAITH KIND COMPANY LIMITED)<o:p></o:p></SPAN></EM></P>
<P MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify""><SPAN COLOR: #ff8040; FONT-FAMILY: 'Arial Unicode MS'; mso-bidi-font-size: 10.0pt;
mso-bidi-font-family: Arial; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial""><SPAN lang=DE FONT-FAMILY: 'Arial Unicode MS'; mso-bidi-font-size: 10.0pt;
mso-bidi-font-family: Arial; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial"">智信技研有限公司</SPAN><SPAN FONT-FAMILY: Arial; mso-bidi-font-family:
Arial; mso-fareast-font-family: 'Arial Unicode MS'"">(NETECIS ENGINEERING LIMITED)</SPAN></SPAN></P>
<P MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify""><SPAN lang=DE COLOR: black; FONT-FAMILY: 'Arial Unicode MS'; mso-bidi-font-size:
10.0pt; mso-bidi-font-family: Arial; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial"">智信技術有限公司</SPAN><SPAN COLOR: black; FONT-FAMILY: Arial;
mso-bidi-font-family: Arial; mso-fareast-font-family: 'Arial Unicode MS'"">(SMARTCOMM TECHNOLOGIES CO., LIMITED)<o:p></o:p></SPAN></P>
<P MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify""><SPAN lang=DE COLOR: black; FONT-FAMILY: 'Arial Unicode MS'; mso-bidi-font-size:
10.0pt; mso-bidi-font-family: Arial; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial"">智信科技有限公司</SPAN><SPAN COLOR: black; FONT-FAMILY: Arial;
mso-bidi-font-family: Arial; mso-fareast-font-family: 'Arial Unicode MS'"">(WISE HONOUR TECHNOLOGIES LIMITED)<o:p></o:p></SPAN></P>
<P MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify""><SPAN lang=DE COLOR: black; FONT-FAMILY: 'Arial Unicode MS'; mso-bidi-font-size:
10.0pt; mso-bidi-font-family: Arial; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial"">智信科技香港有限公司</SPAN><SPAN COLOR: black; FONT-FAMILY:
Arial; mso-bidi-font-family: Arial; mso-fareast-font-family: 'Arial Unicode MS'"">(WISE MICROTEK CO., LIMITED)<o:p></o:p></SPAN></P>
<P MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify""></SPAN></SPAN></P>
srMTO.MTOwsSoapClient soaplink = new srMTO.MTOwsSoapClient();
dsCompleteQuestionnaire1 = soaplink.GetCompleteQuestionnaire( QuestionnaireId );
Telerik.Reporting.Report QuestionnaireReport = new reports.rap_CompleteQuestionnaire();
QuestionnaireReport.DataSource = dsCompleteQuestionnaire1;
QuestionnaireReport.DataMember = "CompleteQuestionnaire";
ReportBook QuestionnaireBook = new ReportBook();
//QuestionnaireBook.Reports.Add( new Rapporten.rap_CompleteQuestionnaire_Front() )
QuestionnaireBook.Reports.Add( QuestionnaireReport );
reportForm.SelectedReportBook = QuestionnaireBook;Telerik.Reporting.ReportBook report = SelectedReportBook;
this.reportViewer1.Report = report;
this.reportViewer1.RefreshReport();public static IQueryable GetUserReport(int UserID, string Period) { DataContext Data = new DataContext(); var Reports = (from c in Data.UserInfo where c.UserID == UserID && c.Period == Period orderby c.UserID ascending select c); return Reports; } double leftPoint = 0;
double Y_FirstLine = 0.02; double width = 1.25; double height = 0.25; Telerik.Reporting.TextBox textBox; // Add ItemInfoId Box textBox = new Telerik.Reporting.TextBox(); textBox.SetTextBoxAttribute("ItemId", leftPoint, Y_FirstLine, width, height); groupHeaderSection1.Items.Add(textBox); // Add Cost Box leftPoint += 0.6; textBox = new Telerik.Reporting.TextBox(); textBox.SetTextBoxAttribute("COST", leftPoint, Y_FirstLine, width, height); groupHeaderSection1.Items.Add(textBox);public static class TextBoxExtension{ public static void SetTextBoxAttribute( this Telerik.Reporting.TextBox itemBox, string value, double left, double top, double width, double height) { itemBox.Value = value; itemBox.Location = new Telerik.Reporting.Drawing.PointU( new Telerik.Reporting.Drawing.Unit(left, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(top, Telerik.Reporting.Drawing.UnitType.Inch)); itemBox.Size = new Telerik.Reporting.Drawing.SizeU( new Telerik.Reporting.Drawing.Unit(width, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit( height, Telerik.Reporting.Drawing.UnitType.Inch)); }}