登录
首页 » 其他 » Delphi 设置打印纸大小

Delphi 设置打印纸大小

于 2023-01-17 发布 文件大小:58.52 kB
0 218
下载积分: 2 下载次数: 1

代码说明:

Delphi 设置打印纸张大小,手动设置打印纸的长度和宽度,自定义纸张。相关代码:   procedure TForm1.SetPaperSize(cx, cy: Integer);   var    a,b,c: array[0..255]of char;    bb: Cardinal;    ee: PDEVMODE;   begin    printer.PrinterIndex := printer.PrinterIndex;    printer.GetPrinter(a,b,c,bb);    ee:= GlobalLock(bb);    ee^.dmPaperSize := DMPAPER_USER;    ee^.dmPaperLength := cy*10;    ee^.dmPaperWidth := cx*10;    ee^.dmFields :=ee^.dmFields or DM_PAPERSIZE or    DM_PAPERWIDTH or    DM_PAPERLENGTH;    ee^.dmFields := ee^.dmFields or DMBIN_MANUAL;    ee^.dmDefaultSource :=DMBIN_MANUAL;    GlobalUnlock(bb);    printer.PrinterIndex := printer.PrinterIndex;   end;

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 在C++环境下的冗余码编程,可进行8个字符的转换.
    在C++环境下的冗余码编程,可进行8个字符的转换.-C environment in the redundancy program, eight characters for the conversion.
    2022-03-02 02:19:33下载
    积分:1
  • 空中战机游戏 HTML5源码 1.0
    HTML5技术编写的空中战机小游戏源码,可在手机或其它移动设备上玩。画质不错,游戏反应速度也可以,代码相当完整,游戏运行界面请参考上图。
    2022-06-21 14:40:52下载
    积分:1
  • 用flex的webserivce自制的简易天气预报,能够显示各个城市的天气情况。...
    用flex的webserivce自制的简易天气预报,能够显示各个城市的天气情况。-Flex the webserivce with simple home-made weather forecasts, are able to show that weather conditions in various cities.
    2023-07-09 04:05:03下载
    积分:1
  • maze is an adventure game in turboC2 environment prepared by the small games, as...
    迷宫探险游戏是一个在turboC2环境下编写的小游戏,该游戏只要是完成小人从左上角闯过迷宫到达右下角的路径探险-maze is an adventure game in turboC2 environment prepared by the small games, as long as the game is complete villains leaped from the upper left corner of the maze to reach the lower right path adventure.
    2022-06-20 09:56:53下载
    积分:1
  • 又一个GDI+图形绘制及颜色填充实例
    又一个GDI+图形绘制及颜色填充实例,以前发过一些GDI绘图的例子,不过只是绘制图形,没有填充功能,这个实例可以填充所画出来的几何图形,多了一些功能,不过同样挺简单,测试运行效果如截图所示。
    2022-03-11 04:07:58下载
    积分:1
  • 行列式的计算
    行列式的计算-Determinant Calculation
    2023-08-22 12:00:02下载
    积分:1
  • C++MFC计算器
    一款简单的计算器的源代码,代码结构简单,通俗易懂,方便操作,功能齐全,是一个非常简单计算器,很有参考价值,对于初学者,也不难看懂程序,容易掌握C++编程流程,有分数类,有成员函数,析构函数等等,是包含各种基础知识的好例子。关于MFC的知识也包含非常全面,可以轻而易举地掌握C++工程语言。
    2022-03-03 12:49:08下载
    积分:1
  • 分享VB贪吃蛇源码
    再次与大家分享一款VB贪吃蛇源码,这一款贪食蛇的特点是设置功能比较多,界面也经过了美化,很漂亮,同时游戏还有多种功能设置,附有游戏关口编辑器,支持用户自定义关口,不过用到了控件,已附在源码包里。
    2022-04-19 15:21:07下载
    积分:1
  • 1.支持文章,论坛,图片,flash,音乐,BT等采集. 2.增加自定文件采集.用户可采集网页中的所有文件. 3.采集内容替换功能,用户可设置替换规则进...
    1.支持文章,论坛,图片,flash,音乐,BT等采集. 2.增加自定文件采集.用户可采集网页中的所有文件. 3.采集内容替换功能,用户可设置替换规则进行替换. 4.支持所有文件远程保存到本地. 5.断点续采功能.不受意外关闭影响,重新启动后可继续采集 不重复. 6.支持多种CMS导库,本程序 与(科汛网站管理系统V2.2)整合在一起. 7.增加2级分类采集。适应各种网站采集. 8.缓存机制,在缓存中保存数据,操作常见动作,大量减少对数据库的增加,删除频繁的操作。 用户:admin 密码:admin -1. Support articles, forums, photos, flash, music, so BT acquisition. 2. an increase in fixed document collection. website users can collect all the documents. 3. content Acquisition replacement gong energy, users can set up rules to replace the replacement. 4. all documents supporting the preservation of the local long-distance. 5. Breakpoint continued mining function. not the closure affected by the accident, the restart will continue after acquisition will not repeat them. 6. CMS support for a variety of guided arsenals, this procedure (Section website flood management system V2.2) together. 7. two additional classification acquisition. Adapt site acquisition. 8. Cache mechanism, the preservation of data cache,
    2022-01-25 17:08:02下载
    积分:1
  • 远距离调频电路图,最低68M最高108M,合适在试验室进行测试
    远距离调频电路图,最低68M最高108M,合适在试验室进行测试-Long-range FM circuit, the minimum 68M highest 108M, suitable for testing in the laboratory
    2022-07-09 07:35:19下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载