我在用DELPHI6中做报表时,报表的格式为A3横放的,但是在显示器尺寸相同分辨率相同的不同机子上,运行后,有的报表就可以全部显示,但是有的报表横向就显示不完,请那位高手帮帮我,谢谢
解决方案 »
- 帮个忙,从VCL中将TToolBar和TToolButton抽取出来,重新封装成新的组件
- 多线程 调用webservices下载文件
- 中文菜单我未加快捷键,怎么自动产生呢?如何去除呢?!
- 我用了XPMenu控件,但是标题栏和Form还是原来那样,要怎么样就可以做得比较好看呢?
- 急急!!!高手请进,一个调试的问题》》。
- 奇怪,怎么会没有这个字段呢?
- 晕~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- |小女子想问:怎么把数据库内的内容保存为文本(TXT)文件;急!!!!!!!!
- 代码来了,大家快来下载啊!我是 兔子(Rabbit1125)!
- delphi程序转C#
- 怎样在delphi中的adoquery中调用access的带参数的查询?请高手指教
- 很菜的问题,在线等待,解决后100分献上!!!!!!!
implementationconstScreenWidth: LongInt = 800; {I designed my form in 800x600 mode.}ScreenHeight: LongInt = 600;{$R *.DFM}procedure TForm1.FormCreate(Sender: TObject);beginscaled := true;if (screen.width <> ScreenWidth) thenbeginheight := longint(height) * longint(screen.height) DIV ScreenHeight;width := longint(width) * longint(screen.width) DIV ScreenWidth;scaleBy(screen.width, ScreenWidth);end;end;下面是解决字体大小的代码:USES typinfo; {Add this to your USES statement.}vari: integer;beginfor i := componentCount - 1 downto 0 dowith components[i] dobeginif GetPropInfo(ClassInfo, 'font') <> nil thenfont.size := (NewFormWidth DIV OldFormWidth) * font.size;end;end;下面的函数可以解决问题:Form:需要调整的Form,OrgWidth:开发时屏幕的宽度,OrgHeight:开发时屏幕的高度。注意:需要把Form的Scaled设置为True。procedure AdjustForm(Form: TForm; const OrgWidth, OrgHeight: integer);beginwith Form dobeginWidth := Width * Screen.Width div OrgWidth;Height := Height * Screen.Height div OrgHeight;ScaleBy(Screen.Width, OrgWidth);end;end; procedure TForm1.Button1Click(Sender: TObject);beginAdjustForm(Self,1280,1024);end;