or
private void crosstab1_ItemDataBinding(object sender, EventArgs e) { //Connections and commands ..... //get the processing table object since we're in the context of event Telerik.Reporting.Processing.Table processingTable = (sender as Telerik.Reporting.Processing.Table); //construct the select statement based on the selected report parameters SqlDataAdapter sqlAdapter = new SqlDataAdapter(sComm); sqlAdapter.SelectCommand.CommandTimeout = 3600; //create a dataset, fill it and set it as datasource to the processing table object DataSet ds = new DataSet(); sqlAdapter.Fill(ds); processingTable.DataSource = ds.Tables[0]; //create two HtmlTextBox items (one for header and one for data) which would be added to the items collection of the table Telerik.Reporting.HtmlTextBox textboxGroup; Telerik.Reporting.HtmlTextBox textBoxTable; //we do not clear the Rows collection, since we have a details row group and need to create columns only this.crosstab1.ColumnGroups.Clear(); this.crosstab1.Body.Columns.Clear(); this.crosstab1.Body.Rows.Clear(); int i = 0; this.crosstab1.ColumnHeadersPrintOnEveryPage = true; DataTable dt = ds.Tables[0]; foreach (DataColumn dc in dt.Columns) { Telerik.Reporting.TableGroup tableGroupColumn = new Telerik.Reporting.TableGroup(); this.crosstab1.ColumnGroups.Add(tableGroupColumn); this.crosstab1.Body.Columns.Add(new Telerik.Reporting.TableBodyColumn(Unit.Inch(1))); textboxGroup = new Telerik.Reporting.HtmlTextBox(); textboxGroup.Style.BorderColor.Default = Color.Black; textboxGroup.Style.BorderStyle.Default = BorderType.Solid; textboxGroup.Value = dc.ColumnName; textboxGroup.Size = new SizeU(Unit.Inch(1.1), Unit.Inch(0.3)); tableGroupColumn.ReportItem = textboxGroup; textBoxTable = new Telerik.Reporting.HtmlTextBox(); textBoxTable.Style.BorderColor.Default = Color.Black; textBoxTable.Style.BorderStyle.Default = BorderType.Solid; textBoxTable.Value = "=Fields." + dc.ColumnName; textBoxTable.Size = new SizeU(Unit.Inch(1.1), Unit.Inch(0.3)); this.crosstab1.Body.SetCellContent(0, i++, textBoxTable); this.crosstab1.Items.AddRange(new ReportItemBase[] { textBoxTable, textboxGroup }); } }<div style='font-size:8pt; width:713px;'> <FONT size=2> <FONT size=1> I (We) certify that the information on this Balance Sheet is true and correct to the best of my (our) knowledge. I (We) have provided this information to xxxxxxxxxxx Bank to obtain or maintain a loan. I (We) understand that false statements made may be subject to prosecution. The xxxxxxxxxxx Bank is authorized to verify the statements contained herin and I (We) request and authorize all individuals or businesses to release information to xxxxxxxxxxx Bank regarding our business relationships. I (We) agree to all these conditions and terms of this application. <BR> <BR> <BR>Signature:________________________________________________________ Date: __________<BR> <BR> <BR> <BR>Signature: ________________________________________________________Date:__________ </FONT> </FONT></div><br/><hr/><br/><style type="text/css">div.htmlTextBox2 { line-height:110%; height:111px; top:535px; width:713px; font-family:Arial; font-size:11pt; margin:0; padding:0; }div.htmlTextBox2 * { line-height:110%; }.s67 { font-size: 9.79pt; padding: 0; }.s68 { font-size: 6.6pt; padding:0; }</style><div title="" class="htmlTextBox2 s64" style="overflow: visible; border:1px solid red;"><DIV style="MARGIN-TOP: 0px" class=html-root> <DIV class=s66 style='margin:0;padding:0;'> <FONT class=s67> <FONT class=s68> I (We) certify that the information on this Balance Sheet is true and correct to the best of my (our) knowledge. I (We) have provided this information to xxxxxxxxxxx Bank to obtain or </FONT> </FONT> <FONT class=s67> <FONT class=s68> maintain a loan. I (We) understand that false statements made may be subject to prosecution. The xxxxxxxxxxx Bank is authorized to verify the statements contained herin and I </FONT> </FONT> <FONT class=s67> <FONT class=s68> (We) request and authorize all individuals or businesses to release information to xxxxxxxxxxx Bank regarding our business relationships. I (We) agree to all these conditions and </FONT> </FONT> <FONT class=s67> <FONT class=s68> terms of this application. <BR> </FONT> </FONT> <FONT class=s67> <FONT class=s68> <BR> </FONT> </FONT> <FONT class=s67> <FONT class=s68> <BR> </FONT> </FONT> <FONT class=s67> <FONT class=s68> Signature:________________________________________________________ Date: __________<BR> </FONT> </FONT> <FONT class=s67> <FONT class=s68> <BR> </FONT> </FONT> <FONT class=s67> <FONT class=s68> <BR> </FONT> </FONT> <FONT class=s67> <FONT class=s68> <BR> </FONT> </FONT> <FONT class=s67> <FONT class=s68> Signature: ________________________________________________________Date:__________ </FONT> </FONT> </DIV></DIV></DIV>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Billing.aspx.cs" Inherits="Wysocki.Farm.Intranet.Billing.Billing" %><%@ Register Assembly="Telerik.ReportViewer.WebForms, Version=7.0.13.426, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" Namespace="Telerik.ReportViewer.WebForms" TagPrefix="telerik" %><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title> <style type="text/css"> html#html, body#body, form#form1, div#content { height: 100%; } </style></head><body> <form id="form1" runat="server"> <div> <div id="content"> <telerik:ReportViewer ID="ReportViewer1" runat="server" Height="100%" Width="100%" ViewMode="PrintPreview" ></telerik:ReportViewer> </div> </div> </form></body></html>
I also tried:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Billing.aspx.cs" Inherits="Wysocki.Farm.Intranet.Billing.Billing" %><%@ Register Assembly="Telerik.ReportViewer.WebForms, Version=7.0.13.426, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" Namespace="Telerik.ReportViewer.WebForms" TagPrefix="telerik" %><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta content="text/html; charset=UTF-8" http-equiv="content-type"> <title></title> <style type="text/css"> html#html, body#body, form#form1, div#content { height: 100%; } </style></head><body> <form id="form1" runat="server"> <div> <div id="content"> <telerik:ReportViewer ID="ReportViewer1" runat="server" Height="100%" Width="100%" ViewMode="PrintPreview" ></telerik:ReportViewer> </div> </div> </form></body></html>