Adding Custom Paper Size in Crystal Reports

Visual Basic

    Sponsored Links

    Next

  • 1. Reporting on different databases
    Hi, our reports need to be ran on different servers (development and production) how can we make a report run on both? basicly i need to tell the report in code when loading the report viewer which database to use for data retrieval. any idea on how to do this? Since this is the only crystal group on here im posting to it... im using VB.NET 7.1 with Crystal reports.net
  • 2. Changing database path at runtime
    Hi, I have the following code that I want to modify to override the database path but I can't seem to see which method will do it. I got a CRViewer 9 control that I'm using. I can't seem to find a DataFiles property to change to the new path. Thanks. Dim crystal As CRAXDRT.Application Dim report As CRAXDRT.report CRViewer.DisplayBorder = False CRViewer.DisplayTabs = False CRViewer.EnableDrillDown = False CRViewer.EnableRefreshButton = False CRViewer.EnableProgressControl = True Set crystal = New CRAXDRT.Application Set report = crystal.OpenReport(sReportFileName) report.DiscardSavedData CRViewer.ReportSource = report CRViewer.ViewReport Do While CRViewer.IsBusy DoEvents Loop CRViewer.Zoom 94 Set crystal = Nothing Set report = Nothing
  • 3. Overriding database path
    Hi, I have the following code that I want to modify to override the database path but I can't seem to see which method will do it. I got a CRViewer 9 control that I'm using. Thanks. Dim crystal As CRAXDRT.Application Dim report As CRAXDRT.report CRViewer.DisplayBorder = False CRViewer.DisplayTabs = False CRViewer.EnableDrillDown = False CRViewer.EnableRefreshButton = False CRViewer.EnableProgressControl = True Set crystal = New CRAXDRT.Application Set report = crystal.OpenReport(sReportFileName) report.DiscardSavedData CRViewer.ReportSource = report CRViewer.ViewReport Do While CRViewer.IsBusy DoEvents Loop CRViewer.Zoom 94 Set crystal = Nothing Set report = Nothing
  • 4. Making crystal create TIFF
    We have an application whoose reporting is handled by crystal. I need it to create TIFF file outputs. Until now we had a virtual printer printing them out to a tiff file. Then a script that would compress these tiffs to a tiffG4 Then a script to store them ina repository It seems to us that this is a process in need of improvement. The application is a VB.NET 2003 build. I am hoping VB.NET/Crystal has something that would directly convert them into TIFFG4 or atleast normal TIFF or may be JPEG. Any idea on how to do that? Thanks
  • 5. Creating a concatenated field problem
    Hey all, I am trying to build a concatenated field as follows (ver. 8.5): if isnull ({PROPERTY_PLUMBING_VIEW.NBR_OF_1FIX}) then 'null' else cstr({PROPERTY_PLUMBING_VIEW.NBR_OF_1FIX})+' '+'1-Fix, ' + if isnull({PROPERTY_PLUMBING_VIEW.NBR_OF_2FIX}) then 'null' else cstr({PROPERTY_PLUMBING_VIEW.NBR_OF_2FIX})+' '+'2-Fix, ' + if isnull ({PROPERTY_PLUMBING_VIEW.NBR_OF_3FIX}) then 'null' else cstr({PROPERTY_PLUMBING_VIEW.NBR_OF_3FIX})+' '+'3-Fix, ' + if isnull ({PROPERTY_PLUMBING_VIEW.NBR_OF_4FIX}) then 'null' else cstr({PROPERTY_PLUMBING_VIEW.NBR_OF_4FIX})+' '+'4-Fix, ' Everything works fine as long as their are no null fields or nbr_of_4fix is null. i.e. I end up with a string that reads: 3 1-Fix, 1 2-Fix, 5 3-Fix, 1 4-Fix However, if, say, only NBR_OF_2FIX is null then the rest of the statement does not get evaluated. i.e reads: 3 1-Fix, null Is this some sort of bug or is there a flaw in my logic? Is there a better way to do what I'm trying to accomplish? I've tried using IIF instead and end up with the same results.

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