Telerik Forums
Reporting Forum
1 answer
423 views
Greetings

I am currently testing out your reporting product on a trial basis.  One of my requirements is to be able to change the Page Header dynamically (i.e. Company Logo , etc.).  This is a multi-tenet application and I store the company logos in a database.  I can place the logo in the business object I bind to but that see to require that I add the logo to each item in the list of my business object - not very efficient.

I have been trying to figure out a way to pass in the logo as a byte[] parameter of program to the page header but to no avail.  Any suggestions?
Stef
Telerik team
 answered on 24 Jan 2013
1 answer
138 views
I have a table in the report and a subreport inside that table.I need to hide the line that contains the subreport when the subreport has no data.I tried many ways but they all do not work.I use VS 2008, Terelikreport Q1 spq 2011. Net.One of the ways I've tried.
private void subReport1_ItemDataBound(object sender, EventArgs e)
        {
            Processing.SubReport subReport = (Processing.SubReport)sender;
        Processing.Report detailReport = (Processing.Report)subReport.InnerReport;
            Processing.Report mainReport = (Processing.Report)subReport.Report;
            mainReport.Visible = detailReport._filteredCount > 0;
        }

Stef
Telerik team
 answered on 24 Jan 2013
5 answers
454 views
I have a report that contains a number of fields, and a table control. My data source is a list of "user" data objects, each of which in turn contains a list of "phone number" objects.

I create the report programmatically, and then assign my user list to its DataSource property. So far so good. Now what is the correct way to get each user's phone number list into the table? Should this be done within the detail section itemdatabound event handler? This is the approach I tried initially, and I'm having some problems with it, so I wanted to confirm best practices before proceeding further.
Stef
Telerik team
 answered on 24 Jan 2013
3 answers
485 views
I am using a report generated via the report wizard to print lables. The layout is 8 by 8 (lables).

No matter how much tweaking of widths, margins etc I do when I save to pdf the lables only print 4 across the page. It actually prints a few rows with 4 labels and then prints less on additional rows.

Anybody any idea how to make this thing work? Seems quite basic....
Steve
Telerik team
 answered on 24 Jan 2013
4 answers
208 views
Hi, i have a group that has a sum() calculated on a field. The one group data takes two page i want display page total in each page. 
How do i setup my sum function in a simple way ?
Sac
Top achievements
Rank 1
 answered on 24 Jan 2013
1 answer
333 views
I want to hide picturebox if image is not found on url. By default it is showing error message in red. How do I do that?
Steve
Telerik team
 answered on 24 Jan 2013
7 answers
1.2K+ views
I've got some Traditional Chinese characters stored in a NTEXT field in our Sql Server 2000 machine.  When I pull it from the db and stick it into a field in a report, it looks fine in the Web Report Viewer.  When I export to PDF, the characters are just the empty boxes.  I have the Asian fonts installed on my machine, so I'm suspecting it has something to do with the Encoding parameter of the Render function for the ReportProcessor.  If that is true, what encoding parameter do I pass in?

(In case you can't guess, I'm new to generating unicode stuff ;) )
Steve
Telerik team
 answered on 23 Jan 2013
1 answer
188 views
I've read through all the posts I can find about how to hide a row dynamically and it seems I'm in the minority since I'm using the designer to build my reports.

How would I configure it so that a row is hidden if a particular value is null via the report designer?

In my case, each record is represented by three rows, the third being a pictureBox.  If a particular field is null, I need to hide the picturebox row.

Thanks in advance!
Stef
Telerik team
 answered on 23 Jan 2013
6 answers
445 views
Ever since I upgraded to the latest version of Reporting the SqlDataSource will not pass parameter values to my stored proc.  I'm using Silverlight.  It ALWAYS says procedure or function expects parameter...  Even if I hard code the value it will not pass it!

It worked fine in the previous version.

ObjectDataSource DOES pass parameters, but a stored proc will not work.
Bob
Top achievements
Rank 1
 answered on 22 Jan 2013
1 answer
107 views
I have a report that is being generated programatically and saving the results to a PDF file which then gets sent to the client. I have a panel that the location is set to X: 0px Y: 73px. However, when it renders on the screen the left is offset by what looks to be the width of the panel directly above it. Here is the XML (Serialized from the programmatic report definition) for the panel that is being offset (Email Address 2) and the panel directly above it (Email Address). I have also attached a screenshot of how it is being rendered. Can anyone see anything in the definition that might be causing this?

<Panel Size="0px, 19px" Location="0px, 54px" Name="pnlE75877F0-849B-4730-90EA-6ED68B904D87">
                     <Style BackgroundColor="Green" />
                     <Items>
                        <TextBox Value="Email Address:" Size="97px, 16px" Location="0px, 0px" />
                        <TextBox Value="=[Person.EmailAddress]" Size="0px, 16px" Location="97px, 0px">
                           <Style>
                              <Font Bold="True" />
                           </Style>
                        </TextBox>
                     </Items>
                  </Panel>
                  <Panel Size="0px, 19px" Location="0px, 73px" Name="pnlA675AD23-718F-4220-B957-C6F250780ECA">
                     <Style BackgroundColor="Green" />
                     <Items>
                        <TextBox Value="Email Address 2:" Size="109px, 16px" Location="0px, 0px" />
                        <TextBox Value="=[Person.EmailAddress2]" Size="0px, 16px" Location="109px, 0px">
                           <Style>
                              <Font Bold="True" />
                           </Style>
                        </TextBox>
                     </Items>
                  </Panel>

Thanks!
Steve
Telerik team
 answered on 22 Jan 2013
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?