Telerik Forums
Reporting Forum
6 answers
649 views
Hi, I have a reportviewer with a couple of reports but I need to export them in a single worksheet, is that posible, or what's the right approach. Thanks
Mads
Telerik team
 answered on 23 Mar 2021
3 answers
559 views

Hi, 

I've poured over numerous documents for many hours and can not find a resolution.

Inside the TRDX file there is a SQL statement, it is hard coded to 'WHERE ProjectId = 1234'

When I create a report parameter and add to the UriReportSource, it never works. 

 

The SqlDataSource has this parameter

<Parameters>
        <SqlDataSourceParameter DbType="Int32" Name="@ProjectId" />
</Parameters>

At the bottom of the .trdx file, it has this parameter.

<ReportParameters>
    <ReportParameter Name="ProjectId" Type="Integer" Visible="True">
      <Value>
        <String>= Parameters.ProjectId.Value</String>
      </Value>
    </ReportParameter>
  </ReportParameters>

 

C# on reporting view page, 

    Telerik.Reporting.Parameter p = new Telerik.Reporting.Parameter();
    p.Name = "ProjectId";
    p.Value = 1234;
    uriReportSource.Parameters.Add(p);
    rpvCustom.ReportSource = uriReportSource;

Any help is greatly appreciated, my client is creating these reports with the standalone designer, but we can only get results with hard coding.

 

 

thelostleaf
Top achievements
Rank 2
 answered on 19 Mar 2021
1 answer
170 views

I have two fields that go into a DocumentMapText so they will appear in the document map of the report viewer.

 

 

When I put them on one line, it is too long and jagged looking.  I've tried separating them with "<br/>" but that just renders in a span.

Is there anyway of doing this?

 

 Thanks.

Dimitar
Telerik team
 answered on 18 Mar 2021
5 answers
446 views

Current project uses the Telerik Report library.

I've been working with the Documents.SpreadsheetStream and Documents.Spreadsheet methods to by-pass the report templates. Finding my design plan has run into a design issue when exporting directly to excel. In the Templates can create a much richer view for the end-user.

However the customer wants to export directly to Excel with out having to view the report then click on the export button. (See the attach jpg file for screen shot of the current interface). I think I will add both options for the end user to select view or export,  just incase they rather not have the file. Or if another customer prefers the view...

My question, Can I run the process to run the Telerik report template I created and pass all parameter that will cause the export to Excel directly?

 

herb
Top achievements
Rank 1
Veteran
Iron
 answered on 18 Mar 2021
27 answers
2.2K+ views
Hi

In the web report viewer, I'd ideally like to limit the user to being to export to PDF, and remove .tiff and .mht export functionality. Ideally as well there'd be no drop down list with the formats in - just an export button.

I suspect I'm going to have to write this functionality myself (as I can remove the export stuff from the report viewer, and I can generate the PDF from a raw Report object into a byte array, and hence send it to the client) - but before I implement that I wanted to check if it was built in.

Thanks

Tom    
Neli
Telerik team
 answered on 18 Mar 2021
2 answers
1.0K+ views

As you can see in the screen shot, I have a table with values, but the one property is a collection of values.

I need to summarize the values in the nested collection in the "Payments" column of the report. If I try to reference the field "PaymentAmount" I get an error "The expression contain object 'PaymentAmount' that is not defined in the current context".

I understand I could add another table inside the field, but that doesn't work well in my case.

Here is my Inline Json Datasource:

{
    "value": [
        {
            "DocNumber": "952",
            "PaymentLinks": [
                {
                    "PaymentAmount": 1000.00
                }
            ]
        },
        {
            "DocNumber": "953",
            "PaymentLinks": []
        },
        {
            "DocNumber": "954",
            "PaymentLinks": [
                {
                    "PaymentAmount": 11.00
                },
                {
                    "PaymentAmount": 12.00
                },
                {
                    "PaymentAmount": 10.00
                }
            ]
        }
    ]
}

 

Tursunkhuja
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 17 Mar 2021
3 answers
498 views
Good day, I am designing a 4 x 6 Label for a Thermal label printer. I have a problem however trying to print this label via the label printer. All the fields get Top left aligned in the print preview. The focus Area for the printer is in the center. How do I get my report centered so that it will fit properly on to the label?
Todor
Telerik team
 answered on 17 Mar 2021
1 answer
303 views

One of the most recent report updates from business side requires me to change report layout to accommodate the following output(picture attached).

 

But since HtmlTextBox does not support embedding of images and PictureBox has to be fixed statically on a page I do not see a way to make the picture box to line up with a text content that is aligned to the right.

Is this possible to achieve by some other means?
 

Mads
Telerik team
 answered on 15 Mar 2021
2 answers
729 views

Hello everyone,

Please, I need a little help with Report Designer. I have 2 fields(Name and CompanyID) and I want to concatenate them. Some rows from column Name are populated with company name and other are blank. All rows from CompanyID are populated with guids. I tried something like {Fields.Name}{Fields.CompanyId}, but all rows which are populated with the company name, also added guids. I want all the rows that are populated with the company name not to add guids, too.

Thanks in Advance!

Marcel
Top achievements
Rank 1
Iron
 answered on 15 Mar 2021
3 answers
407 views

Hello,

I created an invoice template with the standalone report designer and I am able to programmatically export a pdf file.

Is it possible to disable copy / paste functionality in the created pdf file programmatically.

Best regards,

Alex

Alexander
Top achievements
Rank 1
 answered on 12 Mar 2021
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?