c#Crystel报告打印选项 [英] c# Crystel report while printing option

查看:67
本文介绍了c#Crystel报告打印选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Crystal报告,包括子报告。我有一些跟随记录的记录



产品国家

斯里兰卡

美国

C印度



我要打印如下以下



产品国家

A斯里兰卡,美国

c印度

(我需要在Crystel报告中使用WhilePrinting Record选项)

请尽快帮助我谢谢你

解决方案

你好



您可以使用与Crystal Report相同的微软报表查看器,但包含打印选项并导出到excel和world以及pdf和其他选项检查此链接:



part1 [ ^ ]



part2 [ ^ ]



part3 [ ^ ]


< blockquote>试试这个查询,它可能对你有帮助。



 选择  distinct  ST2.Product,
选择 ST1.Country + ' ,' AS [ text ()]
来自 dbo.AA ST1
其中 ST1.Product = ST2.Product
ORDER BY ST1.Product
For XML PATH(' '))[Country]
来自 dbo.AA ST2


I'm using Crystal report including sub report. i have some record like followiing

Product Country
A Sri Lanka
A USA
C India

I want to print this like following

Product Country
A Sri lanka,USA
c India
(I need to use WhilePrinting Record option in Crystel report)
Please help me ASAP thank you

解决方案

Hello

You can use microsoft report viewer same as Crystal Report but include print option and export to excel and world and pdf and other option check this link :

part1[^]

part2[^]

part3[^]


Try this query, it may help you.

Select distinct ST2.Product,
     (Select ST1.Country + ',' AS [text()]
      From dbo.AA ST1
      Where ST1.Product = ST2.Product
      ORDER BY ST1.Product
      For XML PATH ('')) [Country]
From dbo.AA ST2


这篇关于c#Crystel报告打印选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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