Telerik Forums
Reporting Forum
2 answers
228 views
Hi everyone,

I'm using MS Enterprise Library 4.1 DAAB and I'm trying to set the DataSource for my Report during Runtime in my WebApp.

I had found some old articles referencing

ReportViewer1.Report.DataSource = ...

However this does not seem to work with the latest release of Telerik Reports Q2 2009

Am I missing a reference or are there code examples of setting the DataSource during Runtime for a ReportViewer1.Report in my WebForm ?

Many thanks
Frédéric Martin
Top achievements
Rank 1
 answered on 13 Jul 2009
2 answers
180 views
Good Morning.

I am working on a report that needs to show detail about a group of data and then have a group footer that counts the occurences, sums up the total number of days and also shows the average number of days for the group. Everything seems to be working and I am getting the correct values but I can not format the average number of days to show 1.55 instead of 1.578901234.

I have entered {0:N2} in the Format field for that text box's properties and that seems to have no effect.

I am also having a problem when exporting the report to Excel it is showing all of the number fields as text in the spreadsheet, even though I am using {CDbl(Fields.[DAYS_BETWEEN])} as my Value.

I would appreciate any help that you can give me on these problems. I am using Telerik Reporting Q1 2009.

Tim
Tim
Top achievements
Rank 1
 answered on 13 Jul 2009
0 answers
139 views
I need a feature that i'm not sure yet exists.
We have a service that every fixed amount of time examine a table and, reading the data, execute one of our reports using your engine.
The previous solution was based on Crystal Report and we saved the computed report in .rpt format, so lately we used our web interface to show the report with Crystal Report Viewer and let the user decide out to export the report itself (pdf, csv, and so on)

With your report engine, i haven't find a solution to this problem because it seems that the report viewer accept only an in memory report elaboration, am i wrong?

temporally now i'm saving the report directly in PDF format and when an user want to see a report i transmit the file but as i described below, that's not what we want.

Is possible to store a computed report in a format that we can use later to load in your viewer?

I can think about serialize the Report class in a file and later read it back and load it in the viewer but i'm not sure it's possible, can you help me?
thanks
Paolo Carminati
Top achievements
Rank 1
 asked on 13 Jul 2009
1 answer
130 views
Hello All,

I am using RadEditor default mode. Whenever select text and choose styling from dropdown (Paragraph,Heading1, Heading2..), it is not applied to selected text.

Instead html tag is placed around the selected text in RadEditor.

Also, I am extracting dropdown value from xml files. Below is the xml file I am using for binding dropdown:

 

 

<? xml version="1.0" encoding="utf-8" ?>

<root> 

<para title="&lt;p style='font-family:Geneva,Arial,Helvetica,sans-serif; font-size:12px; color:#666666; line-height:19px;'&gt; Normal &lt;/p&gt;" tag="&lt; p &gt;" />

<para title="&lt;h1 style='font-family:Geneva,Arial,Helvetica,sans-serif; font-size:35px; color: #00adec;'&gt; Heading1 &lt;/h1&gt;" tag="&lt; h1 &gt;" />

<para title="&lt;h2 style='font-family:Geneva,Arial,Helvetica,sans-serif; font-size:18px; color: #FF6699; line-height:22px;'&gt; Heading2 &lt;/h2&gt;" tag="&lt; h2 &gt;" />

<para title="&lt;h3 style='font-family:Geneva,Arial,Helvetica,sans-serif; font-size:25px; color:#00adec;'&gt; Heading3 &lt;/h3&gt;" tag="&lt; h3 &gt;" />

<para title="&lt;h4 style='font-family:Geneva,Arial,Helvetica,sans-serif; font-size:18px; font-weight:100; color:#999999; line-height:22px;'&gt; Heading4 &lt;/h4&gt;" tag="&lt; h4 &gt;" />
</root>

 

 



Please provide solution for this.
Rumen
Telerik team
 answered on 13 Jul 2009
1 answer
90 views
I recently installed Telerik Reporting Q2 2009 but the project templates shown in the webcasts are not showing up. I looked in C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\ProjectTemplates\VisualBasic\Reporting but did not find any telerik templates.  The item templates, however, did install.

I tried uninstalling Q2 and installing Q1 and got the same result.

Is there a place where I can download the templates and install them manually?
Steve
Telerik team
 answered on 13 Jul 2009
1 answer
60 views
Dear Sir,

  When i made my Telerik report Q2 2008 , i am getting following error i run my report.

"
Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "Invoice.resources" was correctly embedded or linked into assembly "App_Code.17e1ife1" at compile time, or that all the satellite assemblies required are loadable and fully signed.
"

On my report there is textbox which have multiple text, when i add multiline text in textbox , a entry of textbox and value gets added in above resource file. when i run application i get above kindly help me.
Steve
Telerik team
 answered on 13 Jul 2009
4 answers
451 views
Hello,

I have created a new report using the CrossTab Wizard in the Q2 release.  It's great!  However, I'd like to now add a column to the report to display a percentage based on subtotals in the crosstab.

I've tried using the ItemDataBound event of the Detail section, Crosstab and TextBox processing elements using the examples that I've found on this website and forum:

Forum Post Percent Example
http://www.telerik.com/community/forums/reporting/telerik-reporting/use-report-footer-fields-in-group-field-calculation.aspx

Custom Aggregate Function
http://www.telerik.com/support/kb/reporting/general/implementing-and-using-custom-aggregate-functions.aspx

Combining Values from Documentation
http://www.telerik.com/help/reporting/faq-combine-values2.html

