Hi there
I'm trying to print a report with some data from our system on it. The report should be printer as a label. The label has a width of 102mm and a height of 102mm. I'm using this code to print the label:
01.
IReportDocument repDocList =
new
AddrLabel();
02.
03.
// set printer settings
04.
PrinterSettings printSet =
new
PrinterSettings();
05.
printSet.Copies = 1;
06.
printSet.PrinterName = LabelPrinterName;
07.
08.
// create print controller
09.
PrintController printCtrl =
new
StandardPrintController();
10.
11.
// create report processor
12.
ReportProcessor repProc =
new
ReportProcessor();
13.
repProc.PrintController = printCtrl;
14.
15.
InstanceReportSource repSrc =
new
InstanceReportSource();
16.
repSrc.ReportDocument = repDocList;
17.
18.
// print report
19.
repProc.PrintReport(repSrc, printSet);
The report contains text and image. I attached two images. One image is the expected report how it should be printed on the label. We printed that manually on windows photo gallery application to test if our printer is able to print images properly. The second image is how the telerik report is printed. As you can see it doesn't print the image properly (only black & white). It also prints the report on two pages and moves it down and to the right.
I'm wondering if it's possible to print a report on a label and if yes: how?
We're using a TSC TC310 label printer.
Best Regards,
Roman
Hello,
I have a solution that contains multiple .net core 2.1 projects.
My main goal is to generate reports from within the same solution so I either need to reference a .net core 2.1 datamodel project that has all my data contexts. The problem right now is that because all the telerik reporting services and library projects are all still running .net 4.6.1 framework when I try to reference my datamodel project I'd get a bunch of reference errors.
Would someone point me in the right direction to get this working?
Thanks
Hi,
Currently i am working with the Telerik standalone report designer to generate a report. The report consists of a crosstab table which is populated by a stored procedure. One of the parameters for the stored procedure is a column name (string) which the user should be able to choose from a list of options.
What i am trying to do is populate the list of column names (strings) of which the user can choose from with a csv datasource. The list is actually a TextBox for which the DataSource is set. The column names are shown, but when the Preview button is clicked on the report gives an error:
"An error has occurred while processing Table 'table1':
Failed to convert parameter value from a Object[] to a String.
-------------------InnerException------------------------
Object must implement IConvertible."
Because i want to set everything in the designer itself and do not want to use c# code how can i do this?
When adding the 'services.AddMvc(options => { options.Filters.Add(new AutoValidateAntiforgeryTokenAttribute()); })', I'me getting the following error:
"Error registering the viewer with the service."
Without this option all works fine. I've found the https://localhost:44364/api/reports/clients request returns 400 (Bad Request) error code. It happens even I've added the __requestverificationtoken request header.
The test project can be find here https://drive.google.com/file/d/1hxY64mVx_c0zMYt-9oB3KG2NbPUEugsb/view?usp=sharing
Please, use the link "https://localhost:44364/api/reports/index" to load the reports page.
I'm using the Telerik.ReportViewer.Wpf.ReportViewer in my project.
We have had this installed for several years now and occasionally upgrade the dll files to keep up with the new releases. 13.0.19.222 is the release that I am upgrading to. Initially everything looked great. The report viewer is build, loaded and presented in a Rad Window. When I present it everything looks great. I return to my options dialog and click preview/print and the program throws an error suggesting that the PageScrollViewerSizeChanged property is null.
Something has changed in how the Report Viewer is behaving with this release.
Has anyone experienced this issue.
I am getting an error of 'format of the initialization string does not conform to specification starting at index 0' for one of two subreports on my Telerik report. The report works without issue in the report designer, but when using the report in a VS project I get the above error.
I am having to make the connections dynamic to Access database files as that is what the parent application currently uses (an old deployed desktop application), and the database file is a project file for the user and is not always the same file to connect to.
The issue is that the main report connects and gets the data fine, and so does one of the subreports, but the other subreport results in the above error. I am using the report parameter method of setting the connection string. I have checked to ensure both subreports are setup the same way in regards to the database connection being bound to the parameter, and the main report is passing this data to both identically.
I am at a loss as to what is going on and any help would be greatly appreciated.
Thanks,
Chris
Hello Telerik Team
I am Using Standalone Report designer.
i want to set limit of two images in one row, it there is more than 2 images it should show in new line.
I am using list to show image side by side. But the problem is if there is more that 3 or 4 images it is showing in new page.
Normally it should show next image down side but i have rotate the layout of the List, So it is showing side by side
Please check Attached PDF for the Result.
Hi,
I accidentally posted this to the main report forum. Sorry for the duplicate. Anyhow …
I am using asp.net core and we have dev and production environments set up on different machines.
How can I pass a connection string that is appropriate for the given environment to the .trdf report? I've tried everything I can think of.
There was a long winded article with what seemed to be a very complicated way of doing something that should be simple.
(https://www.telerik.com/support/kb/reporting/details/changing-the-connection-string-dynamically-according-to-runtime-data).
All I want is to read the appsettings.json file, pull the correct connection string from there and pass it to the .trdf at runtime.
My kingdom for a simple example!
Thanks ... Ed