找回密码
 立即注册

QQ登录

只需一步,快速开始

weihengwh

注册会员

2

主题

11

帖子

19

积分

注册会员

积分
19
最新发帖
weihengwh
注册会员   /  发表于:2018-11-28 16:34  /   查看:5394  /  回复:13
ActiveReports12 SectionReport 明细行对齐方式设置无效问题
要求:设置明细行的数据垂直居中显示
明细行的每一个TextBox 的VerticalAlignment=Middle设置了,但是没有效果
应该要怎么设置呢

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x

13 个回复

倒序浏览
KearneyKang讲师达人认证 悬赏达人认证
超级版主   /  发表于:2018-11-28 18:17:49
沙发

能提供下你本地设计的报表文件吗?我这边做一个验证
回复 使用道具 举报
weihengwh
注册会员   /  发表于:2018-11-28 18:56:27
板凳
KearneyKang 发表于 2018-11-28 18:17
能提供下你本地设计的报表文件吗?我这边做一个验证

<?xml version="1.0" encoding="utf-8"?>
<ActiveReportsLayout Version="3.2" PrintWidth="10845" DocumentName="ARNet Document" ScriptLang="C#" MasterReport="0">
  <StyleSheet>
    <Style Name="Normal" Value="font-family: Arial; font-style: normal; text-decoration: none; font-weight: normal; font-size: 10pt; color: Black" />
    <Style Name="Heading1" Value="font-size: 16pt; font-weight: bold" />
    <Style Name="Heading2" Value="font-family: Times New Roman; font-size: 14pt; font-weight: bold; font-style: italic" />
    <Style Name="Heading3" Value="font-size: 13pt; font-weight: bold" />
  </StyleSheet>
  <Sections>
    <Section Type="PageHeader" Name="PageHeader" Height="360" BackColor="16777215" />
    <Section Type="GroupHeader" Name="GroupHeader1" Height="391.6012" BackColor="16777215">
      <Control Type="AR.Label" Name="Label3" Left="244.8" Top="89.27868" Width="2113.918" Height="288" Caption="所在地" Style="font-family: Arial; text-align: center" />
      <Control Type="AR.Label" Name="Label4" Left="2836.797" Top="89.28005" Width="1307.52" Height="288" Caption="目的" Style="font-family: Arial; text-align: center" />
      <Control Type="AR.Line" Name="Line2" X1="244.8" Y1="381.6002" X2="10775.52" Y2="381.6012" />
      <Control Type="AR.Line" Name="Line4" X1="244.8" Y1="4.32003" X2="245.4001" Y2="376.7991" />
      <Control Type="AR.Line" Name="Line6" X1="2836.797" Y1="0" X2="2836.797" Y2="372.959" />
      <Control Type="AR.Line" Name="Line5" X1="4144.32" Y1="8.64" X2="4144.32" Y2="381.599" />
      <Control Type="AR.Label" Name="Label1" Left="4144.32" Top="84.96001" Width="1307.52" Height="288" Caption="金额" Style="font-family: Arial; text-align: center" />
      <Control Type="AR.Line" Name="Line9" X1="5482.5" Y1="9.321084" X2="5482.5" Y2="382.2801" />
      <Control Type="AR.Line" Name="Line10" X1="244.8" Y1="8.640001" X2="10775.52" Y2="8.640988" />
      <Control Type="AR.Line" Name="Line11" X1="10775.52" Y1="8.64" X2="10775.52" Y2="381.599" />
    </Section>
    <Section Type="Detail" Name="Detail" Height="419.9999" BackColor="16777215">
      <Control Type="AR.Field" Name="txtSyozai" DataField="suozai" Left="244.8004" Top="112.32" Width="2504.16" Height="288" Text="TextBox10dsf" Style="font-family: Arial; font-size: 9pt; vertical-align: middle" />
      <Control Type="AR.Field" Name="txtMokuteki" DataField="mude" Left="2854.08" Top="112.32" Width="1199.52" Height="288" Text="TextBox10rewrqwerqwerqwrrwerqwerqwerqwer" Style="font-family: Arial; font-size: 9pt; text-justify: auto; vertical-align: middle; white-space: inherit; ddo-font-vertical: none; ddo-wrap-mode: inherit" />
      <Control Type="AR.Line" Name="Line13" X1="244.8004" Y1="0" X2="244.8004" Y2="400.3199" ANCHORB="1" />
      <Control Type="AR.Line" Name="Line19" X1="2836.8" Y1="0" X2="2836.8" Y2="400.3199" ANCHORB="1" />
      <Control Type="AR.Line" Name="Line3" X1="244.8" Y1="410.4" X2="10775.52" Y2="410.4011" />
      <Control Type="AR.Line" Name="Line7" X1="4144.32" Y1="0" X2="4144.32" Y2="372.959" ANCHORB="1" />
      <Control Type="AR.Field" Name="TextBox1" DataField="jinge" Left="4252.32" Top="84.96001" Width="1199.52" Height="288" Text="TextBox10" Style="font-family: Arial; font-size: 9pt; text-justify: auto; vertical-align: middle; white-space: inherit; ddo-font-vertical: none; ddo-wrap-mode: inherit" />
      <Control Type="AR.Line" Name="Line8" X1="5482.5" Y1="9.840038" X2="5482.5" Y2="410.1599" ANCHORB="1" />
      <Control Type="AR.Line" Name="Line12" X1="10775.52" Y1="10.08" X2="10775.52" Y2="410.3999" ANCHORB="1" />
    </Section>
    <Section Type="GroupFooter" Name="GroupFooter1" Height="330" BackColor="16777215" />
    <Section Type="PageFooter" Name="PageFooter" Height="360" BackColor="16777215" />
  </Sections>
  <ReportComponentTray />
  <PageSettings LeftMargin="288" RightMargin="288" />
  <Parameters />
