Telerik Forums
Reporting Forum
1 answer
184 views
Hi I have created my report with the stand alone report designer. When I preview it in the report designer it works just fine. But when I try and load it on an aspx page I get errors on the page (See attached ) where ever I have a SQL connection. Is the connection string in the trdx file? Or am I supposed to define that someplace else?

Telerik.Reporting.UriReportSource uriReportSource = new Telerik.Reporting.UriReportSource();
      string reportpath = System.Web.HttpContext.Current.Server.MapPath("~") + "/trdx/EAM_Report.trdx";
      uriReportSource.Uri = reportpath;
      ReportViewer1.ReportSource = uriReportSource;

Thanks
IvanY
Telerik team
 answered on 01 Apr 2013
1 answer
134 views
using "object Data Source", object not only have properties, but useful methods too..
(i do not want user functions!!)

InnerBoundaries is a public property
=Fields.InnerBoundaries.Count
 
=> works fine
 
Boundaries is a public method
=Fields.Boundaries("Inner").Count
 
=> incorrect usage of Fields object

this would be fine
=Methods.Boundaries("Inner").Count

Is it possible to use a Field fo a method like a MethodNode ?
IvanY
Telerik team
 answered on 01 Apr 2013
1 answer
174 views
I am creating a new report (first one in this web site) and can't seem to get the details to display in the report.  The viewer displays correctly but empty in Interactive View.  If I switch to Print Preview, I see my page headers and page footer but no detail records.  I have checked the dataview before assigning it to the datasource and it has 10 records so I am at a loss why it won't bind the details.  I get no error on the report.

