Solved

Crystal Report Landscape preview and printing

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Exit the loop 4 49
rebind a grid after user clicks on node in treeview 1 41
Adding Existing Item to vb.net Project causes Errors 4 44
FInd Image Control Gridview 3 21
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

860 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