Adding Custom Paper Size in Crystal Reports

Visual Basic

    Sponsored Links


  • 1. Print Button
    Hi Everyone How can i add a print button to the Crystal Report? Thx in Advance
  • 2. Problems with Crystal Report & HP Laserjet 1010 printer
    Friends: A customer and I have bought printer a HP Laserjet 1010 and now we have a problem. The printer prints well all the reports of a client's software, except for one and I can't solve the problem. Six months ago I had a similar problem with one report and a HP Laserjet 1015 of another customer. Then I replaced a report made in portrait mode for one made in landscape mode, but it didn't work. I solved it going back to the original report and reducing the text. I'm using this printer with software developed with VB6 and Crystal Report 4.6. The report is created without any problems and sent to the printer, the printer's light starts to blink as in normal function the same way it does before printing and then after a few seconds it stops without printing. If I export the report to Excel or Word, it is printed without problems in these formats. If you can help me with this I would be very grateful. Regards, Juan JosPetry
  • 3. Defining parameters in sql command for OLE DB/SQL SERVER 2000 in CR.NET
    Hi Everyone, I am having a problem declaring a query text for a command using OLE DB. The problem is that i get no fields in the Field Explorer if i define a parameter in the text. The query is something like this: SELECT * FROM ANIMAL WHERE TAGNO = @TAGNOPARAM I have tried to set the parameter name like {?TAGNOPARAM} or {?@TAGNOPARAM} or ?TAGNOPARAM but still get the same effect. I am using Visual Studio.NET 2003 with CR.NET. In some manuals i have seen that for CR 9, parameters are explicitly deifined in 'Parameters List' in a dialog box that is not present in CR.NET. I managed to run report over stored procedure that asks for parameters, but my problem is with client side parametrized query. Please help
  • 4. Ability to view many reports in crystal 10 from desktop
    Want to have many crystal 10 reports open at the same time So when I choose a report I would like to create a form and create a CrystalActiveXReportviewer control and place it on that form. Where can I get an example of something similair to the above
  • 5. Formating durations like in excel [h]:mm
    As a new Crystal Reports 10 user, I'm yet not able to handle durations correctly. I'm working with durations and would like to prepare a report to show, for each employee in my company, the working duration by weeks since the begining of the year. For a week, employees usually work 40 hours and - for the timebeing - I wrote a function to display the duration in a "[h]:mm" (unfortunately, as far I know it, this format is not provided by Crystal Reports). To compute the total as well I had to create local variables (one for the total in 'numeric', the other for the 'text'). Except the fact that according to my opinion, my way of working is quite un-elegant (and difficult to maintain). In addition as my boss asks for graphical representations of these values (for one employee, the hours worked by week since the begining of the year ...) I fear that this cannot be done with crystal reports as the [h]:mm format does not exist. Could you give me advices ? All the best, Yves

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 76 guest