Telerik Forums
Reporting Forum
1 answer
151 views
Can we bind Report direcly to asp.net gridview to view gridview result in telerik report as i m bigneer to Telerik please help
Peter
Telerik team
 answered on 21 Mar 2013
3 answers
342 views
My report layout is attached
I need to have this in a4 sheet

Section 1 - Constant Height (Bottom of A4)
Section 2 - It will vary its height according to list of data (Above section 1)
Section 3 - Picture should occupy remaining A4 page sheet (Remaining part of the paper)

What is did was
Section 1 is docked bottom
Section 2 is docked bottom (above section 1)
Section 3 is docked fill

Attached my output

When my Section 2 is bigger then details are showed by generating the second page
I need to fit all in a single page by reducing the picture size(section 3)

My designer Code

private void InitializeComponent()
      {
          Telerik.Reporting.TableGroup tableGroup1 = new Telerik.Reporting.TableGroup();
          Telerik.Reporting.TableGroup tableGroup2 = new Telerik.Reporting.TableGroup();
          Telerik.Reporting.TableGroup tableGroup3 = new Telerik.Reporting.TableGroup();
          Telerik.Reporting.TableGroup tableGroup4 = new Telerik.Reporting.TableGroup();
          System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Report1));
          Telerik.Reporting.Drawing.TextWatermark textWatermark1 = new Telerik.Reporting.Drawing.TextWatermark();
          Telerik.Reporting.Drawing.StyleRule styleRule1 = new Telerik.Reporting.Drawing.StyleRule();
          this.textBox1 = new Telerik.Reporting.TextBox();
          this.textBox3 = new Telerik.Reporting.TextBox();
          this.textBox4 = new Telerik.Reporting.TextBox();
          this.pageHeaderSection1 = new Telerik.Reporting.PageHeaderSection();
          this.detail = new Telerik.Reporting.DetailSection();
          this.panel11 = new Telerik.Reporting.Panel();
          this.pictureBox2 = new Telerik.Reporting.PictureBox();
          this.panel2 = new Telerik.Reporting.Panel();
          this.table1 = new Telerik.Reporting.Table();
          this.textBox5 = new Telerik.Reporting.TextBox();
          this.textBox6 = new Telerik.Reporting.TextBox();
          this.textBox7 = new Telerik.Reporting.TextBox();
          this.pageFooterSection1 = new Telerik.Reporting.PageFooterSection();
          this.panel1 = new Telerik.Reporting.Panel();
          this.pictureBox1 = new Telerik.Reporting.PictureBox();
          ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
          //
          // textBox1
          //
          this.textBox1.Name = "textBox1";
          this.textBox1.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(0.79998695850372314D), Telerik.Reporting.Drawing.Unit.Inch(0.29996046423912048D));
          this.textBox1.Style.BorderStyle.Default = Telerik.Reporting.Drawing.BorderType.Solid;
          this.textBox1.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle;
          //
          // textBox3
          //
          this.textBox3.Name = "textBox3";
          this.textBox3.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(0.79998695850372314D), Telerik.Reporting.Drawing.Unit.Inch(0.29996046423912048D));
          this.textBox3.Style.BorderStyle.Default = Telerik.Reporting.Drawing.BorderType.Solid;
          this.textBox3.Style.BorderStyle.Left = Telerik.Reporting.Drawing.BorderType.None;
          this.textBox3.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle;
          //
          // textBox4
          //
          this.textBox4.Name = "textBox4";
          this.textBox4.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(0.79998695850372314D), Telerik.Reporting.Drawing.Unit.Inch(0.29996046423912048D));
          this.textBox4.Style.BorderStyle.Default = Telerik.Reporting.Drawing.BorderType.Solid;
          this.textBox4.Style.BorderStyle.Left = Telerik.Reporting.Drawing.BorderType.None;
          this.textBox4.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle;
          //
          // pageHeaderSection1
          //
          this.pageHeaderSection1.Height = Telerik.Reporting.Drawing.Unit.Inch(0.3999999463558197D);
          this.pageHeaderSection1.Name = "pageHeaderSection1";
          //
          // detail
          //
          this.detail.Height = Telerik.Reporting.Drawing.Unit.Inch(8.99375057220459D);
          this.detail.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {
          this.panel11,
          this.panel2,
          this.panel1});
          this.detail.Name = "detail";
          this.detail.Style.BorderStyle.Default = Telerik.Reporting.Drawing.BorderType.Inset;
          //
          // panel11
          //
          this.panel11.Docking = Telerik.Reporting.DockingStyle.Bottom;
          this.panel11.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {
          this.pictureBox2});
          this.panel11.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(0D), Telerik.Reporting.Drawing.Unit.Inch(7.8937506675720215D));
          this.panel11.Name = "panel11";
          this.panel11.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(6.2676377296447754D), Telerik.Reporting.Drawing.Unit.Inch(1.1000001430511475D));
          this.panel11.Style.BorderStyle.Default = Telerik.Reporting.Drawing.BorderType.Inset;
          //
          // pictureBox2
          //
          this.pictureBox2.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(1.9999212026596069D), Telerik.Reporting.Drawing.Unit.Inch(1.1000001430511475D));
          this.pictureBox2.Name = "pictureBox2";
          this.pictureBox2.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(0D), Telerik.Reporting.Drawing.Unit.Inch(0D));
          //
          // panel2
          //
          this.panel2.Docking = Telerik.Reporting.DockingStyle.Bottom;
          this.panel2.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {
          this.table1});
          this.panel2.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(0D), Telerik.Reporting.Drawing.Unit.Inch(7.2937493324279785D));
          this.panel2.Name = "panel2";
          this.panel2.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(6.2676377296447754D), Telerik.Reporting.Drawing.Unit.Inch(0.600001335144043D));
          this.panel2.Style.BorderStyle.Default = Telerik.Reporting.Drawing.BorderType.Inset;
          //
          // table1
          //
          this.table1.Anchoring = Telerik.Reporting.AnchoringStyles.Top;
          this.table1.Bindings.Add(new Telerik.Reporting.Binding("DataSource", "=ReportItem.DataObject.ModesList"));
          this.table1.Body.Columns.Add(new Telerik.Reporting.TableBodyColumn(Telerik.Reporting.Drawing.Unit.Inch(0.79998701810836792D)));
          this.table1.Body.Columns.Add(new Telerik.Reporting.TableBodyColumn(Telerik.Reporting.Drawing.Unit.Inch(0.79998701810836792D)));
          this.table1.Body.Columns.Add(new Telerik.Reporting.TableBodyColumn(Telerik.Reporting.Drawing.Unit.Inch(0.79998701810836792D)));
          this.table1.Body.Rows.Add(new Telerik.Reporting.TableBodyRow(Telerik.Reporting.Drawing.Unit.Inch(0.29996046423912048D)));
          this.table1.Body.SetCellContent(0, 0, this.textBox5);
          this.table1.Body.SetCellContent(0, 1, this.textBox6);
          this.table1.Body.SetCellContent(0, 2, this.textBox7);
          tableGroup1.ReportItem = this.textBox1;
          tableGroup2.ReportItem = this.textBox3;
          tableGroup3.ReportItem = this.textBox4;
          this.table1.ColumnGroups.Add(tableGroup1);
          this.table1.ColumnGroups.Add(tableGroup2);
          this.table1.ColumnGroups.Add(tableGroup3);
          this.table1.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {
          this.textBox5,
          this.textBox6,
          this.textBox7,
          this.textBox1,
          this.textBox3,
          this.textBox4});
          this.table1.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(3.9378803194267675E-05D), Telerik.Reporting.Drawing.Unit.Inch(3.9418537198798731E-05D));
          this.table1.Name = "table1";
          tableGroup4.Groupings.Add(new Telerik.Reporting.Grouping(null));
          tableGroup4.Name = "DetailGroup";
          this.table1.RowGroups.Add(tableGroup4);
          this.table1.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(2.39996075630188D), Telerik.Reporting.Drawing.Unit.Inch(0.599920928478241D));
          this.table1.Style.BorderStyle.Default = Telerik.Reporting.Drawing.BorderType.Solid;
          //
          // textBox5
          //
          this.textBox5.Name = "textBox5";
          this.textBox5.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(0.79998695850372314D), Telerik.Reporting.Drawing.Unit.Inch(0.29996046423912048D));
          this.textBox5.Style.BorderStyle.Default = Telerik.Reporting.Drawing.BorderType.Solid;
          this.textBox5.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle;
          this.textBox5.Value = "=Fields.Speed";
          //
          // textBox6
          //
          this.textBox6.Name = "textBox6";
          this.textBox6.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(0.79998695850372314D), Telerik.Reporting.Drawing.Unit.Inch(0.29996046423912048D));
          this.textBox6.Style.BorderStyle.Bottom = Telerik.Reporting.Drawing.BorderType.Solid;
          this.textBox6.Style.BorderStyle.Default = Telerik.Reporting.Drawing.BorderType.None;
          this.textBox6.Style.BorderStyle.Right = Telerik.Reporting.Drawing.BorderType.Solid;
          this.textBox6.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle;
          this.textBox6.Value = "=Fields.Power";
          //
          // textBox7
          //
          this.textBox7.Name = "textBox7";
          this.textBox7.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(0.79998695850372314D), Telerik.Reporting.Drawing.Unit.Inch(0.29996046423912048D));
          this.textBox7.Style.BorderStyle.Bottom = Telerik.Reporting.Drawing.BorderType.Solid;
          this.textBox7.Style.BorderStyle.Default = Telerik.Reporting.Drawing.BorderType.None;
          this.textBox7.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle;
          this.textBox7.Value = "=Fields.Torque";
          //
          // pageFooterSection1
          //
          this.pageFooterSection1.Height = Telerik.Reporting.Drawing.Unit.Inch(0.2999996542930603D);
          this.pageFooterSection1.Name = "pageFooterSection1";
          //
          // panel1
          //
          this.panel1.Docking = Telerik.Reporting.DockingStyle.Fill;
          this.panel1.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {
          this.pictureBox1});
          this.panel1.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(3.9418537198798731E-05D), Telerik.Reporting.Drawing.Unit.Inch(3.9418537198798731E-05D));
          this.panel1.Name = "panel1";
          this.panel1.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(6.2676773071289062D), Telerik.Reporting.Drawing.Unit.Inch(7.2937493324279785D));
          //
          // pictureBox1
          //
          this.pictureBox1.Docking = Telerik.Reporting.DockingStyle.Fill;
          this.pictureBox1.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(0D), Telerik.Reporting.Drawing.Unit.Inch(0D));
          this.pictureBox1.MimeType = "image/jpeg";
          this.pictureBox1.Name = "pictureBox1";
          this.pictureBox1.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(6.2676773071289062D), Telerik.Reporting.Drawing.Unit.Inch(7.2937493324279785D));
          this.pictureBox1.Sizing = Telerik.Reporting.Drawing.ImageSizeMode.Stretch;
          this.pictureBox1.Value = ((object)(resources.GetObject("pictureBox1.Value")));
          //
          // Report1
          //
          this.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {
          this.pageHeaderSection1,
          this.detail,
          this.pageFooterSection1});
          this.Name = "Report1";
          this.PageSettings.Landscape = false;
          this.PageSettings.Margins = new Telerik.Reporting.Drawing.MarginsU(Telerik.Reporting.Drawing.Unit.Inch(1D), Telerik.Reporting.Drawing.Unit.Inch(1D), Telerik.Reporting.Drawing.Unit.Inch(1D), Telerik.Reporting.Drawing.Unit.Inch(0D));
          this.PageSettings.PaperKind = System.Drawing.Printing.PaperKind.A4;
          textWatermark1.Text = "Approved";
          this.PageSettings.Watermarks.Add(textWatermark1);
          this.Style.BackgroundColor = System.Drawing.Color.White;
          styleRule1.Selectors.AddRange(new Telerik.Reporting.Drawing.ISelector[] {
          new Telerik.Reporting.Drawing.TypeSelector(typeof(Telerik.Reporting.TextItemBase)),
          new Telerik.Reporting.Drawing.TypeSelector(typeof(Telerik.Reporting.HtmlTextBox))});
          styleRule1.Style.Padding.Left = Telerik.Reporting.Drawing.Unit.Point(2D);
          styleRule1.Style.Padding.Right = Telerik.Reporting.Drawing.Unit.Point(2D);
          this.StyleSheet.AddRange(new Telerik.Reporting.Drawing.StyleRule[] {
          styleRule1});
          this.Width = Telerik.Reporting.Drawing.Unit.Inch(6.2676773071289062D);
          ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
 
      }
      #endregion
 
      private Telerik.Reporting.PageHeaderSection pageHeaderSection1;
      private Telerik.Reporting.DetailSection detail;
      private Telerik.Reporting.PageFooterSection pageFooterSection1;
      private Telerik.Reporting.Table table1;
      private Telerik.Reporting.TextBox textBox5;
      private Telerik.Reporting.TextBox textBox6;
      private Telerik.Reporting.TextBox textBox7;
      private Telerik.Reporting.TextBox textBox1;
      private Telerik.Reporting.TextBox textBox3;
      private Telerik.Reporting.TextBox textBox4;
      private Telerik.Reporting.Panel panel11;
      private Telerik.Reporting.Panel panel2;
      private Telerik.Reporting.PictureBox pictureBox2;
      private Telerik.Reporting.Panel panel1;
      private Telerik.Reporting.PictureBox pictureBox1;

