Telerik Forums
Reporting Forum
1 answer
144 views
Hi,
I try to undestrand telerik Reporting
I install Telerik_Reporting_2010_1_10_423_dev in VS2010 and I try to follow "TelerikReporting-LearningGuide.pdf"
in 3° exaple: Displaying Reports in a Viewer, when I try to run the project, my winform that contain the report load the interface, search the record in db but when finish I get this error:
"An error has occured while processing Report.
Unable connect to database. please verify that your connection string is valid; in case you use a connection string from the application configuration file,make sure the name is correct and the connection string setting are presente in the configuration file of your application"
when I use the preview in telerik reporting after create the report with wizard I see the record of my db
somebody have some suggestions?
thanks

 

Peter
Telerik team
 answered on 18 May 2010
0 answers
188 views

Hi,


I want to change the visibility of a group section at runtime based on an 'if' condition. Once the visibility set to true/false at runtime, it is not changing the visibility status. So I tried to change the height of the group section to 0 to make it hide. But it is not changing the height. I have tried it after the 'InitializeComponent()' and also in itemdatabinding and itemdatabound events. So how can I do it??


Regeesh Joseph
Top achievements
Rank 1
 asked on 18 May 2010
3 answers
708 views
I have a report that looks as follows in the detail section, with the X's being the equivalent of a single line "bar chart".

Sales             XXXXXXXXXXXXXXXXX     75%
Research      XXXXXX                            20%
IT                   X                                      5%


The report is already done and in production except for the "x's", which the customer has now requested.  I looked at charting which I had used for something similar when it first came out and that solution no longer works, and the data binding seems quite inefficient using  needdatasource for each instance for numbers I already have in the detail section

Is there a way to use conditional formatting to control the width of a textbox based off something like txtBar.Width = Fields.Pct x 2 ?

Joel
Top achievements
Rank 2
 answered on 17 May 2010
1 answer
298 views
Hello everyone,

I'm facing a problem with telerik reportviewer. I am adding a reportviewer to an ascx UserControl like so:

<telerik:ReportViewer ID="rpvIssues" runat="server" Width="100%" Height="100%">  
</telerik:ReportViewer> 

and I have a report named test.cs that only containts a simple textbox in the header section and another textbox in the detail section. Both values were hardcoded for testing purposes because I was facing this problem with a much more complex report. But for the sake of easyness I setup this example for you:

this is the a part of my teste.designer.cs auto-generated code regarding the above mentioned textboxes definition:
            //   
            // textBox1  
            //   
            this.textBox1.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(1.4000000953674316, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0.4999997615814209, Telerik.Reporting.Drawing.UnitType.Cm));  
            this.textBox1.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1.9999997615814209, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0.60000008344650269, Telerik.Reporting.Drawing.UnitType.Cm));  
            this.textBox1.Value = "DETAIL SAMPLE TEXT";  
            //   
            // textBox2  
            //   
            this.textBox2.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(3.2999999523162842, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(1.2000000476837158, Telerik.Reporting.Drawing.UnitType.Cm));  
            this.textBox2.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(2.0000002384185791, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0.59999990463256836, Telerik.Reporting.Drawing.UnitType.Cm));  
            this.textBox2.Value = "TITLE SAMPLE TEXT"; 

Then, on the code-behind of my ascx control I setup my reportviewer like so:

        protected void Page_Load(object sender, EventArgs e)  
        {  
            teste t = new teste();  
            rpvIssues.Report = t;  
        } 
Being "teste" my report class.

Then I put my usercontrol inside an aspx page and when I launch the page using Web Development Server from MS Visual Studio 2008 all I get is an empty reportviewer. However, if I try to print the "blank" report, it prints everything as it should!! Both textboxes are printed correctly.

If I place a reportviewer directly on an aspx page then the reports are correctly rendered....
Anything I'm missing here when using a reportviewer inside an usercontrol?
Chavdar
Telerik team
 answered on 17 May 2010
3 answers
235 views
Hello,


I'm trying to create a document map with the same kind of grouping as in the report book demo: http://demos.telerik.com/reporting/report-book/demo.aspx.
I have three groups, which are shown in the attached groups.png file.
The documentation says "nested groups will create nested nodes in the tree". I've placed bookmarks on every group and on the detail section, but they are shown with no grouping at all. Did I miss something?

Thanks.
Carlos
Top achievements
Rank 2
 answered on 17 May 2010
1 answer
395 views
Whenever a word does not fit in its entirety it's not shown at all. Is there any way to get around this so as much as possible of the text in the TextBox is shown?
Peter
Telerik team
 answered on 17 May 2010
1 answer
333 views
Hello!
I have a report that contains a grouping section. I have a calculated field in the details section with the following expression: 
= IIF(Fields.VatTermID=3, Fields.Amount,0), so for every record that has Fields.VatTermID=3 the textbox displays Fields.Amount and for the other records that textbox remains 0. That works fine. However I want to make a total of those fields in the group footer. I tried 
= SUM(IIF(Fields.VatTermID=3, Fields.Amount,0)), but it doesn't work. What expression should I use to get the total?
Peter
Telerik team
 answered on 17 May 2010
2 answers
233 views

Hello,

 

Have a question about the maximum with of a report.

I’m exporting a Radgrid to a report with help of the RadGridReportingLite project.

 

The export works nice!

 

The only trouble is controlling the size of the report.

I would like to fit all the columns of the radgrid into one row in the report.

When the screen is maximized not all columns fit on the row in the report.  When I downsize the screen enough the all the columns fit into one row on the report.

 

The property FitToPageSize makes no difference

 

Anny suggestion on how to force the repport to show all the columns on one row.

 

Kind regards,

 

Tim van Rooijen

 

PS.

Sorry about my english, I’m dutch




Garrison
Top achievements
Rank 1
 answered on 15 May 2010
1 answer
287 views
Does Telerik Reporting work with Visual Web Developer Express 2010? If not, are there plans for the two to work together? If they are are supposed to work together, is there some special trick to make it happen because there are no Telerik menus or options available at all?
Peter
Telerik team
 answered on 15 May 2010
2 answers
253 views
Hi everyone am new in this  greate  forum .. =)  .. am from chile  and   i  work with telerik controls and reports .
i write  because  need a little help..
i create a report     its fills whit a store procedure  . ...  now . in the report   i have a  textbox formated  currency  .. whit  2 decimals ($222,00)
 but  in some cases  i dont want that  , i just need   a  0 decimals  ($222)  ..        i try passing  a value from store procedure and set the format value like this        format : =Fields.[format ]   . .. in store procedure  'format '  is   {0:C2}       but  dont work.

there is some way to set dynamically  the  format value     ? .. 

thanks    !
 
Danilo Lopez
Top achievements
Rank 1
 answered on 14 May 2010
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?