Adding Custom Paper Size in Crystal Reports

Visual Basic

    Sponsored Links

    Next

  • 1. PrintReport option in RDC
    Hi! I am writing a VB 6 and CR 10 application. I use the .ViewReport option in the RDC and the report shows up fine in my window. However, if I use the .PrintReport option it returns a -21020XXX error box. Is there something I am missing (setup the report first??) Thanks!! Phil Wright
  • 2. PrintToPrinter from ASP.Net
    Hi, I get the error Error in File C:\DOCUME~1\DELL\ASPNET\LOCALS~1\Temp\temp_590ea2bc-26f0-4fb6-b1ce-53315f43d e8c.rpt: Request cancelled by the user. I am using impersonation to ensure Crystal Reports has rights to print to printer although intrigingly I note the path specified in the error does not reflect the impersonation, although the diagnostic Label3.Text= System.Security.Principal.WindowsIdentity.GetCurrent().Name; Does indicate impersonation is correctly configured. Perhaps impersonation does not cover this area of functionality?? <authentication mode="Windows"/> <!-- AUTHORIZATION This section sets the authorization policies of the application. You can allow or deny access to application resources by user or role. Wildcards: "*" mean everyone, "?" means anonymous (unauthenticated) users. --> <authorization> <allow users="*"/> <!-- Allow all users --> <deny users="?"/> <!-- <allow users="[comma separated list of users]" roles="[comma separated list of roles]"/> <deny users="[comma separated list of users]" roles="[comma separated list of roles]"/> --> </authorization> <identity impersonate="true"/> Also unticked "Anonymous access" in authentication modes for this web app in iis (5.1 on xp pro) Any ideas? Thanks Martin
  • 3. packaging a project into a component
    I have a project with one aspx page and one Crystal Report. If you pass the page a web datagrid it will print a report consisting of the datagrid headings and contents in report format. I would like to package this into a component or a control so that a developer could enable Grid Print capability simply droping the "Print this grid" component on a page and assign the name of the grid. My problem is that I don't know how to put an aspx page and a crystal report inside a control/component. Can Components write out web pages? Any ideas would be appreciated. T
  • 4. show only records where NEXT record is different then the prior
    I have a query for historical inv with fields Part - Date - Qty Sample data x - 1/1/04 - 5 x - 1/2/04 - 5 x - 1/3/04 - 5 x - 1/4/04 - 10 I would like result set to show only the records where the NEXT record has a different QTY then the prior record So for the above it should read: x - 1/1/04 - 5 x - 1/4/04 - 10 Any ideas on how to accomplish this? I assume i must use some type of variable and compare it to the next record. If change then variable changes? thx in advance

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