Stef
Telerik team
 answered on 21 Mar 2013
3 answers
103 views
Version: Q1/2013

There seems to be a bug in Silverlight ReportViewer. The tooltip for exporting is not shown, instead debugging window shows that "ExportToolTip" is not present in "Telerik.ReportViewer.Silverlight.ReportViewerModel". I had looked in the source code and indeed this is missing.

Regards
Neils
Peter
Telerik team
 answered on 21 Mar 2013
2 answers
65 views
Version: Reporting Q1 2013 (7.0.13.220)

I've installed Telerik Reporting in a different directory than what the installer has proposed (d:\dotnettools\...). When using the "repair" option the installer comes to a certain point where it tries to update the examples and stops with a "DirectoryNotFound" exception. Obviously the installer is searching under "C:\Program Files (x86)\Telerik\Reporting Q1 2013\Examples" which indeed does not exist.

See attached screenshot.

Regards
Neils
Heiko
Top achievements
Rank 1
Iron
Veteran
 answered on 21 Mar 2013
3 answers
133 views
Im trying to pass a field as a parameter to a subreport and i'm afraid the documentation isn't helping me:

Collapse imagePassing Parameters to a SubReport

To setup parameters for a SubReport click the ellipses of the Parameters property. Each parameter consists of a Parameter Name and Parameter Value.

