Telerik Forums
Reporting Forum
9 answers
803 views
Hi,

I am trying to Print directly without any printer window.

I am using the following code:
-------------------------------------------------------------------------------------------------------------------
                     'Instance the report with all the information already populated
                    Dim IdCardReportToPrint As New IdCardReport

                    'Set the Printer Setting
                    Dim CustomPrinterSettings As New System.Drawing.Printing.PrinterSettings
                    CustomPrinterSettings.PrinterName = "IDCardPrinter" '

                   'Print Directly
                    Dim ReportPrint As New Telerik.Reporting.Processing.ReportProcessor
                    ReportPrint.PrintReport(IdCardReportToPrint , CustomPrinterSettings)
-------------------------------------------------------------------------------------------------------------------

It worked fine in the developer machine, it prints directly without any windows. Ones we deployed in the web server we are getting the following error:

ERROR ***********************************

08/27/2009 14:00:06
Type : System.InvalidOperationException
Message : Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
Source : System.Windows.Forms

END ERROR****************************************

I think what is happening is when we send to print it try to print in the server. Does this function print in the local machine or in the server?

We also use this article to print but it show the printers windows of the explorer and we dont want it. Any ideas?

Best Regards.


Stef
Telerik team
 answered on 05 Jul 2013
4 answers
76 views
Hello,

I just made a simple report which use a report.parameter to select some data.
The parameter is filled through a DataSouce with a Name and a Id field.
When i switch to preview the parameter box is filled and i can select a name from it.
Then clicking the Preview button a empty report is shown.
The value of the parameter is not passed or, when a extract the value from the parameter.value there is nothing.
I do this in the NeedDataSource Event before building the query.

Dim Id As String = Report.ReportParameters("Parameter1").Value.ToString

This worked before in older reports but now, whatever i try there is no value.
Is something changed??

I'm glad if somebody can help me before i spent a lot of time on something changed or a bug.

Regards,

Ferry



Stef
Telerik team
 answered on 05 Jul 2013
1 answer
50 views
Hi

We need to plot to two different kind of chart series (Line and Point) on a single report. We are able to achieve it when we don't any grouping but unable to plot correctly when grouping is involved. Please refer the attached snapshot. This is the expected format with grouping.

Data structure:
EmployeeName = "Peter Jackson" , Date = Date 1, MinValue= "60%", MaxValue = "80%" , Average = "70%"
EmployeeName = "Peter Jackson" , Date = Date 2, MinValue= "65%", MaxValue = "90%" , Average = "80%"
EmployeeName = "Peter Jackson" , Date = Date 3, MinValue= "70%", MaxValue = "100%" , Average = "90%"
 
 
EmployeeName = "Denis Regan" , Date = Date 1, MinValue= "66%", MaxValue = "86%" , Average = "72%"
EmployeeName = "Denis Regan" , Date = Date 2, MinValue= "68%", MaxValue = "92%" , Average = "85%"
EmployeeName = "Denis Regan" , Date = Date 3, MinValue= "78%", MaxValue = "100%" , Average = "90%"
  
We need to group by EmployeeName on X axis. 
Line Series Data : MinValue and MaxValue
Point Series Data : Average

Please let me know how to achieve this? It would be grateful if you could provide any code samples.

Thanks in advance
Sankar
Stef
Telerik team
 answered on 05 Jul 2013
1 answer
147 views
Hi

We need to create a scatter type of chart as attached here. Could you please let us know how to achieve scatter series by using (Chart Class) Q2 2012 version? 

As per the attached snapshot, we have only one data point for X axis and more data points for Y axis(100s, 1000s, etc..) under one group ( eg: Peter Jackson or Date 1). In this case, how do we arrive selective data points out of 100s, 1000s data points which will be considered as final scatter data points in Y axis?

We don't have any issues for creating Bar Series but have concerns on how to select the final scatter data points out of maximum data points and spread over exactly on Bar Series under one particular group.

If you could provide a sample to fulfill this requirement, it would be great helpful to us. Looking forward your response.

Thanks
Sankar
Stef
Telerik team
 answered on 05 Jul 2013
1 answer
119 views
I have created a form (ReportViewerTelerik.cs) with a telerik reportviewer(reportVeiwer1) on the form.  I have created an InstanceReportSource(TelContractirs) in a different event.  I want to use the reportviewer in that event by ReportViewerTelerik myReportViewer = new ReportViewerTelerik(); and then pass the reportdocument (TelContractirs.ReportDocument = currRpt;) to the reportviewer.reportsource.

The problem is that in the event private void exportTelerik(Telerik.Reporting.Report currRpt, string saveLocation) I can instantiate the reportviewer form ReportViewerTelerik myReportViewer = new ReportViewerTelerik(); but when i try myReportViewer.reportViewer1 my intellisense does not give me reportviewer1 as an option in the dropdown thus i then cannot pass the currRpt to the reportsource.

Thanks for the help with my dilemma.

Ivan Hristov
Telerik team
 answered on 05 Jul 2013
2 answers
134 views
Dear Sir,

     I need older version of Report (7.0.13.220).

Thanks & Regards
   Sharan
Peter
Telerik team
 answered on 04 Jul 2013
1 answer
366 views
Buen dia

Me gustaria saber la forma en la que puedo mostrar los elementos seleccionados, es decir, que si el usuario selecciono como en el video se muestra "AZ,IL,NE" estas selecciones se le muestren concatenadas en el encabezado del reporte. (http://tv.telerik.com/watch/reporting/video/telerik-trainer-reporting-subreports)

De ser posible me gustaria que me proporcionaras un ejemplo. Gracias

Me despido esperando tu pronta respuesta

________________________________________________________________________________________________________________

Good day

I would like to know how I can show the selected items, ie if the user selected as shown in the video "AZ, IL, NE" these selections is displayed in the header concatenated report. (http://tv.telerik.com/watch/reporting/video/telerik-trainer-reporting-subreports)

If possible I would like proporcionaras me an example. thanks

I say goodbye to waiting for your prompt response
Squall
Top achievements
Rank 1
 answered on 04 Jul 2013
1 answer
84 views
Hi.

Is it possible to have one header and use it to all my reports?

The idea is to maintain just one header.

In this header I will need to show page number.

Just a part of the header will change for each report. Is it possible to have a dynamic part of the header, maybe like a subreport?

Best regards,

Wilton Ruffato Wonrath
IvanY
Telerik team
 answered on 04 Jul 2013
1 answer
92 views
Hi, 
 We have project where reports is a seperate optional package.When reports is installed,Telerik.Reporting.dll and Telerik.ReportViewer.WebForms.dll will be copied automatically but when i uninstall reports pack and try to access my application ,it throws the error as shown in the image.If i copy  these two dll manually in bin folder it works fine.
Is there any way so that when reports is uninstalled,the telerik dll should not be deleted? Please help 
Unknown
Top achievements
Rank 1
 answered on 04 Jul 2013
1 answer
111 views
We have an existing report solution in one of our legacy applications that uses HTML documents as templates.  The reports are generated based on these templates.

It has been decided that we are to switch this application to telerik reporting as we have with some of our other software.  Rather than having to re-design the report in the telerik designer, it would be helpful if we could convert the HTML directly to a telerik design.  Then, we would only have to create the report datasource and tools.

Is this possible?
Stef
Telerik team
 answered on 03 Jul 2013
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?