关于水晶报表的两个问题,每个20分

bjddd192 2007-08-22 01:04:17
1。我在添加水晶报表设计的时候直接绑定上了数据库,不知道这是不是所谓的拉模式,然后我调整好以后,用推模式去推数据,却发现数据还是拉模式下的那些数据,根本不变,请问我是不是要改哪里才能换到推模式(VS2005)?
2。我在水晶报表画线做表格,上面的都OK,只是我的每行高度不一致,因此可能导致分页的时候下面多画出半行来,很丑,我没有办法,只在页尾加了一条线把他先闭上,请问高手你们会怎么弄才好?
...全文
146 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
bjddd192 2007-09-13
  • 打赏
  • 举报
回复
我还是没找到
我是VS2005
不过用代码解决了
还是谢谢你
xwdd129 2007-08-23
  • 打赏
  • 举报
回复
格式化字段对象里有这些选项~
xwdd129 2007-08-22
  • 打赏
  • 举报
回复
1,推模式和拉模式是两种报表设计模式,直接绑定数据库的是拉模式,而推模式设计要依赖于所谓的内存数据库(即DataSet),报表设计时的字段和后来的数据都要填到这里,再赋给报表。 推拉模式并不是两种格式,没有转换的说法,想转换就要重新设计;

2,字段内容不一样多肯定会有这个问题,试试取消“将对象保持在一起”和“换页时关闭边框”等选项;
bjddd192 2007-08-22
  • 打赏
  • 举报
回复
“将对象保持在一起”
是不是“节专家”里面的“保持在一起”
“换页时关闭边框”
在哪里,我找了半天没找到


请指教~~
bjddd192 2007-08-22
  • 打赏
  • 举报
回复
图标区人气这么少??????????
bjddd192 2007-08-22
  • 打赏
  • 举报
回复
谢谢,第一个问题已经解决
原来我用页面传递dataTable给打印页面绑定,这样不行
将查询语句传递过去,再在打印页面绑定dataSet就可以了

第二个问题我回去试试
先谢谢了^_^
SET QUOTED_IDENTIFIER ON GOSET ANSI_NULLS ON GOALTER proc sp_nrc_pattern_body /*this procedure is for the report ID:NRC002 Other procedure sp_uploadpicwithpath: upload the pictures to database */ ASdeclare @fname_in varchar(1000) ,@m_tbname varchar(50) --the name of the temporary table ,@sql varchar(8000) ,@fname varchar(1000) --catalogue and file name,the procedure need use ,@pattern_id_tmp intDECLARE @RC int , @rtncode int--get the size of the duct into filecreate table #pic (img image)create table #nrc_pattern_tmp ( nrc_pattern_id int, nrc_pattern_name nvarchar(30), nrc_pattern_desc nvarchar(60), nrc_pattern_path nvarchar(250), nrc_pattern_active_ind varchar(1), img image)insert into #nrc_pattern_tmp( nrc_pattern_id , nrc_pattern_name, nrc_pattern_desc, nrc_pattern_path, nrc_pattern_active_ind) select nrc_pattern_id , nrc_pattern_name, nrc_pattern_desc, nrc_pattern_path, nrc_pattern_active_ind from nrc_pattern where nrc_pattern_type=‘1‘ order by nrc_pattern_group_id,nrc_pattern_namedeclare cur_nrc_pattern cursor for select nrc_pattern_id,nrc_pattern_path from #nrc_pattern_tmp open cur_nrc_pattern fetch cur_nrc_pattern into @pattern_id_tmp, @fname while @@fetch_status = 0 begin --create the data process answer file set @m_tbname=‘[##temp‘+cast(newid() as varchar(40))+‘]‘ set @rtncode = 0 exec @rc = sp_uploadpicwithpath ‘#pic‘, @m_tbname, @fname,@rtncode output if @rtncode = 0 and @rc = ‘0 ‘ begin --duct the data into the formally table set @sql=‘update #nrc_pattern_tmp‘ +‘ set img=b.img‘ +‘ from #nrc_pattern_tmp a,‘ +@m_tbname +‘ b‘ +‘ where a.nrc_pattern_id =‘ + convert(char(4),@pattern_id_tmp) exec(@sql) --drop the temp table @m_tbname set @sql=‘drop table ‘+@m_tbname exec(@sql) end fetch cur_nrc_pattern into @pattern_id_tmp, @fname end close cur_nrc_pattern deallocate cur_nrc_pattern set @sql=‘select nrc_pattern_name , nrc_pattern_desc , nrc_pattern_active_ind, img from #nrc_pattern_tmp‘ exec(@sql) --set @sql=‘select nrc_pattern_path from NRC_PATTERN -- join p_test -- on nrc_pattern_path.pic=p_test.pic‘ -- exec(@sql) set @sql=‘drop table #pic‘ exec(@sql) set @sql=‘drop table #nrc_pattern_tmp‘ exec(@sql)GOSET QUOTED_IDENTIFIER OFF GOSET ANSI_NULLS ON GO

4,819

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 图表区
社区管理员
  • 图表区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