Solved

Crystal Report Landscape preview and printing

Posted on 2004-09-27
3
555 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

729 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