Telerik Forums
Reporting Forum
1 answer
261 views
Hey,

I have a report with a table and a chart for each column in this table. All these objects use the same Objectdatasource set from the designer. The problem is that the code behind this datasource is called once foreach object. In my case this is 5 times. 

The data returned is always the same so why is the code called once for each object that uses this datasource ?

How can i solve this problem?

if have added a screenshot of the report

Thanks in advance
Sodi We
Peter
Telerik team
 answered on 11 Jan 2013
1 answer
52 views
Hi,

I am using Q3 2012 Report Viewer control. How can I prevent running report automatically on load in Sliverlight? So I want clicking on Preview button only let the report to run on load. I have one parameter to report and I have made it's AutoRefresh to false already.

Thanks
Jaspreet.
Stef
Telerik team
 answered on 11 Jan 2013
0 answers
80 views
Hi , 
i have a report including one detail table . haw can i set the number of line per page ? 

Thank you . 
Sofiene
Top achievements
Rank 1
 asked on 11 Jan 2013
10 answers
400 views

var _rCli = new ReportServiceClient();
var dic = new  NameValueDictionary();
dic.Add("ShoppingListId", 10);

NameValueDictionary dev = new  NameValueDictionary();
dev.Add("OutputFormat", "JPEG");
     
_rCli.RenderAsync("IMAGE", "Test.ModulesReports", dev, dic);

Hi,

Im trying to pass parameter from silverlight application to my report like in code above. I definied ReportParameter at designer but its never updating to value which im passing. 


thanks for any advice.
 
Squall
Top achievements
Rank 1
 answered on 11 Jan 2013
2 answers
209 views
installation of trial worked fine for other components but the reporting will not install, goes through the process right to the end before rolling itself back.

