Adding Custom Paper Size in Crystal Reports

Visual Basic

    Sponsored Links


  • 1. Vb6 Crystal Report and chart
    Hi, I have a problem with a report with a chart In some printers (HP) the chart does not appear ! Could you help me ? Thank you !!! Francesco
  • 2. Page number at runtime.
    How can I get the current page number at run time. This is the code of VB: Private Sub Section8_Format(ByVal pFormattingInfo As Object) If (<Need to know how get the current page number> Mod 2) = 1 Then Me.Section4.Suppress = True End If End Sub I made it in code because I didn't succeeded in design. Thanks.
  • 3. Crystal report web server
    whether need the client crystal viewer for the crystal web server.
  • 4. Logon failed but only when viewing others reports
    Hi all CR developers out there! I am using VS 2003, and SQL server. The development machine is Windows 2000 and the project is a web site that displays reports med with CR. Reports that get their data from an SQL database. I use a ODBC (System DSN that uses SQL server authentication) connection that is selected in the report creation wizard during the creation of the report. When I make a report in VS I get a report that I can view perfectly in the web application. But when I try to display a report created by our customer it displays an error message: CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed. If I open his report in my VS CR editor and re-save it, it will work. Sadly enough this is not a satisfactory solution since they want to be able to replace the reports by them selves, without having us to re-save them. The version of CR I am using is newer than theirs but that should not be a problem I hope. I suspect that it is a user rights problem? That when I re-save their reports is gets the windows rights of my windows login that have access to SQL? Or is it a completely different problem that manifests it self in this way? But what shall I do fix this? Does anyone recognize this problem and have a solution or a hint in what direction to look for the answer? Please, please help if you can. best regards/ Olaf (by now a somewhat desperate developer)
  • 5. Crystal web server
    For the Crystal web server 1. Whether any crystal viewer required for the client. 2. Limitation of the web server.

Adding Custom Paper Size in Crystal Reports

Postby S3Jpc2huYQ » Sun, 03 Dec 2006 14:39:00 GMT

Respected Sir / Madam,
 I am working as  a softwareprofessional with core MicroSoft Technologies. 
At present I am working in .Net 2003. I am using the Crystal Reports that 
comes along with the .Net 2003 package for my Reporting Purpose. I have a 
problem in printing the reports when it comes to printing it in a Custom 
Paper size. The paper size that i use is  10in x 12in. I have set the paper 
size in the printer using the server properties in the Control panel. I am 
not able to set the paper size in the coding part as we usually do using the 

It shows only the Names of the paper that it supports. how to i Set the 
paper size to 10in x 12in.  Everytime otherwise i have to go to the Advanced 
properties in the print dialog box ,that pops up when we click the print 
button in the viewer, set the paper size which is defaulted to Letter and 
then print it. 

I would be really GRATEFUL if any of u can help me out in this problem.


Waiting for a positive reply

Please i need  Clear solution. pleaseeeeeeeeee

Think Positive. There is always an answer for a Problem. Never Say Die.

Similar Threads:

1.Cannot print using custom paper size (Crystal Report .NET)

2.Can Crystal report use custom paper size ?

I've use a custom paper size on a report, with dot matrix printer ,
it works fine on development machine,
but , when I deploy the report to production machine,
the paper size will change to A4,
if anyone have idea that why this happen ??

Thank you very much!!

3.How to set custom paper size in crystal reports 8.5

Hi, I am unable to set the custom paper size using VB 6.0 (with SP 6) and Crystal Reports 8.5. I need to set it to 8.5 Inches x 6.0 Inches (Width x Height). My printer does not support the User Defined Sizes
I have tried the following cod
crptobj.PaperSize = crPaperUser

4.crystal report paper size

I've a problem. I have to set the paper size of a report (crystal report) at 
runtime, but the size I need to set isn't in the list of 

I want do something like this:
myreport.PrintOptions.PaperSize = new CrystalDecisions.Shared.PaperSize 
(width, height)

There is a way to do that?

Thank you

5.Printing on a Custom Paper Size


I want to programatically set the paper size of a print document. I created 
a class that inherits PrintDocument, so I can print some database records on 
8" x 10" paper.

I added this line to my class constructor:

Dim customPaperSize As New Printing.PaperSize("8x10", 800, 1000)

But now I am looking for the proper code lines so that any instance of my 
class sends the proper size information to the printer, without user 
intervention. How do I do it with VB.NET (with .NET 2.0)?

Thank you in advance,


6. Custom Paper Sizes

7. Getting the paper size for a custom printer form

8. Custom size paper problem

Return to Visual Basic


Who is online

Users browsing this forum: No registered users and 35 guest