Solved

Crystal Report Landscape preview and printing

Posted on 2004-09-27
3
546 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

708 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now