hello, i'm sorry my poor english. i have an problem with crystalreport and
vb .net. The problem is next: i will like change the papersize an value custom, but i don't know do it. the code is next:
cr.Load(Server.MapPath("rptfactsov.rpt"), OpenReportMethod.OpenReportByDefault)
cr.SetParameterValue("FACT", valor)
cr.SetParameterValue("TITULO", "factura")
conexion()
cr.PrintOptions.PrinterName = "EPSON TM-U220D Receipt"
Dim pagina As New System.Drawing.Printing.PaperSize("CustomHV_17X152 ", 76, 76 * 2)
Dim sep_printer As New PrinterSettings
sep_printer.PrinterName = cr.PrintOptions.PrinterName
'pag_sep_print.PrinterSettings = sep_printer
Dim pag_sep_print As New PageSettings
pag_sep_print.PaperSize = pagina
pag_sep_print.PaperSize.Height = pagina.Height
pag_sep_print.PaperSize.Width = pagina.Width
pag_sep_print.PaperSize.PaperName = pagina.PaperName
doc1.DocumentName = Server.MapPath("rptfactsov.rpt")
'here is where i've the problem. i don't know
'cr.PrintOptions.PaperSize =
Dim oStream As New MemoryStream
oStream = Me.cr.ExportToStream(ExportFormatType.PortableDocF ormat)
Response.Clear()
Response.Buffer = True
Response.ContentType = "application/pdf"
Response.BinaryWrite(oStream.ToArray())
Response.End()
End Sub