Adding Custom Paper Size in Crystal Reports

Visual Basic

    Sponsored Links

    Next

  • 1. Crystal Reports Installation
    Hi, I know this is not the correct newsgroup to post in but there isn't any other Crystal Reports newsgroup that I can find. I have a 5-user license Crystal Reports Dev Edition 8.5 which I am trying to install but it requires a registration number. Therein the problem. Although I have a 5-user license, I am actually the only one using it but having gone through several reinstallations of OS, upgrades, changing computers, etc. I have registered more than five times already. Apparently all other means of trying to get my registration number either by Fax, Email, trying to put in a report with BusinessObjects.com, phone calls to the numbers listed by Crystal Reports (nobody answers, the other is an automated answering machine telling me to go to BusinessObjects)... etc didn't work and I am stuck with a software that I cannot use. I could prob purchase a new CR10 but that will cause a whole lot of new problems upgrading all my related softwares that were built and distributed using CR8.5 I am really frustrated by this, and would appreciate any advise from other Crystal Report users here. Am located in Singapore so would appreciate any advise given to be related to here or South Asia, but am actually desperate enough for anything actually. Thanks in advance. Bernard Soh.
  • 2. fail in changing DB logon information when loading non-typed Crystal Report file
    Hello, I am having issue changing the DB logon information at the runtime when loading non-typed Crystal Report file(v.10) to .NET WinForm application. The error message and partial code are listed below. I checked the connection string values and confirmed they are all correct. Based on all the document and sample I have, I can't think of anything missing? Thanks in advance, MichaelJ =========Exception Error Message ======= "Unhandled Exception: Log on failed. Exception Type: CrystalDecision.... Inner Exception: Type: System.Runtime.InteropServices.COMException Message: Logon failed. Error in File C:\Docume~1\.....\{D371789A....}.rpt Unable to connect: incorrect log on parameters Stack Trace: ..... " =========== partial codes ========== ReportDocument reportClass = new ReportDocument(); reportClass.Load(ReportFilePath); TableLogOnInfo logonInfo = new TableLogOnInfo(); foreach(Table table in reportClass.Database.Tables) { logonInfo = table.LogOnInfo; logonInfo.ConnectionInfo.ServerName = "localhost"; logonInfo.ConnectionInfo.DatabaseName = "TestDB"; logonInfo.ConnectionInfo.UserID = "sa"; logonInfo.ConnectionInfo.Password = "pswd"; // Apply the connection information to the table. table.ApplyLogOnInfo(logonInfo); } this.rptViewer.ReportSource = reportDoc;
  • 3. Placing fields for a form
    Perhaps this is a better question. I need to place fields in a specific location so they print correctly on a form. What's the best way to do that? I'm tyring to work with a scanned image of the form and place the fields on top of the image then when all is done I'll delete the scanned image. Is there a better way?
  • 4. Crystal Reports and .NET and Parameters
    I want to write a VB .NET program where a user can enter a parameter in a textbox, and generate a report based on the parameter. I have a book on Crystal Reports, but it is horrible, and does not tell me how to do it. Does anyone know where I can find information on how to do this?
  • 5. creating a report with a dataset datasource.
    I have a .NET web application and have a datagrid that is filled with a dataset. The data comes from a stored procedure that returns several records from a database that is called from the web application. I want the application to create a crystal report using the data source that is used for the data grid, from the same dataset, or the output of the stored procedure. Just wondering if there is an example of how to do this anywhere? Thanks Paul. -- Paul G Software engineer.

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