Telerik Forums
Reporting Forum
6 answers
247 views

Hi,
Is there a way to remove empty reports from a ReportBook ?

Thank you

 

Before R1 of telerik reporting, I was doing something like this :

 

If Not TryCast(myRptBook.Reports(4), ReportLibrary1.Report1) Is Nothing Then : If Not DirectCast(myRptBook.Reports(4), ReportLibrary1.Report1).haveData Then myRptBook.Reports.Remove(myRptBook.Reports(4))
End If

With 

Private Sub detail_ItemDataBound(sender As Object, e As EventArgs) Handles detail.ItemDataBound
    Me.haveData = True
End Sub
perico
Top achievements
Rank 1
Iron
 answered on 26 Apr 2018
0 answers
79 views

EmployeeName     Size     ManuCode

Name1                      1          ABC
                                  2          DEF

Name2                       3         GHI

I have grouped the above table with using EmployeeName.
How can I get the below output. I want to act the EmplyeeName as table header.

Name1

Size     ManuCode
1          ABC
2          DEF

 

Name2

Size     ManuCode
3         GHI

 


Harsha
Top achievements
Rank 1
 asked on 26 Apr 2018
1 answer
1.1K+ views

Hi,

When I hit the "print" button on reportviewer I need to call a procedure which writes the date of printig into the database.

I cant seem to find an event of sorts that does it. Anyone have any solution for this?

 

Thanks in advance.

Todor
Telerik team
 answered on 24 Apr 2018
0 answers
182 views
RDLC Reports Loading too slow even to fetch a single row from Mssql
rajasekar
Top achievements
Rank 1
 asked on 24 Apr 2018
1 answer
140 views
I have created a telerik report which uses Norwegian characters in the report as well as in the csv data sources. But in the Report designer when I go to the preview tab I can see that some special characters that are from the csv data source are missing. Characters in question is 'ØÆÅ'. All the special characters in the report (hard coded) are shown correctly, only the characters from the csv file that is not shown. Hence I went through the Configure CSV data Source and I found out that when parsing the CSV , there also these characters are missing (Shown in the attachment). How can this be fixed or does special characters are not supported for CSV files?
Todor
Telerik team
 answered on 23 Apr 2018
2 answers
687 views

I have 4 textboxes that correspond to a multi-select dropdown parameter.  The space for the textboxes is a set width on my report.  Depending on which options you choose from the parameter dropdown, the other textboxes visibility will toggle on and off.  I have also set the width of the text boxes to change depending on how many are selected (if 2 options are selected, each is 1/2 of the given space.  If 3 are selected, each will be 1/3 of the space.

My problem now is I need to set the location of the textboxes depending on what is chosen.  If the first and third text box are shown and the second and fourth are hidden, the first and third will each be half of the space.  BUT I would need the third box to scoot over against the first.  Now, it stays at its original location and creates whitespace, causing the 3rd box to go onto a second page.

box1 box2 box3 box4

box1_____box3____

Is there a way to make box 3 move to the left up against box1 if box 2 is hidden?

 

Thanks,

Phillip

Katia
Telerik team
 answered on 23 Apr 2018
2 answers
322 views

I am trying to move a project from the Visual Studio Report Designer to the standalone Report Designer. Most of my reports are inherited from Telerik.Reporting.Report, so I want to be able to keep the custom code in each class, but to load the report from a TRDP file.

The class definition and constructor of my classes looks something like:

public partial class MyReport : Telerik.Reporting.Report
{
    public MyReport()
    {
        InitializeComponent();
        // ... class specific code ...
    }
}

 

I would like to be able to initialize the report with a trdp file to look something like the following:

public class MyReport : Telerik.Reporting.Report
{
    public MyReport()
    {
        LoadReport("c:\SomeFolder\MyReport.tdrp");
        // or
        LoadReport(Resources.MyReport);
        // ... class specific code ...
    }
}

 

Any ideas or am I completely doing it wrong?

 

 

Richard
Top achievements
Rank 1
 answered on 20 Apr 2018
1 answer
227 views

Hi,

I am trying to export the reporting dataset to CSV. The built-in export to CSV function does not fit my needs as my use case is for a CSV export of all data used to plot the line-graph that the user is currently looking at. In order to do this, I have created a function on the report which outputs the  and I then extract the SQL query, add the user selected parameters and then re-execute the statement against the DB.

 

I have several questions about this -

  1. This feels like a huge overhead given that the dataset has already been pulled from the database but I cannot find any way to access the used by the report. Can I access the reports ?
  2. I am using the HTML5 report viewer and cannot find any way to access the InstanceReportSource, this means I can't access the parameters sent to the report and I need to get the parameters from the ReportViewer instead. This is problematic as the parameters aren't loaded until after the user clicks Preview; our reports automatically load and 50% of the time this will be the CSV data that the user wants. As a I have added a function that will return the default values used upon the reports first run but again, thIs feels like a huge overhead and gives us maintainability issues etc. Is there a way to access the InstanceReportSource so I can get the parameters used by the report?
  3. I am open to suggestions that will make this easier/more maintainable, is there a better way to solve this problem? 

Thanks

Paul
Top achievements
Rank 1
 answered on 19 Apr 2018
0 answers
86 views

     Hi there,

I want to use the same connectionString as i am using it on local running application as i want to use the same connectionString after deployment..

Danish
Top achievements
Rank 1
 asked on 19 Apr 2018
0 answers
213 views

Hi

When try to export the report from the server i get this error

:'An error has occurred while processing Table 'table1
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not
found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote

The problem when i set the connection string from code its working but the data source can not read the connection string from app.config with the same connection, There any permission or setting to set on the server to access app.confg by report dll???

 

Note: in my local it working without any problem, also i using asp.net core and the report access the connection from app.config

 

So if the answer check the connection string its working all not the connection same the application and the application working with the same connection.

I think the problem the report dll can not reach to app.config.

 

 

abdullah
Top achievements
Rank 1
 asked on 18 Apr 2018
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?