打印的问题!!急啊,帮帮我啦!

top911 2003-08-22 10:39:14
用代码直接控制打印机打印
如何打印图片啊,
...全文
21 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhehui 2003-09-14
  • 打赏
  • 举报
回复
Rectangle rect = new Rectangle(new Point((int)leftMargin + 450,(int)30),
new Size((int)pictureBox1.Image.Size.Width,(int)pictureBox1.Image.Size.Height));
ev.Graphics.DrawImage(pictureBox1.Image,rect);
qiuafa 2003-09-01
  • 打赏
  • 举报
回复
#include <Printers.hpp>
#include <Graphics.hpp>
TPrinter Prntr = Printer();
Graphics::TBimap *bmp = new Graphics::TBimap;
bmp->LoadFromFile("your.bmp");
Prntr->BeginDoc();
Printer()->Canvas->Assign(bmp);
Prntr->EndDoc();
delete bmp;
top911 2003-08-25
  • 打赏
  • 举报
回复
完了,没有人啊,我顶,顶
top911 2003-08-23
  • 打赏
  • 举报
回复
没有人帮我吗??郁闷ing
top911 2003-08-22
  • 打赏
  • 举报
回复
用C++ builder怎么写??

1,978

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 其他语言讨论
社区管理员
  • 其他语言社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