Solved

Crystal Report Landscape preview and printing

Posted on 2004-09-27
3
550 Views
Last Modified: 2008-02-01
Hi,
maybe sound rediculous but I can't manage to make Crystal Report show me the preview in landscape and print the same.


I'm using Vb.NET 2003 and Crystal Report 9.0 that come with it.

Thanks again

Mazda3
0
Comment
Question by:mazda3
3 Comments
 
LVL 27

Accepted Solution

by:
planocz earned 50 total points
ID: 12162729
Check your CR report when you created it you can set it to landscape.

In you App. to print report  sample of a PDF....

Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.ReportSource
Imports CrystalDecisions.Shared


    Public myReport As New ReportDocument        'Gobal Report Doc
    Public sPDFPath as String

    Private Sub PrintReport(ByVal myReport)
        Dim myExportOptions As New CrystalDecisions.Shared.ExportOptions
        Dim myDiskFileDesOptions As New CrystalDecisions.Shared.DiskFileDestinationOptions

       sPDFPath = "MYREPORT.pdf"

       myDiskFileDesOptions.DiskFileName = sPDFPath

       myExportOptions = myReport.ExportOptions
       Dim myFormatTypeOptions As New CrystalDecisions.Shared.PdfRtfWordFormatOptions
                            With myExportOptions
                                .ExportDestinationType = CrystalDecisions.[Shared].ExportDestinationType.DiskFile
                                .ExportFormatType = CrystalDecisions.[Shared].ExportFormatType.PortableDocFormat
                                .DestinationOptions = myDiskFileDesOptions
                                .FormatOptions = myFormatTypeOptions
                            End With
        myReport.Export()
End Sub


0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VB.NET bulk update  of a table from another table 4 44
Handle KeyDown for ToolStripDropDownButton, ToolStripMenuItem 3 26
Variable Event ? 3 27
VB.NET 1 22
Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question