Click here to Skip to main content
15,912,932 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I have crystal reports in my windows application. I want to display all pages continuously by using scroll. I have seen that there is a property 'separatepages' in crystal report viewer for web applications. But unfortunately it doesn't found for my crystal report viewer. Is it available for windows application?
Is there anyway to display all pages and go to next page by scrolling? Or is there any way to set it pragmatically?
Posted
Updated 4-Dec-11 20:51pm
v2

1 solution

Instead of displaying the report in a crystal report viewer, you could convert it to a PDF and then just launch the PDF. Adobe displays all pages together with a scroll bar.

Here are the google results[^] for how to convert it.

Here is a method I use to launch pdfs after I've created them (it's in vb.net but should be easy to convert):
VB
Public Sub LaunchPDF(ByVal strFile As String)
    If strFile.Trim.Length <> 0 AndAlso System.IO.File.Exists(strFile.Trim) Then
        Try
            Process.Start(strFile.Trim)
        Catch ex As System.ComponentModel.Win32Exception
            MessageBox.Show("To view a report after it has been turned into a PDF, your computer must have Adobe Reader." & _
                            vbCr & "Please download and install Adobe Reader from http://www.adobe.com.", gblstrFormText)
        Catch ex As Exception
            MessageBox.Show("Unable to view PDF." & vbCr & "Error: " & ex.Message, gblstrFormText)
        End Try

    End If
End Sub



Hope this helps.
 
Share this answer
 
v2
Comments
shaijuvjohn 1-Mar-12 6:25am    
Thanks for your reply. But i need to show the report within the crystal report viewer itself. Is there any idea???

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900