When I try to use the example fromt he documentation, the DataObject.Rawdata property is null so I can't access the DataRowView object in the detail_ItemDataBound event.  I suspect it's because of the way the crosstab control is rendered but I spent several hours yesterday playing around with different combinations in the different event handlers but haven't had much luck.

Can anyone point me in the right direction?  I can provide code examples if necessary.

Thanks in advance!
Brian

Steve
Telerik team
 answered on 10 Jul 2009
1 answer
234 views
Hello,
We are using Telrik reporting 2008 and we want to make it bilingual in French and English.
We have report classes in App_code folder and report viewer on an aspx page in the root of the directory.
We have created the resx files.Like for AllOrders.cs ,we created AllOrders.resx and AllOrders.fr-FR.resx by following telrik support and added the namespaces threading and globlization in the page containing report viewer.
We added required localization  code in the  same viewer page.
But when we run it we get always this error.

Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "AllOrders.resources" was correctly embedded or linked into assembly


Can you please guide us how make it bilinguial in our case, the steps please?
Steve
Telerik team
 answered on 10 Jul 2009
1 answer
173 views
Hi

I know, there are already a lot of article in this forum, that covers this topic.
I read a lot of them, and the documentation and watched a few videos ... i don't get this to work!
Please help.

Scenario:
MasterReport:
public partial class repRegisterConfirmMaster : Telerik.Reporting.Report  
  {  
    private int iBenutzerId = -1;  
    public int PARAMETER_BenutzerId  
    {  
      get { return iBenutzerId; }  
      set { iBenutzerId = value; }  
    }  
 
    private int iOrderId = -1;  
    public int PARAMETER_OrderId  
    {  
      get { return iOrderId; }  
      set { iOrderId = value; }  
    }  
 
    private sbyte iSpracheId = -1;  
    public sbyte PARAMETER_SpracheId  
    {  
      get { return iSpracheId; }  
      set { iSpracheId = value; }  
    }  
 
    public repRegisterConfirmMaster()  
    {  
      InitializeComponent();  
    }  
 
    public void loadReportData()  
    {  
        this.dsBenutzerKundeAdresseKontaktTableAdapter1.Fill(this.dsBenutzerKundeAdresseKontakt.dsBenutzerKundeAdresseKontaktTable, iBenutzerId);  
    } 

I have in the dataset "@BenutzerId" included in the query and this is used when filled the DataTable. Works fine.

The Subreport just looks the same:
public partial class subRegisterConfirmModul : Telerik.Reporting.Report     
  {     
    private int iOrderId = -1;     
    public int PARAMETER_OrderId     
    {     
      get { return iOrderId; }     
      set { iOrderId = value; }     
    }     
    
    private sbyte iSpracheId = -1;     
    public sbyte PARAMETER_SpracheId     
    {     
      get { return iSpracheId; }     
      set { iSpracheId = value; }     
    }     
    
    public subRegisterConfirmModul()     
    {     
      InitializeComponent();     
    }     
    
    public void loadReportData()     
    {     
      this.dsKundenModulByOrderIdTableAdapter1.Fill(this.dsKundenModulByOrderId.dsKundenModulByOrderIdTable, (byte) iSpracheId, iOrderId);  
    }    
 

Now, from an aspx-page, i call the report, set the values of the master-report and calling the loadReportData() of the master.
...
        
ReportViewer1.Report = new repRegisterConfirmMaster();  
        (ReportViewer1.Report as repRegisterConfirmMaster).PARAMETER_BenutzerId = 77;  
        (ReportViewer1.Report as repRegisterConfirmMaster).PARAMETER_OrderId = 94;  
        (ReportViewer1.Report as repRegisterConfirmMaster).PARAMETER_SpracheId = S.SpracheId;  
        (ReportViewer1.Report as repRegisterConfirmMaster).loadReportData(); 

The report shows up, but only the report-header (filled thru master) is filled with datas. The detail section (filled thru subreport) generates an error or the whole subreport is invisible.
I try these things as well:
- using NeedDataSource in master (subreport_needDataSource) and/or subreport
- ItemDataBinding in master (detail_ItemdataBinding)
- Calling SubReport.loadReportData() from within the Master.loadReportData(), with setting the appropriate values of the subreport first
- Every combination af the aboved mentioned, and a few helpless tries more
- I even recoded the whole thing, trying to work with the integrated Report.Parameters as described in the help documentation ... no luck: designing-reports-master-detail.html
- I get it once to work: I hardcoded the correct values of "iOrderId" and "iSpracheId" in the subreport. So i think passing the parameters at the right time, in the right place, the right way, then it should work.
I'm sure, there has to be a simple way to do this.

TIA
Markus
Markus
Top achievements
Rank 1
 answered on 10 Jul 2009
1 answer
294 views
Hi there,

Currently im trying on your reporting tool. I have few questions to ask.

Description:

  1.  Type of project           :  web site application
  2.  Used language           :  (C#)

3.    OS                             :  xp pro service pack 3

       Tools/product            :   Telerik reporting version 2009.2 701 (Jul 1, 2009) 

        Web Viewer version  : 3.0.9.430

 

 

 

i would to know how to call user defined function from mssql to be displayed in a report. Pls provide me an example/documentation regarding this issue. One more thing, im using automatic ui parameterized feature to filter data ( which prompt user input ), i want to use more than one parameter to filter data. When i just tried to add more parameter it failed to work but working well with one parameter. How to address this problem?    Since im working with web application, when i want run the project thru localhost, the page is empty (no data displayed) but i could preview the report. How to solve this portion.

Thank You

Your guidance is much appreciated

Regards

Pat

Steve
Telerik team
 answered on 09 Jul 2009
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?