Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
|
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 28th, 2005, 06:16 PM
Registered User
 
Join Date: Feb 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default custom papersize crystalreport

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







Similar Threads
Thread Thread Starter Forum Replies Last Post
crystalreport guptamkomal ASP.NET 1.0 and 1.1 Basics 9 May 31st, 2007 12:51 AM
Crystalreport 10 nilesh kureriha BOOK: Professional Crystal Reports for VS.NET 0 May 30th, 2007 01:28 AM
CrystalReport nilesh kureriha BOOK: Professional Crystal Reports for VS.NET 0 May 29th, 2007 11:53 PM
crystal reports resizing papersize goozbee BOOK: Professional Crystal Reports for VS.NET 0 June 30th, 2005 08:50 PM
CrystalReport .Export kathir Crystal Reports 0 January 20th, 2005 02:00 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.