kodak控件中imgedit中显示的图片如何打印?本来以为很简单的!

shdcsdn 2003-12-10 01:19:35
哪位大佬用过呀!
...全文
132 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
rainstormmaster 2003-12-10
  • 打赏
  • 举报
回复
不如把你的代码贴出来


一个用api打印图片文件的例子:
Option Explicit
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

Private Sub Command1_Click()
ShellExecute Me.hwnd, "print", "d:\mc\123.bmp", vbNullString, vbNullString, 3
End Sub
rainstormmaster 2003-12-10
  • 打赏
  • 举报
回复
//这个pringimage()是否还要写返回值
Sub PrintImage([StartPage], [EndPage], [OutputFormat], [Annotations], [Printer], [Driver], [PortNumber])

是sub,哪里来的返回值
shdcsdn 2003-12-10
  • 打赏
  • 举报
回复
这个pringimage()是否还要写返回值
shdcsdn 2003-12-10
  • 打赏
  • 举报
回复
我也是这样写的,错误提示为:编译错误,类型不匹配
我还在imedit1.printimage()
前加了ImgAdmin1.ShowPrintDialog Form1.hwnd,
还是不好用
SoHo_Andy 2003-12-10
  • 打赏
  • 举报
回复
XP当中就没有这些控件了,如果考虑用户使用WInxp的话,还是不用这几个控件啦
hxy2003 2003-12-10
  • 打赏
  • 举报
回复
ImgEdit1.PrintImage PrintStartPage, _
PrintEndPage, _
ImgAdmin1.PrintOutputFormat, _
ImgAdmin1.PrintAnnotations

1,451

社区成员

发帖
与我相关
我的任务
社区描述
VB 控件
社区管理员
  • 控件
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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