How to directly print radgridview to Telerik report viewer ?

1 Answer 43 Views
GridView
Arun
Top achievements
Rank 1
Iron
Arun asked on 21 Jul 2022, 11:55 AM
How to directly print radgridview to Telerik  report viewer

1 Answer, 1 is accepted

Sort by
0
José Antonio
Top achievements
Rank 1
Iron
answered on 22 Jul 2022, 07:30 AM

This is my code to print Radgridview

Public Sub ImprimirListado() 'Muestro la ventana de impresión del RadGridView

Try

Dim Impreso As New RadPrintDocument Impreso.AssociatedObject = Me.RadGridView Dim VistaPrevia As RadPrintPreviewDialog = New RadPrintPreviewDialog(Impreso) VistaPrevia.ThemeName = "Office2013Light" VistaPrevia.WindowState = FormWindowState.Maximized VistaPrevia.ShowDialog() Catch ex As Exception MessageBox.Show(String.Format("Error en: {0}", Me.Name) + Chr(13) + "Evento: ImprimirListado" + Chr(13) + "Mensaje: " & ex.Message, "Atención", MessageBoxButtons.OK, MessageBoxIcon.Warning) End Try

End Sub


Arun
Top achievements
Rank 1
Iron
commented on 22 Jul 2022, 12:57 PM

We are not looking for this method print . we need to print through the Telerik report viewer
Neli
Telerik team
commented on 26 Jul 2022, 07:25 AM

Hi José,

Note that in your report viewers, you can display only Telerik Report definitions - .TRDX/.TRDP files if the reports were created with the Standalone designer or .CS/.VB if the reports were created with theVisual Studio Report Designer.

In general, the WinForms Report Viewer provides an option for printing the report from the viewer's toolbar. A sample project with the report viewer can be found in the installation folder of Telerik Reporting:

C:\Program Files (x86)\Progress\Telerik Reporting <Version>\Examples

 

Tags
GridView
Asked by
Arun
Top achievements
Rank 1
Iron
Answers by
José Antonio
Top achievements
Rank 1
Iron
Share this question
or