Adding Custom Paper Size in Crystal Reports

Visual Basic

    Sponsored Links


  • 1. printing!
    Hi I want to print reports with crystal reports .NET (VS .NET 2003) I must be able to select a printer... and, After the print, i must do something in the code (in fact, i modify a flag in the database). si, I use the following code : CrystalReportViewer1.PrintReport() msgbox("print ok!") CrystalReportViewer1.PrintReport() launches a printDialog form... It's cool! BUT if I cancel the print (in the printdialog form), the "print ok!" message is shown....! So how to control that????? Should I use the printReport sub......or the report.printToPrinter sub?????? AND, If I use the printToPrinter sub, how to select the printer? can i have a little sample, please? thanks bye syl
  • 2. Adding table links at runtime
    Hi I have a report that I access through RDC At runtime, I add a temp SQL server view to the report That works fine I then try and add a link from the newly added table to an existing table on report and get the following error WArning - Fields in the report from the file """ cannot be linked If I add the view in manaually in Crystal then the view and the table link fine This is my VB code Set mobjApplication = New CRAXDDRT.Application mobjApplication.LogOnServer "PDSODBC.DLL", "VtsMain", "VtsMain", "sa", "xxxx" subGroupChooseReport ' open selected report X.ActiveConnection = "Provider=MSDASQL.1;Persist SecurityInfo=False;User ID=sa;pwd=xxxx;Data Source=VTSMain" X.Open ("Select * from tester") 'add view to report mobjreport.Database.AddADOCommand X.ActiveConnection, X.ActiveCommand Set tab1 = mobjreport.Database.Tables(1) ' table i want to link to Set tab2 = mobjreport.Database.Tables(11) ' 11 being the new view added to report Debug.Print mobjreport.Database.Links.Count 'attempt to add link mobjreport.Database.Links.Add tab2, tab1, 30, 1, crJTEqual, crLTLookupProduct, False, 1
  • 3. Security problem
    I found it ! I had to Merge Modules all the Crystal dll files at the Setup Application of my project. That's all. "celtis" < XXXX@XXXXX.COM > wrote in message news:c8cp6p$841$ XXXX@XXXXX.COM ... > I use the Crystal Reports for Visual Studio .NET 2003 > and I got a problem that when I place my application (exe) to another > computer the Reports does not appear to work. > I have already install the framework to the other computer but no help with > the Reports. > What do I have to install to the other computer so that the Reports could be > run ? > >
  • 4. Connection to a server
    VB6(SP6) & SQL200 Im devoloping a new SQL server that is using trusted connections. The VB application i currently use was using server Authincation with code to logon the server as follows CrxApp.LogOnServer "p2sodbc.dll", "ReportsDSN", "Database", pParmString(ParmedUserName), pParmString(ParmedUserPassword How would i connect using Trusted connections ?
  • 5. CR8 and windows 2003 server
    Hi, Is crystal report version 8 working under windows 2003 server? I am getting error at OS start-up that "Seagate page server" can not be started. As well when i try to view any .rpt file in IE its bringing the screen to download report. - I did add MIME type .rpt under IIS - I did enable Network DDE service Thanks in advance, Tito

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