填写一行TEXT OBJECT后创建新行 [英] Create New Row after filling a row of TEXT OBJECT

查看:59
本文介绍了填写一行TEXT OBJECT后创建新行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

使用VBNET2008,Crystal Report 9,SQL SERVER 2000,Northwind数据库进行应用。


CrystalReportInvoice。 RPT通过CrystalReportViewer1嵌入到VBNET2008 FORM中,其数据源未连接到表或数据集。


根据团队负责人的要求,在Crystal Report SECTION DETAILS中插入了3个Crystal Report TEXT OBJECT,它使用DATA READER填充数据,DATA READER由7行数据组成,但只有一行显示是因为DATAREADER行覆盖之前的行因为没有创建NEW LINE。


以下是编码

Hi there,

Using VBNET2008, Crystal Report 9, SQL SERVER 2000, Northwind database for application purposes.

The CrystalReportInvoice.RPT was embedded onto VBNET2008 FORM via CrystalReportViewer1 whose datasource was not connected to table or dataset.

As requested by Team Leader, 3 Crystal Report TEXT OBJECT were inserted in the Crystal Report SECTION DETAILS which are filled with data using DATA READER which consist of 7 rows of data but only one row was display because the DATAREADER Row override the row before it becaues no NEW LINE was created .

Here are the coding

展开 | 选择 | Wrap | 行号

推荐答案

就我所见,你在循环中一遍又一遍地重新填充相同的对象。你应该在你的...结束while循环中创建新对象。


尝试

For as far as I can see, you refill the same objects over and over again in your loop.You should create the new objects within your While...End While-loop.

Try

展开 | 选择 | Wrap | 行号


真棒MrMancunian

再次感谢您提供的信息。我会尝试一下。一旦我开始工作,我将在这里发布编码,与拥有相同方法的Newbies分享。


你非常棒。


干杯,

Lennie
Hi Awesome MrMancunian
Thank you again for your information. I will try it out. Once I got it working I will post the coding here to share with Newbies who have the same approach.

You are very awesome.

Cheers,
Lennie


你好MrMancunian


我修改了代码添加单词NEW

cryTextObject = New objRpt.ReportDefinition.ReportObjects(" ctxtOrderId")

cryTextObject = New objRpt.ReportDefinition.ReportObjects(" cTxtOrderDa te")

cryTextObject = New objRpt.ReportDefinition.ReportObjects(" cTxtProduct e")

它让我惊讶地生成了这条错误消息。

未定义类型''objRpt.ReportDefinition.ReportObjects'。
Hi MrMancunian

I amended the codes by adding the word NEW
cryTextObject = New objRpt.ReportDefinition.ReportObjects("ctxtOrderId ")
cryTextObject = New objRpt.ReportDefinition.ReportObjects("cTxtOrderDa te")
cryTextObject = New objRpt.ReportDefinition.ReportObjects("cTxtProduct e")

It generated this error message to my surprise.

Type ''objRpt.ReportDefinition.ReportObjects'' is not defined.


这篇关于填写一行TEXT OBJECT后创建新行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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