Adding Custom Paper Size in Crystal Reports

Visual Basic

    Sponsored Links

    Next

  • 1. !! Exporting to PDF - Exception from HRESULT: 0x80043AC6 !!
    Hi, Help! I am trying to export a Crystal 8.5 report to PDF using VB.NET. Here is my sample code: m_Appn = CreateObject("CrystalRunTime.Application", "") m_cReport = m_Appn.OpenReport("C:\report.rpt") m_cExport = m_cReport.ExportOptions m_cExport.FormatType = CRAXDRT.CRExportFormatType.crEFTPortableDocFormat m_cExport.DestinationType = CRAXDRT.CRExportDestinationType.crEDTDiskFile m_cExport.DiskFileName = "C:\report.pdf" m_cReport.Export(False) When I reach the last line I am returned.. Exception from HRESULT: 0x80043AC6 I've seen this happen plenty of times but can't seem to find a definitive answer. Are there certain version of DLLs I should be looking for? TIA
  • 2. Disable Group Header
    Hi all, I wanted to know if it was possible to disable particular Group Header section. I know it is possible to suppress the section but I want to disable it. I have looked everywhere but haven't found any specific information. I want to disable it from an aspx page not directly in Crystal reports. The code below just suppresses the header. If GroupType = "C" Then rpt.ReportDefinition.sections ("GroupHeaderSection1").SectionFormat.EnableSuppress = True rpt.ReportDefinition.Sections("GroupFooterSection1").SectionFormat.EnableSuppress = True Else rpt.ReportDefinition.Sections("GroupHeaderSection3").SectionFormat.EnableSuppress = True rpt.ReportDefinition.Sections("GroupFooterSection3").SectionFormat.EnableSuppress = True End If I appreciate any help in this matter Thank You MB
  • 3. Database login required after installing SP1
    Hello, I am using VB.Net and the bundling Cristal Reports. I have a Report with several Subreports. Some Subreports are using one DataSet containing several DataTables. (1) If I run the program on machines which have the VB.Net Environment installed it *works*. If I afterwards install the SP CRNetIOWin_en_SP1.exe, a login window occurs: -- Database Login: -- Table: <Name of *DataTable* of the DataSet> Server Name: [] Database: [] LoginID: [] Passwd: [] (2) If I am trying to deploy the project to a normal client computer, I do the following - Execute the Merge Module Setup - Install the SP CRNetIOWin_en_SP1.exe Result: The strange Database Login Window described above pops up. (3) Besides: In my Programming Environment, SetDataSource() receives *one* Parameter, which is of type DataSet. In some example code from a book, SetDataSource() receives *three* Parameters, and the first one is of Type DataTable. Question: How can I avoid this strange Database Login Window? Thank You Very Much Joachim
  • 4. Web publishing question
    I am very new to this and forgive my ignorance, but I have built a VB .Net application that creates a report that is formatted exactly the way that I would like it to appear on our current website. What would be the easiest way to export this report to the web? The XML file is not formatting and grouping the data the way that I would like. Again, please forgive my ignorance. I am not new to programming windows forms, but I am new to getting this data to our webmaster or to be able to automatically take the file and copy it to our web site. Thanks for the help. Brad

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