-
Delphi 设置打印纸大小
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;
- 2023-01-17 00:20:03下载
- 积分:1
-
ransanddns_ns
求解NS方程的各种rans方法及直接数值模拟方法介绍 很好的PPT(A very good solver introduction of the ns equation,rans method, dns.)
- 2013-12-14 22:00:54下载
- 积分:1
-
lianliankan
一款简单的连连看源码,有暂停 有限时,选中方块颜色会有变化(code of
an easy game)
- 2014-07-14 17:08:02下载
- 积分:1
-
simplemac
这是3篇关于ST simpleMac 通信协议开发的问题,有兴趣的可以看一下(there are 3 paper about st simplemac development )
- 2012-11-16 11:16:04下载
- 积分:1
-
python-recsys-master
《推荐系统实践》作者:项亮;书籍全部章节配套源代码;仅供学习分享,如有侵权立刻删除。(The "source code" of Recommended system practice.)
- 2017-07-09 20:58:51下载
- 积分:1
-
Partitioning
利用Kernel Kmeans对IEEE118节点电网进行分区(Based on Kernel Kmeans, partition the IEEE118 bus power grid)
- 2017-11-16 17:30:05下载
- 积分:1
-
又一个CSS3翻书动画效果
又一个CSS3翻书动画效果,之前发过不少翻书效果,有兴趣的自己搜索下,这一款个人认为翻书效果有些牵强,每个人的眼光不一样吧。
- 2023-02-23 21:00:04下载
- 积分:1
-
InternalTraining
congex的机器视觉的培训教程~,挺不错的 (congex the Machine Vision Training Guide ~, quite good)
- 2007-04-03 08:18:26下载
- 积分:1
-
d
说明: 包括跳频通信系统的整个工作流程,调制,跳频,解跳,解调。
其中,调制采用MSK调制方式,解调采用复差分解调方式。(Including the whole work flow of frequency hopping communication system, modulation, frequency hopping, de hopping, demodulation.
Among them, MSK modulation is used for modulation and complex differential demodulation is used for demodulation.)
- 2020-11-17 20:37:55下载
- 积分:1
-
CoolMeeting
一个简单的公司管理会议系统带sql数据库文件 下载就可以使用(A simple company management conference system)
- 2017-11-26 19:54:25下载
- 积分:1