Click the New button to add a parameter. Assuming you have assigned the ReportSource property the Parameter Name drop down list will contain the names of parameters defined in the report. Select a Parameter Name from the combobox to set the target for this parameter. Parameter Value combobox allows you to enter value directly, create an "<Expression>" or a "<New Report Parameter>".


  • Firstly the screen capture doesn't represent what 'im seeing.
  • then I'm unsure where I should find this "Parameter's Property"
  • I have "report parameter", is that the same thing?
  • Should the referred parameters be in the subreport or the parent report?
I notice that also in the API documentation that Parameter is obsolete?
http://www.telerik.com/help/reporting/allmembers_t_telerik_reporting_subreport.html
Public property Parameters Obsolete.


Stef
Telerik team
 answered on 20 Mar 2013
1 answer
179 views
Hi,

I need to dynamically adjust the height of a group header.  Unlike other sections there doesn't seem to be a processing class for the group header. How do I go about adjusting.

Essentially I need to hide certain fields in the group header depending on whether they have data.  That works fine but the net result is that once they are hidden the group header is much too tall.  Have I missed an auto adjust setting somewhere?  

Regards

Jon
Jon
Top achievements
Rank 1
 answered on 20 Mar 2013
0 answers
165 views
Please ignore this.
Manish
Top achievements
Rank 1
 asked on 20 Mar 2013
