Adding Custom Paper Size in Crystal Reports

Visual Basic

    Sponsored Links


  • 1. Retrieving Page Count in .NET
    I'm having the same problem and have found no answer to this great mystery. I'm using the crystal that ships with Visual Studio 2003...
  • 2. I can't get Stored Procs to display in the Report Expert
    I am trying to use Northwind in SQL Server. When I define a connection to my local SQL Server in the Standard Report Expert I get Northwind and TWO categories: Tables and Views. I can't get a listing of the Stored Procedures to display. What am I doing wrong? TIA, Larry Woods
  • 3. DateAdd function in a report
    Hi, I have a form that needs to report a date based on values that are created from a couple of database fields. This is what I have: dim y as number y = year({Scheduling.DeadlineDate}) dim w as number w={Scheduling.WeekendNum} Dim startDate As Date Select Case y Case 2004 startDate = #12/25/2003# Case 2005 startDate = #12/30/2004# Case 2006 startDate = #12/29/2005# Case 2007 startDate = #12/28/2006# Case 2008 startDate = #12/27/2007# Case 2009 startDate = #12/25/2008# Case 2010 startDate = #12/24/2009# Case 2011 startDate = #12/30/2010# Case 2012 startDate = #12/29/2011# . . . End Select formula = DateAdd(DateInterval.WeekOfYear, w, startDate) I get an error on the last line that states: "The ) is missing." and it highlights the DateInterval word in the formula line. What syntax should I be using for the DateAdd function? I am using Basic Syntax. Thanks for any help. Brad
  • 4. BUG?
    Hi! I have a report with float fields. Sometimes that fields show a wrong value. They round the data, so if the value is 14.85 it shows 15.00. If I reboot the machine it works OK. Can you help me? I use CR 8 updated to 9. Thx!!
  • 5. Table wrap in report
    hello all i am trying to print a table with crystal that has more than 150 columns. is there a way to wrap the table in maybe 5 different parts below eath other or extend the whole table onto several pages. I am using Microsoft Visual .NET 2003 with crystal reports build in. thank you very much for you help! martin

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