Telerik Forums
Reporting Forum
1 answer
251 views
I have this picturebox object picLogo in design mode (pbdesign.jpg)
its Size property is 312px, 67px, its Sizing is set to ScaleProportional

this is how I load a small bmp (24x26) into the picturebox in the code behind:

var bm = new System.Drawing.Bitmap("\\Logos\Image.bmp");
picLogo.Value = bm;

The result can be seen at pbrunning.jpg

As you can see the small bmp is LEFT justified in the space provided for the picturebox object.

is there any way to RIGHT justify this small bmp?
Stef
Telerik team
 answered on 20 Sep 2013
3 answers
164 views

The first time I opened VS, I was able to see my custom business objects in the Configure Object Data Source dialog.  However, now I'm not able to see any of the classes in the project in the Available data source types tab.  I've re-installed several times and have made sure to build the project when changes are made and before running any of the wizards.  I've added the following simple class which also does not show up in the list:

 

 

[System.ComponentModel.

DataObject(true)]

 

 

 

public class Car

 

 

 

 

 

 

{

 

 

public string Make { get; set; }

 

 

 

public string Model { get; set; }

 

 

 

public List<Car> GetCars()

 

 

{

 

 

return new List<Car>();

 

 

}

 

}



Is there a known issue with this version of Telerik Reporting related to the ability to view custom business objects?  I'm using Telerik Reporting version 4.2.10.1221.
Nasko
Telerik team
 answered on 20 Sep 2013
3 answers
434 views
Hello Guys,
  I would like to access the group total value, to calculate percentages of the children elements of the group.
  In the screenshot, I would like to be able to retrieve the value 110 or 95, so I can calculate the percentages like 47/110, 24/110, 5/110, etc. for each of the rows.

  I have already tried accesing the column total using EXEC function, but it will give me the total (110 + 95), instead of the individual total.
  I tried also accesing to the specific cell textbox, but is "out of scope"

So, which would be the specific action to retrieve this value?

Thanks!
Nasko
Telerik team
 answered on 20 Sep 2013
1 answer
231 views
Hi, i have a problem if i want to set subreport parameters and bindings at the same time from master report. Subreport parameters i set from designer, selecting "ReportSource" and than "Edit parameters". Subreport bindings I also set from designer (Poperty path: ReportSource, Expression: = GetReportSource(Fields.NestedClass) ). GetReportSource is method in master report .cs file:

public static ReportSource GetReportSource(object dataObject)
{
      var report = new TextReport();
      report.DataSource = dataObject;
      return new InstanceReportSource { ReportDocument = report };
}

When i fire my report i get exception "An error has occurred while processing the report. Processing canceled. Check the InnerException for more information. Invalid value of report parameter 'Title'." Parameter has null value (if i set in subreport "Allow Nulls" for parameter) report is showing.

If I remove parameter, data in subreport is well binded, and report shows properly. Also if I remove bindings report is showing properly and parameter has value.
Nasko
Telerik team
 answered on 20 Sep 2013
16 answers
364 views
I am getting an " InnerException for exception". It works on my development machine perfectly but when I deploy it, it get this error. Its simple report with no database connection. I have all the correct dlls deployed and the web.config is correct. I have done a fiddler on it and gives me a internal 500 error. The silverlight has other wcf calls with out any issues. I do have wcf logging turn on but I cannot see any errors. Can someone help me ?
Alex
Top achievements
Rank 1
 answered on 20 Sep 2013
1 answer
155 views
I am setting an Expando object as the data source for an ObjectDataSource and binding my Report to this.

It does not seem to work.

Can I bind a Telerik Report to an ExpandoObject ?

Thanks,

Stef
Telerik team
 answered on 20 Sep 2013
2 answers
232 views
I have a single page report right now. I want to add a report parameter that I can pass in true/false. If the parameter is false, then nothing changes and the report prints as a single page. If the parameter is true, I want the report two print out two pages (the exact same thing from page 1, just twice). 

What do I need to do to get the page to print twice? I'm using the web reporting so setting the print copies to 2 is not an option for me and it has to be done at the report level. 
Dustin
Top achievements
Rank 1
 answered on 19 Sep 2013
2 answers
125 views
Hello,

I'm trying to localize fields from database to display different strings depending on the value. What I have is:
- example of the localized caption:   
Me.ColorNameTextBox.Value = My.Resources.MyProjectResources.ColorName
- or with data:   
Me.ColorValueTextBox.Value = "=IIf(Fields.Color =0, ""Blue"", IIf(Fields.Color=1,""Red"", ""Black""))"
What I would like to have is for ColorValueTextBox to have the localized values depending on the Fields.Color.
How can that be accomplished?

Jasna
Top achievements
Rank 1
 answered on 19 Sep 2013
5 answers
181 views
I'm new to Telerik Reporting and I think that it looks like a great product. However I am stumped as how to achieve something that to me sounds like something trivial.
I have an array of coordinates, a class with two properties; X and Y, and want to create a graph that displays these as a smooth line. I create the graph and bind to the array but I have no clue as how to specify that it should use the properties X and Y to place the line.

Right now I have this in my series and it doesn't work at all. I've also tried just =Fields.X
X =Fields.HeadGraph.Polynom.CalculatedPoints[i].X
Y =Fields.HeadGraph.Polynom.CalculatedPoints[i].Y


I feel that must be missing something trivial and any help that can get me forward is greatly appreciated.

BR,
Mats
Stef
Telerik team
 answered on 19 Sep 2013
2 answers
779 views
Hello,

I’m using Telerik Standalone Report Designer and wonder how to add a watermark, e.g. “Draft”, on each page of a report.
In the documentation there is only shown how to do it programatically but not how to do it with the standalone designer.
Hope you will help me.

Thank you
Wolfgang
Wolfgang
Top achievements
Rank 1
 answered on 18 Sep 2013
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?