Telerik Forums
Reporting Forum
0 answers
147 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
568 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
230 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
189 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
297 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
265 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
182 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
257 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
197 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
3 answers
269 views
I didn't believe it myself until I started messing around with it. I created a report with a subreport and some code behind that builds the subreport dynamically. However, I don't believe that is the issue. I have Adobe 8 Standard installed on my computer with all the updates and when I ran the report during testing, everything looked great. We started running it for another client, and then the problems started. Some of the text was there on the screen, but it was white and it didn't appear. I could select it and copy it into Notepad and verify that the test did indeed exist.

The text that decides not to show is random, it is usually in the header. If I open the same PDF with Adobe 7 Reader and Adobe 8 Reader, there are no problems...it appears only to be with Adobe 8 Standard. The Adobe 8 Standard problem appears to be only when opening the PDF through a web browser. If I save or print the PDF from the web browser, it will appear just fine in the printout (and sometimes correct itself immediately on the screen) or I can open it up with Adobe 8 Standard after downloading it and it looks just fine. It only appears to be when opening through the web browser.

I can send screenshots and the PDF along if necessary, I just need to know where to submit them. All of our other reports seem to be working just fine from what we can tell, it only appears to be this one report that is an issue and only in this one circumstance. I'm running it through the forums here because I wanted to make sure there wasn't anything that I was doing wrong in the setup that's causing it to render incorrectly in some instances.

Thanks,
Adam
Steve
Telerik team
 answered on 14 May 2010
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?