Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 28th, 2005, 06:16 PM
Registered User
Join Date: Feb 2005
Location: , , .
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")
        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.Buffer = True
        Response.ContentType = "application/pdf"

    End Sub

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 02:47 AM.

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