在Windows应用程序的Crystal Reports中使用滚动显示所有页面 [英] Showing all pages using scroll in Crystal Reports in windows application

查看:70
本文介绍了在Windows应用程序的Crystal Reports中使用滚动显示所有页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我的Windows应用程序中有水晶报表.我想通过滚动连续显示所有页面.我已经看到在Crystal Report Viewer中为Web应用程序提供了一个"separatepages"属性.但是很遗憾,我的水晶报表查看器找不到它. Windows应用程序可用吗?
无论如何,是否有显示所有页面并通过滚动进入下一页的信息?还是有任何实用的方法来设置它?

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?

推荐答案

与其在Crystal Report查看器中显示报告,还可以将其转换为PDF,然后启动它. PDF. Adobe将显示所有页面以及滚动条.

这是
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):
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.


这篇关于在Windows应用程序的Crystal Reports中使用滚动显示所有页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