4 answers
946 views

Hello,

In report class, i have GenerateReport mathod which returns report stream.

public Stream GenerateReport(ReportRequest reportRequest)

 

{


reportTable.DataSource = Data;

ReportProcessor

  

reportProcessor = new ReportProcessor();

  

return new MemoryStream(

 

reportProcessor.RenderReport(reportRequest.Format.ToString().ToUpper(),

 

this, new Hashtable())

 

.DocumentBytes);
}


But during reportProcessor.RenderReport mathod i am getting error that

""An error has occurred while processing Report 'Report':

Invalid URI: The format of the URI could not be determined.""

Also it is not firing reportTable_ItemDataBinding event.

In report constructor i am binding report table with event which insert cells and row/column groups dynamically.

reportTable.ItemDataBinding +=

 

new EventHandler(reportTable_ItemDataBinding);

 


Report is hosted by WCF reporting service and GenerateReport mathod is being called by WCF client. 

 

Please help. If you need specific more detail, please let me know.

Thanks,
Manish

 

Manish
Top achievements
Rank 1
 answered on 20 Mar 2013
1 answer
86 views
The sequence of actions is as follows:
1. I build a project named "MyTelerikReportLib" and using Telerik Reporting Q2 2010 I build a report and its works fine (designer and Preview tabs).
2. I generated the reference inside the bin folder (it generates two files inside the bin folder: MyTelerikReportLib.dll and MyTelerikReportLib.pdb).
3. In other page I put a Report Viewer Telerik component and inside the Report property there is a "Report Types" where I expected to find my report, but this element is empty. The result is that I can not "link" my report in the report viewer.
What I'm missing? or doing wrong?
Thanks!
David
Milen | Product Manager @DX
Telerik team
 answered on 20 Mar 2013
1 answer
55 views
I'm in win 8 and VS 2012.  When I put my reports in my asp.net application and run my app through visual studio (with or without debugging), the reports come up blank after the rendering spinning circle.  On Chrome it works fine through VS.  When I deploy my app, the report looks fine on IE though.  This just seems to be an issue inside visual studio.
Squall
Top achievements
Rank 1
 answered on 20 Mar 2013
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?