User919362612 posted
hai
How is Exporting and printing work? please let me know
I am using print method which only print to asp. server printer I have tried a lot . so that it can print to Local Printer. But FAIL!!.
reportdocument.PrintOptions.PrinterName = "DEFAULT PRINTER"
reportdocument.PrintToPrinter(1, False, 0, 0)
-------------
And Also i tried exporting the Report to PDF. And print . that does work properly.
the code which i used
Dim CrReport As New Crystal_Report11opdnormalposting() '/ Report Name
Dim CrExportOptions As ExportOptions
Dim CrDiskFileDestinationOptions As New DiskFileDestinationOptions()
Dim CrFormatTypeOptions As New PdfRtfWordFormatOptions()
CrDiskFileDestinationOptions.DiskFileName = "path\xx.pdf"
'Specify a page range (optional)
// Set the destination to a disk file
.
'// Set the format to PDF
.ExportFormatType = ExportFormatType.PortableDocFormat
'// Set the destination options to DiskFileDestinationOptions object
..
--
Protected Sub PDF_PRINT_FSN()
Dim psiPrint As New System.Diagnostics.ProcessStartInfo()
psiPrint.Verb = "print"
psiPrint.WindowStyle = ProcessWindowStyle.Hidden
psiPrint.FileName = "path\xx.pdf"
psiPrint.UseShellExecute = True
System.Diagnostics.Process.Start(psiPrint)
End Sub
THIS CODE PATIALLY WORK
if you have better code .. which work on client side please please help