Telerik Forums
Reporting Forum
1 answer
637 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
482 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
224 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
371 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
394 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
1 answer
378 views
Is it possible to edit or remove the 'Created' date and time from a pdf report metadata?

I've looked at the Device Information Settings (http://www.telerik.com/help/reporting/device-information-settings-pdf.html) but there is no mention of the 'Created' meta data.
IvanY
Telerik team
 answered on 28 Mar 2013
0 answers
184 views
After upgrading to Q1 2013 of Reporting my parameter code does not work.  I'm getting parameter values in NeedDataSource in order to construct my report/chart datasource.  This code used to work:
private void report_NeedDataSource(object sender, EventArgs e)
{
    String siteParm = this.ReportParameters["Site"].Value.ToString().Trim();
    Int32 timespanParm = Convert.ToInt32(this.ReportParameters["TimeSpan"].Value.ToString());

After the upgrade the parameter values are not the values that I have entered in the UI, then previewing.  I tried changing the code to:
private void report_NeedDataSource(object sender, EventArgs e)
{
    Telerik.Reporting.Processing.Report report = (Telerik.Reporting.Processing.Report)sender;
    string siteParm = report.Parameters["Site"].Value.ToString();
    string timespanParm = report.Parameters["TimeSpan"].Value.ToString();


With this code the values of report.Parameters["xxxx"].Value are the new expected values, but setting them to a string variable results in:

The name 'siteParm' does not exist in the current context
The name 'timespanParm' does not exist in the current context
Why is this?

Also, with my Chart page if I try:

Telerik.Reporting.Processing.Chart chart = (Telerik.Reporting.Processing.Chart)sender;

then chart has no Parameters property!  How do I get the parameters then?

Dan
Dan
Top achievements
Rank 2
 asked on 28 Mar 2013
11 answers
187 views
Hello

We can get reports to display in the viewer and can export ok but when we attempt to print via the print button in the ReportViewer toolbar, the print dialog comes up but the "preview" is empty and nothing will print.

If we run the same in Chrome, it works fine.

Any suggestions?

We're currently on version 5.3.12.119 but I couldn't see any fixes relating to this in the Updates.

Thanks

Cheryl
Stef
Telerik team
 answered on 28 Mar 2013
4 answers
544 views
Hi all,
 I'm new with Telerik Reporting and now i get the sum of my fields " pt_id " per page with expression

=PageExec("textBox1",Sum(Fields.pt_id))

it works so good but now i want to add sum every page to the sum of next page like that

page 1:
total of " =PageExec("textBox1",Sum(Fields.pt_id)) " in page one = 100
page 2:
total of " =PageExec("textBox1",Sum(Fields.pt_id)) " in page two = 100

i want to total of page 2 will be = 200 ( 100 of page one and 100 of page two ...... ect ) not 100

i try to use

= RunningValue("Report1",Sum(Fields.pt_id))

but it works only if i write "Report1" i want to run it for every page not for report ???

i try to change "Report1" with "pageFooter" but not work - so please how can i do it ?

i'm so sorry if my English is bad but please can any one help me ?

IvanY
Telerik team
 answered on 28 Mar 2013
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?