Adding Custom Paper Size in Crystal Reports

Visual Basic

    Sponsored Links


  • 1. Conditional formatting/hyperlink using ReportEngine
    I use Visual Studion 2005, web site programming. I want to control the formatting of individual CR report fields from Visual Basic code. Question 1: If I set the CrystalDecisions.CrystalReports.Engine.FieldObject.ObjectFormat.CssClass in my code, it seems that the CanGrow functionality is lost, i.e. the field is not expanded to multiple lines. Is this a bug or expected (i.e. not supported)? Can it be worked around? Question 2: In the Crystal Reports designer, I can - Drag a Database Field from the Field Explorer onto the Details section of my report - Right click on the field and select Format Object - Select the Font tab in the Format Editor and click on x+2 for e.g. the Color - Introduce a formula in the Formula Workshop Where does this formula end up in the ReportDocument Object Model? I want to access it (i.e. set the formula (this and other formulas) in run-time from code), but can't figure out where it is. Question 3: Similar to Question 2, but regarding the hyperlink tab of the Format Editor. I want the report field to be a hyperlink. If the field contains e.g. product A, I want a web site describing this product to occur when the user clicks on the field. So I want to set the field as being a hyperlink (in the VB code, using the ReportEngine), and insert a formula to produce the actual hyperlink (where the formula makes use of the field's content (e.g product name)).
  • 2. Data Points in Scattered chart
    I have a table that looks like the following: Year Value 1 Value 2 ---- ------- ------- 2000 50000 60000 2000 50000 62000 2001 55000 65000 2001 55000 70000 I want to plot data points in a chart. I want the X-axis to be the year, then points plotted for Value 1 and Value 2. The closest I can get in CR is to plot a sum or avg or some other function for the Value columns, not the specific values. Am I missing something?
  • 3. Regression Analysis in Crystal (10.0)?
    Is Crystal (10.0) capable of drawing a Regression Analysis graph (Data points with a summarized straight line)? Best I can tell, it doesn't seem capable. I hope I'm wrong.
  • 4. Who can show me the CR interface?
    Dear all, Because of I can't access internet at office except this news group, so who can show me the CR interface as an attachment. Regards, Season Lau
  • 5. Preview not working with DataSet push model
    The actual report loads fine at runtime but there are 0 records showing in the preview. If I hit F5 I can browse for a file but my .xsd of course doesn't have any rows in it. Without preview mode I can't tidy up the labels on my charts etc. Any suggestions, I'm pretty lost here.

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