請問如何在運行時改變Rave Report的DataBand的高度?(50分)

  • 主题发起人 主题发起人 csdyyr
  • 开始时间 开始时间
C

csdyyr

Unregistered / Unconfirmed
GUEST, unregistred user!
我試在OnBeforePrint時-->Self.Height := 1,但是不起作用.
 
用DataMirrorSection Component 解決了.
 
TO csdyyr
来自:csdyyr, 时间:2004-5-17 11:49:00, ID:2613948 [显示:小字体 | 大字体]
win98系统+delphi6+SQL Server2000,服务器已运行。
我用ADOConnection.connectiontring连接SQL Server,
提供程序选Microsoft OLE DB Provider for ODBC Drivers没问题,但是要设一个ODBC
数据源。
提供程序选Microsoft OLE DB Provider for SQL Server却连接不上。提示:
[DBNETLIB] [ConnectionOpen(connect()).]SQL Server 不存在或访问被拒绝。
请问不用设ODBC数据源怎样才能连接上SQL Server?

我现在也遇到了你以前同样的问题,请问你当时是怎样解决的,能否帮助我一把!!!
EMAIL:NANHANG950333@163.COM
或就在本贴回复我
谢谢
 
我從Rave Report 官方網站的新聞組搜到的:
============================================================================
***Dynamic Databand height***
============================================================================
I've read all of the newsgroup articles, and it appears that there is no way
with the existing codebase to purposely dynamically alter the height of a
databand at runtime. In my case, I have 3-line records. This report is
being printed on a form, so the height is critical to ensure that subsequent
records still fill the proper spots. In the case where a flag in my record
is set, I need to print supplemental data in the next 3-line section.
Sometimes I'll need to print the supplemental data, sometimes not. I can't
afford to have blank 3-line gaps on my form - this is for the gov't, and
they just won't take it.
I guess my question is, why can't we dynamically change the height of a
databand? Apparently, it must be possible, since youdo
it with DataMemos.
How difficult would it be to make a datamirror expand the databand as well?
I'd like to have a datamirror with two mirrors, one a 3-line, and one a
6-line (the 3-line + supplemental). If I was only using the 3-line, then
the databand would print as normal. If I was printing the 6-line, then
it
would expand the databand to fit the larger size (for that record only).
My guess is that Nevrona already has the logic for this in the DataMemo.
Can you not expose a ExpandParent property in the DataMirror too?
Thanks.
===============================================================================
Hello John
The Data mirror already works this way, however you will need to define what
you need in a single data mirror rather than trying to append them together.
For example, one common use is to optionally print a band, by including the
band height to 0, and including a data mirror component.
I suggest that you create 2 mirrored sections, one with 3 lines and the
other with 6 lines. RAVE should then
be able to automatically expand the
data bands for you.
HTH
Regards
Trevor Keegan
==============================================================================
Trevor, that is fantastic news. Is this behaviordo
cumented?
I'lldo
some trials with it, using the technique you suggested.
Thanks so much for the help.
==============================================================================
Hello John,
Always good to see a man happy :-)
==============================================================================
 
请问不用设ODBC数据源怎样才能连接上SQL Server?
--------------------------------------------------
我不用設ODBC數據源,而是用ADO:你可以新加一個Database Connection-->ADO-->...Database1有兩個屬性AuthDesign,AuthRun分別用與設置設計時和運行時的數據庫連接.
 
不好意思,我答非所問.那是兩年前的帖子了.
我現在用ADOConnection.connectiontring是可以連接的.
ADOConnection1.ConnectionString := 'Provider=SQLOLEDB.1;Password=123456;Persist Security Info=true;User ID=sa;Initial Catalog=dsSystem;Data Source=servername'
 
非常感谢
我已连接成功了!
 

Similar threads

后退
顶部