I am running the report in asp.net 2.0. I added Telerik to the web.config. The detail section has a lot of fields on it which appears to be displaying close to what I need in the preview mode (I'll play with it once I can actually see some data!)

What am I missing??!?!

Here is the code to set up the report from my asp.net page and class library:
Library.Quote_Report _report = new Library.Quote_Report();
Telerik.Reporting.ObjectDataSource objectDataSource = new Telerik.Reporting.ObjectDataSource;
objectDataSource.DataSource = rptDV;
_report.DataSource = objectDataSource;
pnlTReport.Controls.Add(Globals.SetupReportViewer(_report));
 
public static Telerik.ReportViewer.WebForms.ReportViewer SetupReportViewer(IReportDocument report)
{
Telerik.Reporting.InstanceReportSource _instanceReportSource = new InstanceReportSource();
_instanceReportSource.ReportDocument = report;
Telerik.ReportViewer.WebForms.ReportViewer _reportViewer = new Telerik.ReportViewer.WebForms.ReportViewer();
_reportViewer.ID = "tlrReportViewer";
_reportViewer.Width = Unit.Percentage(100);
_reportViewer.Height = Unit.Pixel(500);
_reportViewer.ReportSource = _instanceReportSource;
 
return _reportViewer;
}
Koren
Top achievements
Rank 1
 answered on 31 Mar 2013
1 answer
219 views
Hello Telerik,
I want to provide a report with Custom Grouping in a crosstab. The parameter is a dropdownlist with availablevalues containing Text (DisplayMember) and Value (ValueMember) fields.
For this to work I have to bind the grouping and the field to the Value, and the Text to the header Textbox. I tried doing it through code but I couldn't get the selected value of the dropdownlist parameter, and the direct binding to the Parameters.GroupBy.Value won't work either.

Is there a way to achieve this in a Xtab ?

Thanks
Stef
Telerik team
 answered on 29 Mar 2013
1 answer
667 views
Hello,
 i wonder if there is some property / parameter that I can make a list of subreport horiontally and not vertically as is standard

Thanks,
 Lucas Signori
Stef
Telerik team
 answered on 29 Mar 2013
3 answers
512 views
Hi All,

I'm using Telerik's ReportViewer in a WPF app to show some reports.
The PrintReportCommand on the ReportViewerModel nicely shows the standard print dialog for printing.

This is the behavior I'm looking for, however, I need to know the result of this standard print dialog.
Is there any way to get to that?

I've already tried:
  • To get the result by manually calling "reportProcessor.PrintReport(this.ReportSource, null);" 
    As the documentation states, this also shows the standard print dialog, but again, I found no way of accessing the dialog result.
  • To find any event on ReportProcessor or InstanceReportSource indicating that the report was printed
     


Thanks for any help.
Regards,
Koen
Chavdar
Telerik team
 answered on 29 Mar 2013
1 answer
2.0K+ views
Hello,

is it possible to encode special characters like TAB key, ENTER key or CTRL+some key combination to barcode control in report, which uses font CODE128 ? I haven't found any relevant example. As far as I know, for example 3 of 9 barcode uses special character for TAB key like $I

Example can be also in Code39Extended barcode format. I've tried it, but Value = "$I" is still represented as text not TAB...

Please help me to solve this issue.

Best regards

Vasssek
Chavdar
Telerik team
 answered on 29 Mar 2013
2 answers
238 views
I had some existing reports which were displaying properly in HTML, but after upgrading I had problems with boxes overlapping. These boxes would display overlapped in the HTML view, but display fine in the non-HTML view. 

So I tried creating a new report in a test project, and in this new project everything worked: adjacent boxes do not overlap. So, I copy and pasted some text boxes from my existing report to this test report, and the overlapping problem is still there. This is great news, because now we have a clear cut example.

Could somebody tell me why the bottom boxes (from my existing report) are overlapping in the HTML view, while the top boxes are displaying OK?


It appears that this forum will not accept zipped-up project files, but I can copy-and-paste the entire designer generated code.

namespace ReportingSandbox
{
    partial class AdjacentTextBoxes
    {
        #region Component Designer generated code
        /// <summary>
        /// Required method for telerik Reporting designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            Telerik.Reporting.Drawing.StyleRule styleRule1 = new Telerik.Reporting.Drawing.StyleRule();
            this.pageHeaderSection1 = new Telerik.Reporting.PageHeaderSection();
            this.topLeftBox = new Telerik.Reporting.TextBox();
            this.textBox1 = new Telerik.Reporting.TextBox();
            this.textBox2 = new Telerik.Reporting.TextBox();
            this.textBox3 = new Telerik.Reporting.TextBox();
            this.detail = new Telerik.Reporting.DetailSection();
            this.pageFooterSection1 = new Telerik.Reporting.PageFooterSection();
            this.overlappingBottomRight = new Telerik.Reporting.TextBox();
            this.overlappingTopRight = new Telerik.Reporting.TextBox();
            this.overlappingBottomLeft = new Telerik.Reporting.TextBox();
            this.overlappingTopLeft = new Telerik.Reporting.TextBox();
            ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
            //
            // pageHeaderSection1
            //
            this.pageHeaderSection1.Height = Telerik.Reporting.Drawing.Unit.Cm(3D);
            this.pageHeaderSection1.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {
            this.topLeftBox,
            this.textBox1,
            this.textBox2,
            this.textBox3});
            this.pageHeaderSection1.Name = "pageHeaderSection1";
            //
            // topLeftBox
            //
            this.topLeftBox.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Cm(3D), Telerik.Reporting.Drawing.Unit.Cm(1.0997999906539917D));
            this.topLeftBox.Name = "topLeftBox";
            this.topLeftBox.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Cm(4.1997990608215332D), Telerik.Reporting.Drawing.Unit.Cm(0.70000004768371582D));
            this.topLeftBox.Style.BorderStyle.Default = Telerik.Reporting.Drawing.BorderType.Solid;
            this.topLeftBox.Style.BorderStyle.Left = Telerik.Reporting.Drawing.BorderType.Solid;
            this.topLeftBox.Value = "Top Left Box";
            //
            // textBox1
            //
            this.textBox1.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Cm(7.1999998092651367D), Telerik.Reporting.Drawing.Unit.Cm(1.0997999906539917D));
            this.textBox1.Name = "textBox1";
            this.textBox1.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Cm(3D), Telerik.Reporting.Drawing.Unit.Cm(0.70000004768371582D));
            this.textBox1.Style.BorderStyle.Default = Telerik.Reporting.Drawing.BorderType.Solid;
            this.textBox1.Style.BorderStyle.Left = Telerik.Reporting.Drawing.BorderType.Solid;
            this.textBox1.Value = "Top Right box";
            //
            // textBox2
            //
            this.textBox2.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Cm(3D), Telerik.Reporting.Drawing.Unit.Cm(1.7999999523162842D));
            this.textBox2.Name = "textBox2";
            this.textBox2.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Cm(4.1997990608215332D), Telerik.Reporting.Drawing.Unit.Cm(0.70000004768371582D));
            this.textBox2.Style.BorderStyle.Default = Telerik.Reporting.Drawing.BorderType.Solid;
            this.textBox2.Style.BorderStyle.Left = Telerik.Reporting.Drawing.BorderType.Solid;
            this.textBox2.Value = "Bottom Left box";
            //
            // textBox3
            //
            this.textBox3.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Cm(7.1999998092651367D), Telerik.Reporting.Drawing.Unit.Cm(1.7999999523162842D));
            this.textBox3.Name = "textBox3";
            this.textBox3.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Cm(3D), Telerik.Reporting.Drawing.Unit.Cm(0.70000004768371582D));
            this.textBox3.Style.BorderStyle.Default = Telerik.Reporting.Drawing.BorderType.Solid;
            this.textBox3.Style.BorderStyle.Left = Telerik.Reporting.Drawing.BorderType.Solid;
            this.textBox3.Value = "Bottom Right Box";
            //
            // detail
            //
            this.detail.Height = Telerik.Reporting.Drawing.Unit.Cm(3D);
            this.detail.Name = "detail";
            //
            // pageFooterSection1
            //
            this.pageFooterSection1.Height = Telerik.Reporting.Drawing.Unit.Cm(3D);
            this.pageFooterSection1.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {
            this.overlappingBottomRight,
            this.overlappingTopRight,
            this.overlappingBottomLeft,
            this.overlappingTopLeft});
            this.pageFooterSection1.Name = "pageFooterSection1";
            //
            // overlappingBottomRight
            //
            this.overlappingBottomRight.CanGrow = false;
            this.overlappingBottomRight.CanShrink = true;
            this.overlappingBottomRight.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Cm(2.4727180004119873D), Telerik.Reporting.Drawing.Unit.Cm(1.2002004384994507D));
            this.overlappingBottomRight.Multiline = false;
            this.overlappingBottomRight.Name = "overlappingBottomRight";
            this.overlappingBottomRight.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Cm(10.949999809265137D), Telerik.Reporting.Drawing.Unit.Cm(0.89999955892562866D));
            this.overlappingBottomRight.Style.BorderColor.Default = System.Drawing.Color.DarkGray;
            this.overlappingBottomRight.Style.BorderStyle.Default = Telerik.Reporting.Drawing.BorderType.Solid;
            this.overlappingBottomRight.Style.Padding.Bottom = Telerik.Reporting.Drawing.Unit.Point(3D);
            this.overlappingBottomRight.Style.Padding.Left = Telerik.Reporting.Drawing.Unit.Point(3D);
            this.overlappingBottomRight.Style.Padding.Right = Telerik.Reporting.Drawing.Unit.Point(3D);
            this.overlappingBottomRight.Style.Padding.Top = Telerik.Reporting.Drawing.Unit.Point(3D);
            this.overlappingBottomRight.TextWrap = true;
            this.overlappingBottomRight.Value = "The average number of plays per player";
            //
            // overlappingTopRight
            //
            this.overlappingTopRight.CanGrow = true;
            this.overlappingTopRight.CanShrink = false;
            this.overlappingTopRight.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Cm(2.4666581153869629D), Telerik.Reporting.Drawing.Unit.Cm(0.39999979734420776D));
            this.overlappingTopRight.Multiline = true;
            this.overlappingTopRight.Name = "overlappingTopRight";
            this.overlappingTopRight.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Cm(10.952517509460449D), Telerik.Reporting.Drawing.Unit.Cm(0.80000042915344238D));
            this.overlappingTopRight.Style.BorderColor.Default = System.Drawing.Color.DarkGray;
            this.overlappingTopRight.Style.BorderStyle.Default = Telerik.Reporting.Drawing.BorderType.Solid;
            this.overlappingTopRight.Style.Padding.Bottom = Telerik.Reporting.Drawing.Unit.Point(3D);
            this.overlappingTopRight.Style.Padding.Left = Telerik.Reporting.Drawing.Unit.Point(3D);
            this.overlappingTopRight.Style.Padding.Right = Telerik.Reporting.Drawing.Unit.Point(3D);
            this.overlappingTopRight.Style.Padding.Top = Telerik.Reporting.Drawing.Unit.Point(3D);
            this.overlappingTopRight.TextWrap = true;
            this.overlappingTopRight.Value = "The number of media players the file was played on during that day";
            //
            // overlappingBottomLeft
            //
            this.overlappingBottomLeft.CanGrow = false;
            this.overlappingBottomLeft.CanShrink = true;
            this.overlappingBottomLeft.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Cm(0.800000011920929D), Telerik.Reporting.Drawing.Unit.Cm(1.2002004384994507D));
            this.overlappingBottomLeft.Multiline = false;
            this.overlappingBottomLeft.Name = "overlappingBottomLeft";
            this.overlappingBottomLeft.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Cm(1.6725180149078369D), Telerik.Reporting.Drawing.Unit.Cm(0.89979928731918335D));
            this.overlappingBottomLeft.Style.BorderColor.Default = System.Drawing.Color.DarkGray;
            this.overlappingBottomLeft.Style.BorderStyle.Default = Telerik.Reporting.Drawing.BorderType.Solid;
            this.overlappingBottomLeft.Style.Padding.Bottom = Telerik.Reporting.Drawing.Unit.Point(3D);
            this.overlappingBottomLeft.Style.Padding.Left = Telerik.Reporting.Drawing.Unit.Point(3D);
            this.overlappingBottomLeft.Style.Padding.Right = Telerik.Reporting.Drawing.Unit.Point(3D);
            this.overlappingBottomLeft.Style.Padding.Top = Telerik.Reporting.Drawing.Unit.Point(3D);
            this.overlappingBottomLeft.TextWrap = true;
            this.overlappingBottomLeft.Value = "Plays:";
            //
            // overlappingTopLeft
            //
            this.overlappingTopLeft.CanGrow = true;
            this.overlappingTopLeft.CanShrink = false;
            this.overlappingTopLeft.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Cm(0.800000011920929D), Telerik.Reporting.Drawing.Unit.Cm(0.39999979734420776D));
            this.overlappingTopLeft.Multiline = true;
            this.overlappingTopLeft.Name = "overlappingTopLeft";
            this.overlappingTopLeft.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Cm(1.666458010673523D), Telerik.Reporting.Drawing.Unit.Cm(0.80000042915344238D));
            this.overlappingTopLeft.Style.BorderColor.Default = System.Drawing.Color.DarkGray;
            this.overlappingTopLeft.Style.BorderStyle.Default = Telerik.Reporting.Drawing.BorderType.Solid;
            this.overlappingTopLeft.Style.Padding.Bottom = Telerik.Reporting.Drawing.Unit.Point(3D);
            this.overlappingTopLeft.Style.Padding.Left = Telerik.Reporting.Drawing.Unit.Point(3D);
            this.overlappingTopLeft.Style.Padding.Right = Telerik.Reporting.Drawing.Unit.Point(3D);
            this.overlappingTopLeft.Style.Padding.Top = Telerik.Reporting.Drawing.Unit.Point(3D);
            this.overlappingTopLeft.TextWrap = true;
            this.overlappingTopLeft.Value = "Players:";
            //
            // AdjacentTextBoxes
            //
            this.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {
            this.pageHeaderSection1,
            this.detail,
            this.pageFooterSection1});
            this.Name = "AdjacentTextBoxes";
            this.PageSettings.Margins = new Telerik.Reporting.Drawing.MarginsU(Telerik.Reporting.Drawing.Unit.Mm(25.399999618530273D), Telerik.Reporting.Drawing.Unit.Mm(25.399999618530273D), Telerik.Reporting.Drawing.Unit.Mm(25.399999618530273D), Telerik.Reporting.Drawing.Unit.Mm(25.399999618530273D));
            this.PageSettings.PaperKind = System.Drawing.Printing.PaperKind.A4;
            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.Cm(15D);
            ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
 
        }
        #endregion
 
        private Telerik.Reporting.PageHeaderSection pageHeaderSection1;
        private Telerik.Reporting.DetailSection detail;
        private Telerik.Reporting.PageFooterSection pageFooterSection1;
        private Telerik.Reporting.TextBox topLeftBox;
        private Telerik.Reporting.TextBox textBox1;
        private Telerik.Reporting.TextBox textBox2;
        private Telerik.Reporting.TextBox textBox3;
        private Telerik.Reporting.TextBox overlappingBottomRight;
        private Telerik.Reporting.TextBox overlappingTopRight;
        private Telerik.Reporting.TextBox overlappingBottomLeft;
        private Telerik.Reporting.TextBox overlappingTopLeft;
    }
}

IvanY
Telerik team
 answered on 28 Mar 2013
1 answer
389 views
Hi ,

I want to show a textbox in pdf report so that user can enter text in it and get it printed. I don't want to allow the user to save that pdf.
I have searched alot but I didn't find any solution yet. Can any one please help.

Thanks!
IvanY
Telerik team
 answered on 28 Mar 2013
3 answers
415 views
Hello,

I've a question on the line spacing management.
Let's say my detail section consists in a texbox in a table. Is it possible to reduce the space between lines in the final report. I mean, there seems to be always a minimum space between each text line. I've tried to bind the height property of the detail section to a smaller value, but without any success.

Greg
Stef
Telerik team
 answered on 28 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?