Telerik Forums
Reporting Forum
37 answers
2.2K+ views

Hi guys,

 

at the moment we are trying to figure out if we can use the Telerik Reporting to generate receipts on a thermo printer with endless paper.
We found the ContinuousPaper setting within the PageSettings but it doesn't seems to be working as expected. We are using the latest Version of Reporting (2018 R3)

When using the ContinuousPaper everything looks fine in the preview but after printing the paper gets cut after one DINA4 page. This happens when printing on the printer and when printing to a PDF file.

The only settings we have made is setting the ContinuousPaper property and adding a lot of textboxes to the report designer.

Any idea what we are doing wrong?

Todor
Telerik team
 answered on 15 Dec 2020
2 answers
337 views

I've been through the docs at least twice and obviously I'm missing quite a bit.

 

Created two simple, identical, reports with the wizard. One with the report designer, Report1, the other in VS2019, Report2.  They are calling a stored procedure in SQL Server 2016, with a parameter.  Both preview in the designers just fine. Both reports have a parameter set...@batchid Int32 6000

Stored procedure:    select * from batches where batchid=@batchid

I've added the NeedDataSource event to the reports

Telerik.Reporting.UriReportSource uriReportSource = new Telerik.Reporting.UriReportSource();
uriReportSource.Parameters.Add(new Telerik.Reporting.Parameter("@batchid", 7929));
uriReportSource.Uri = @"nunya\Report1.trdp";
reportViewer1.reportSource = uriReportSource;

reportViewer1.RefreshReport();

 

The trdp complains it can't find a connection string. IDK why. There is one in the app.config file which the rest of the application happily uses. When the connection string is embedded, it still does NOT use the Uri parameter.

 

 

Telerik.Reporting.TypeReportSource typeReportSource = new Telerik.Reporting.TypeReportSource();
typeReportSource.Parameters.Add( new Telerik.Reporting.Parameter("@batchid", 7929));
typeReportSource.TypeName = typeof(Report2).AssemblyQualifiedName;
reportViewer.reportSource=typeReportSource;

reportViewer1.RefreshReport();

 

 

 

Here, an exception is thrown in the Report1_NeedDataSource event:.report.Parameters is empty.

Do you have a sample winforms app which uses either the northwind or adventure works databases?

 

TIA

Dave
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 12 Dec 2020
1 answer
1.9K+ views
I have a textbox with the following content: 
=Sum(LossOfDaysMen)/(Sum(LossOfDaysNotSet)+Sum(LossOfDaysMen)+Sum(LossOfDaysWomen))*100 + "%"

This is giving me numbers with way too many decimals, like '66.44295155..', i want to to have just 1 decimal. How can i do this within the textbox? I tried String.Format, but that does not work. Setting the format property on the entire textbox does not work either, due the '+ "%" at the end. 

I assume there's some function i can run but im unsure about what syntax works within the textbox.

Any ideas how to solve this?
Dimitar
Telerik team
 answered on 10 Dec 2020
1 answer
554 views
Hi,
How to remove borders inside a table when page break? (look attach file)
Dimitar
Telerik team
 answered on 09 Dec 2020
1 answer
180 views

Hello everyone,

i have a question regarding the design view of the html box. I have a tabel which i get by an SQL statment. In the view of the designer the table is correctly shown but in the preview the table is not shown, only the content.

Has the design view of the html box more possibilities to view content as the designer itself?

 

Best Regards

 

Alex

Dimitar
Telerik team
 answered on 09 Dec 2020
2 answers
385 views

Hello everyone,

i have a question regarding the border of a table.

Basically have a table which has a filter implemented. The table (not the text box) has a border.

But even if there is no content there is still a tiny black mark on the printout (see att.)

Is this on purpose?or an technical issue?

(I know that this issue can be partially resolved by using the border of the nested Textbox but there are some configaurations - Tiltet table with more rows and Boxes with different filters and only the top and last row should have a border. Using a line element could be an option but the border on the table would be a"nicer" solution.)

Dimitar
Telerik team
 answered on 09 Dec 2020
12 answers
728 views
Hi,
 I am trying to create a report with crosstab.The Crosstab contains three row  groups.Third group is under the second group and  second group under the first.then I want to break the crosstab after each first group.How can I break the crosstab.

Thanks In Advance....

Rajisha
Neli
Telerik team
 answered on 07 Dec 2020
5 answers
952 views

Our Images are on Azure Blob Storage and it needs a special SAS token to access (https://docs.microsoft.com/en-us/azure/storage/common/storage-dotnet-shared-access-signature-part-1).

We generate the Url on runtime and return it to the report viewer with valid SAS (proper Url), and sometimes the images render and other times it just gives 403.

An error has occurred while processing PictureBox 'Images':
Invalid image data.
------------- InnerException -------------
The remote server returned an error: (403) Forbidden.

Even if the images render in the viewer, when we go try to generate a PDF, it always throws the above error.

Harsimrat

 

Christine
Top achievements
Rank 1
 answered on 03 Dec 2020
3 answers
227 views
When WPF Report Viewer inside other control (e.g. TabControl) all events (PrintBegin, PrintEnd, ExportBegin, ExportEnd etc.) fires twice, because Loaded event fires twice and you call AttachModelEventHandlers method also twice.
Neli
Telerik team
 answered on 03 Dec 2020
11 answers
681 views

Hi,

I'm having a heck of a time.  I have a trdp created with the stand alone designer.

I am NOT using the UI for parameters from the trdp(i.e. When you open the report in the report designer, all the report params are set visable = false.

The report works great when it initially loads. After the first rendering, I, though my own ui above the report, can change parameters and hit a button to refresh the report. However, none of the new parameter values are being reflect in the report.  I've tried in vane to catch the NeedDataSource event. 

There must be some secret sauce I am not pouring on my code. 

Bottom line, I would surely like an example that shows how to pass single parameters was well as and perhaps more importantly multivalue parms.

There's a lot of stuff on the net talking about passing parms,  but very little that are Blazor centric.

Please let me know if I need to explain anything further.

In the meantime, I'll go back to pulling my hair out

I've attached the razor, razor.cs and trdp files.

I working on a Blazer Server environment.

Thanks … Ed

.

 

Neli
Telerik team
 answered on 03 Dec 2020
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?