weihengwhwh 发表于 2022-3-17 16:27:46

VS2019 MVC+AR14 创建区域代码报表 打印预览的时候,A1横和A0横 纸张的时候,下面....

本帖最后由 weihengwhwh 于 2022-3-17 16:29 编辑

VS2019 MVC+ JSViewer +AR14 创建区域代码报表 报表里面detail区域只添加一个图片控件(图片大小为A1横 3344*2361),图片的sizemode设置成Zoom
打印预览的时候,A1横(A0横) 纸张的时候,预览画面底部有很多余白(预览画面 的横和宽变成一样了)


A4,A3横,纵都没有问题,A1纵(A0纵)也没有问题
请问还需要什么设置么

this.PageSettings.Orientation = PageOrientation.Landscape;
this.PageSettings.PaperKind = PaperKind.Custom;

this.PageSettings.PaperWidth = pPaperWidth;
this.PageSettings.PaperHeight = pPaperHeight;


this.PrintWidth = pPaperWidth;
this.detail.Height =pPaperHeight;


private void detail_Format(object sender, EventArgs e)
      {
            this.picture1.Width = this.PrintWidth;
            this.picture1.Height = this.detail.Height;

            this.picture1.Image = this.m_Image;
      }



Bella.Yuan 发表于 2022-3-18 11:31:08

您好,sizemode有3个类型,设置成Zoom,相当于对图片进行了等比例缩放,所以页面会有留白,您设置成Stretch看看效果。


weihengwhwh 发表于 2022-3-18 12:53:28

Bella.Yuan 发表于 2022-3-18 11:31
您好,sizemode有3个类型,设置成Zoom,相当于对图片进行了等比例缩放,所以页面会有留白,您设置成Stretch ...

谢谢你的回复,这3个类型都设置过,都一样的问题

Bella.Yuan 发表于 2022-3-18 17:03:05

weihengwhwh 发表于 2022-3-18 12:53
谢谢你的回复,这3个类型都设置过,都一样的问题

不客气,目前sizemode确实只有这3个类型,分析您的问题后纸张大小为A1/A0时出现预览留白,这个看着是受纸张大小影响,目前不需要进行别的设置。
页: [1]
查看完整版本: VS2019 MVC+AR14 创建区域代码报表 打印预览的时候,A1横和A0横 纸张的时候,下面....