Adding Custom Paper Size in Crystal Reports

Visual Basic

    Sponsored Links

    Next

  • 1. Crystal 8.5 viewer error via ASP
    I am using Crystal 8.5 on my web server, and am using the example files for publishing via asp. Everything seems to work, but when I try to view a report I'm getting the following error. CRAXDRT Error Occured on Server. Error Number: -2147221005 Error Description: 006~ASP 0177~Server.CreateObject Failed~Invalid ProgID Any ideas? thanks
  • 2. disable or enable icons in print preview
    My company has dozens of crystal reports, many of which are compiled version 6 or 7. When these reports run, some show the printer setup icon, and some don't. Some show the export icon, and some don't. How can I make them all the show all icons?
  • 3. Modifying Report object using a sub/function -- basic ??
    Hello Guru's I have a simple question... I created a couple of reports based on a single dsr cr8 file... I was able to modify all text/fields objects. The problem that I'm having is that I want to create a sub in vb6 to modify each field based on the parameter passed.. for example: VB6/CR8 *** THIS IS WHAT I HAVE ***** CASE "REPORT 1" SETTEXT0 "TEST" SETTEXT1 "TEST" SETTEXT2.SUPRESS = TRUE CASE "REPORT 2" SETTEXT0 "1234" SETTEXT1 "5678" SETTEXT2.SUPPRESS = FALSE CASE "REPORT 3" SETTEXT0 "9102" SETTEXT1 "12548" SETTEXT2.SUPPRESS = TRUE THIS IS WHAT I WANT CASE "REPORT2" CALL subCrcControl (SETTEXT0, "123") CALL subCrcControl (SETTEXT1, "456") CASE "REPORT3" CALL subCrcControl (SETTEXT0, "789") CALL subCrcControl (SETTEXT1, "147") CASE "REPORT4" CALL subCrcControl (SETTEXT0, "258") CALL subCrcControl (SETTEXT1, "369") SUB subCrcControl (FIELD_NAME AS OBJECT, STRTEXT AS STRING) with crControl .setText STRTEXT ***************** MORE SETTINGS ******** end with END SUB The Problem I'm having is that I don't know how to declare the cr field/text object... no matter what type I use I get a mismatch error Thank you Alex
  • 4. distinctcount adding 1 - help
    I'm pretty new to this. I'm trying to do a distinct count on a string field - it's a count of consultants grouped by their pharmacy. Background - first I need to get just the consultants that sent data during a certain time period. The formula, called Consultant Count, is IF MONTH ({GETTRANSCOMPLDATA.LAPTOP_EXPORT_DTS}) = MONTH ({?STARTDATE}) THEN {GETTRANSCOMPLDATA.CONSULTANT_NM} ELSE "" Then, I use that formula in my distinct count statement - DistinctCount ({@Consultant Count}, {GETTRANSCOMPLDATA.NABP_CODE}) The 1st formula is suppressed, but if I show it, it comes back listing just one name; the distinct count, however, comes back counting 2. It doesn't matter if it's listing 1 or 10 names, in the count it's always +1. Anyone with info as to the whys & hows to fix would be greatly appreciated. Thanks.
  • 5. Crystal form disappear
    Hi guys, I developed a report crystal 8.5 now I'm trying to run it using vb6 and access 2k db, the problem is that when I run the report from my pc or lap top it runs but when I use another pc it flashes (it does not run). Thanks in advance for any tip KP

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 
REport.Printoptions.Papersize.

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.

Thanks

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

Hi,
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 
CrystalDecisions.Shared.PaperSize.

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

There is a way to do that?

Thank you
Chiara


5.Printing on a Custom Paper Size

Hi,

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,

Anne 


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