水晶报告纸张尺寸问题 [英] crystal report paper size problem

查看:73
本文介绍了水晶报告纸张尺寸问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用vs2008&水晶报告。
问题是我用以下代码更改纸张尺寸。

i m using vs2008 & crystal reports.
the problem is when i change the paper size with the following code.

databaseDataSetTableAdapters.contactsTableAdapter cadp = new WindowsFormsApplication1.databaseDataSetTableAdapters.contactsTableAdapter();
databaseDataSet ds = new databaseDataSet();
cadp.Fill(ds.contacts);
CrystalReport1 cr = new CrystalReport1();
cr.SetDataSource(ds);
cr.PrintOptions.PaperSize = PaperSize.PaperFanfoldStdGerman;
crystalReportViewer1.ReportSource = cr;


它在crystalreportviewer中显示正确的纸张尺寸,但在打印时,它以A4纸张尺寸打印。
我已经尝试将打印首选项更改为US STD Fanfold,但它不会产生任何影响。

我不知道上面代码中是否有错误请指导我...

it shows me the correct paper size in crystalreportviewer but at the time of printing, it prints at the size of A4 paper size.
i have tried changing the printing preferences to US STD Fanfold but it does'nt take any effect.

i don't know if i m wrong in above code please guide me...

推荐答案

Hi Bandish
Hi Bandish


这篇关于水晶报告纸张尺寸问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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