snippet of install log
------------
MSI (s) (44:B8) [08:42:55:713]: Running as a service.
MSI (s) (44:B8) [08:42:55:715]: Hello, I'm your 32bit Elevated custom action server.
MSI (s) (44!4C) [08:42:55:758]: Creating MSIHANDLE (448) of type 790531 for thread 2892
SFXCA: Extracting custom action to temporary directory: C:\Windows\Installer\MSI8BA8.tmp-\
MSI (s) (44!4C) [08:42:55:759]: Closing MSIHANDLE (448) of type 790531 for thread 2892
MSI (s) (44!4C) [08:42:55:811]: Creating MSIHANDLE (449) of type 790531 for thread 2892
SFXCA: Binding to CLR version v2.0.50727
MSI (s) (44!4C) [08:42:55:811]: Closing MSIHANDLE (449) of type 790531 for thread 2892
MSI (s) (44!4C) [08:42:56:113]: Creating MSIHANDLE (450) of type 790531 for thread 2892
Calling custom action TelerikReportingCA!TelerikReporting.TelerikReportingCA.ConfigSamples
MSI (s) (44!4C) [08:42:56:116]: Closing MSIHANDLE (450) of type 790531 for thread 2892
MSI (s) (44!4C) [08:42:56:136]: Creating MSIHANDLE (451) of type 790531 for thread 2892
ConfigSamples: ReportingInstallDir = 
MSI (s) (44!4C) [08:42:56:138]: Closing MSIHANDLE (451) of type 790531 for thread 2892
MSI (s) (44!4C) [08:42:56:140]: Creating MSIHANDLE (452) of type 790531 for thread 2892
Exception thrown by custom action:
MSI (s) (44!4C) [08:42:56:140]: Closing MSIHANDLE (452) of type 790531 for thread 2892
MSI (s) (44!4C) [08:42:56:143]: Creating MSIHANDLE (453) of type 790531 for thread 2892
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
   at System.ThrowHelper.ThrowKeyNotFoundException()
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at Microsoft.Deployment.WindowsInstaller.CustomActionData.get_Item(String key)
   at TelerikReporting.TelerikReportingCA.GetServerInfo(IDictionary`2 session)
   at TelerikReporting.TelerikReportingCA.ConfigSamples(Session session)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture)
   at Microsoft.Deployment.WindowsInstaller.CustomActionProxy.InvokeCustomAction(Int32 sessionHandle, String entryPoint, IntPtr remotingDelegatePtr)
MSI (s) (44!4C) [08:42:56:144]: Closing MSIHANDLE (453) of type 790531 for thread 2892
CustomAction ConfigureSamples returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
MSI (s) (44:E0) [08:42:56:606]: Closing MSIHANDLE (447) of type 790536 for thread 4208
Action ended 8:42:57: InstallFinalize. Return value 3.
--------------
Steve
Telerik team
 answered on 10 Jan 2013
1 answer
439 views
I have my Details section set out as a list rather than as columns.
Meaning it looks like:
Label1   Field1
Label2   Field2
...
rather than
Label1   Label2 ...
Field1    Field2 ...

I have conditional formatting to hide "rows", which works.  Aliases down to AddendaType will hide if they are null.  I tested by putting textBox19 in.  The problem is that the next Details section is still where it would be if those fields printed, leaving a 3 row gap.

I know I remember seeing something about the Header Section not resizing, so I assume my Detail Section is not "shrinking", just the boxes within the Details section shift.

What is the best practice to simulate what I'm trying to do?

Screen shot included of detail page because the data is sensitive.

I was able to get close to what I want, but not in a pretty way, so I'm still hoping someone else has something better.
Clipboard02 shows highly squished row fields, which will expand when data is present, but it doesn't have the proper spacing between rows if multiple rows have data.  I also added a grouping to get a small gap between consecutive Detail sections.
Which leads to question 2:  I wanted to set the group2Footer to visible only if it is not the last Detail section in a Group. So I want to compare = RowNumber() <> Count(Fields.PossibleMatch) , but this doesn't work because the Count returns 1.  Placing the Count in group1Footer gives me the count I want.  Can I get that Count where I want it, or is there another way of saying "If I'm not the last row, then show me"?
Steve
Telerik team
 answered on 10 Jan 2013
1 answer
87 views
Hello Telerik,
in previous control's version it's possible to move on next (previous) page just scrolling down (up), after the upgrade I've to click on next/prev to achieve the same goal..it's possible to have the old behaviour with the new controls?

Thanks a lot
Paolo
Steve
Telerik team
 answered on 10 Jan 2013
2 answers
107 views
I am trying to have one report viewer page where a user gets all reports from my software.  I have many different types of reports that need to be available in that report viewer based on querystring parameters that I pass into the page.  I'm having some difficulty finding documentation that is clear and concise about how I need to approach this.

First, there are potentially several reports that could be needed for any given topic but all related to a given entity, say a specific manifest.  Each of these reports is setup to work with SQLDatasource that is parameterized to expect an @manifest parameter to be used in the where clause of my SQL select statement.  I am first visiting a page in my website that allows the user to specify which reports they wish to produce for a specific manifest.  Let's say there are three possible reports for a specific type of manifest.  They may pick any combination of the three they wish to see produced.

I'm taking their input and passing that as a querystring parameter to allow me, on the report viewer page, to determine which reports to produce for that specific entity; i.e., manifest.

My problem arises from not knowing what I need to do to supply the @manifest parameter to each of the reports that will get included in a report book..

Do I first specify the @manifest parameter for each report and then include that report in a report book?  If so, how do I do that using the instancereportsource type syntax?  Do I have to set up a report parameter separate from the parameter in the sqldatasource and somehow link that to the sqldatasource parameter first?  

What I'm trying to accomplish is to modify the sql select statement for each report to reflect the correct entity in the sqldatasource parameter and then add that report to the reportbook, then move to the next report, modify its select statement then include it in the report book, and repeat this in a loop until all the required reports have been included in the report book at which point I show the finished report book to the user.

Hopefully, I've been clear about what I need to accomplish.  I would greatly appreciate some help figuring out how to proceed as I'm pretty new to the Telerik Reporting product and as usual am under some fairly intense time pressure to "get stuff done".
Stef
Telerik team
 answered on 10 Jan 2013
1 answer
472 views
Is it possible to change a ReportParameter within the NeedsDataSource event so that it can be used as a global variable.

I'm maintaining some stupid code and it has the same ugly check on the majority of the TableGroup Filters and what I would like to do is simply set a ReportParamerter at runtime so that value can be reused in an Expression or passed to UserFunctions.


/* Ugly and long check here */

becomes

= Parameters.ShowLeftCol.Value = =True


I can update the ReportParameter value, but the instance of it within the rendering engine is not updated.    Any suggestions

The logic to show the Column resides in configuration data within a different datasource then the one bound to the table.

Any ideas or suggestions would be most appreciative.
Thanks   
Peter
Telerik team
 answered on 10 Jan 2013
1 answer
170 views
I am working on a suite of reports driven from a touch kiosk
the user enters her or his customer number as well as some other parameters and touches buttons to produce the report
if the parameter(s) they enter produces no data Telerik shows an error message which only makes sense to a programmer
is there an empty data source error message property?
Steve
Telerik team
 answered on 10 Jan 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?