</ActiveReportsLayout>
回复 使用道具 举报
weihengwh
注册会员   /  发表于:2018-11-28 18:58:41
地板
本帖最后由 weihengwh 于 2018-11-28 19:01 编辑

这个是报表显示的样子想要把【所在地】和【金额】的内容垂直居中对齐

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 使用道具 举报
KearneyKang讲师达人认证 悬赏达人认证
超级版主   /  发表于:2018-11-29 11:22:25
5#
设置居中显示就可以:

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 使用道具 举报
weihengwh
注册会员   /  发表于:2018-11-29 11:33:23
6#
KearneyKang 发表于 2018-11-29 11:22
设置居中显示就可以:

不是水平居中,是垂直居中
回复 使用道具 举报
KearneyKang讲师达人认证 悬赏达人认证
超级版主   /  发表于:2018-11-29 12:00:24
7#
你报表设计有问题,你的那个边框怎么使用line来设置的:
这样设置边框,点击属性——设置





展示效果:


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 使用道具 举报
weihengwh
注册会员   /  发表于:2018-11-29 13:39:40
8#
KearneyKang 发表于 2018-11-29 12:00
你报表设计有问题,你的那个边框怎么使用line来设置的:
这样设置边框,点击属性——设置

可以水平居左,垂直居中吗?
回复 使用道具 举报
weihengwh
注册会员   /  发表于:2018-11-29 13:55:33
9#
KearneyKang 发表于 2018-11-29 12:00
你报表设计有问题,你的那个边框怎么使用line来设置的:
这样设置边框,点击属性——设置

还有就是数据是动态生成的,比如,【所在地】的数据只有一行,【目的】的数据是多行,这个时候【目的】控件的高度被自动撑大了,而因为【所在地】的数据只有一行数据,所以,【所在地】控件本身没有改变高度,所以就不能居中显示了
回复 使用道具 举报
KearneyKang讲师达人认证 悬赏达人认证
超级版主   /  发表于:2018-11-29 15:45:39
10#
可以的垂直居中的,但是你说的那种情况区域报表有时确实存在,所有我推荐你使用RDL报表,这样就会解决你当前遇到的所有问题。
回复 使用道具 举报
12下一页
您需要登录后才可以回帖 登录 | 立即注册
返回顶部