各位大虾用没用过kodak.ocx,是pb自带的控件
我用ole连接了一个kodak.ocx控件,它有一个函数是printimage,但是不知道该怎么用,不知那位不吝赐教? 问题点数:50、回复次数:3Top
1 楼caolei1974(梦飞扬)回复于 2001-05-29 08:22:00 得分 0
难道没有人用过Top
2 楼pbnet(海小鸟)回复于 2001-05-29 16:31:00 得分 20
koday .ocx 并非PB自带的,它是安装WINDOWS98时就装上的,它分为图像编辑控件、图像管理控件、图像扫描控件、批注及缩略图。
经常使用的是它的扫描控件,在98下无须注册OCX便可使用。
不知你使用的那一个Top
3 楼xingxin(星心)回复于 2001-05-29 18:16:00 得分 30
我想pbnet(海小鸟) 说的是对的,你用的应该是图像编辑控件,函数的参数可以通过 browser来查看,详细的资料可以点住控件按右键,有OLE control help,里面什么都有,希望下次不会见到这样的提问了!!!!!
我摘录一下:自己再试一下!! good lucky to you!!!1
PrintImage(any StartPage, any EndPage, any OutputFormat, any Annotations, any Printer, any Driver, any PortNumber) ;
PrintImageAs(any StartPage, any EndPage, any OutputFormat, any Annotations, any JobName, any Printer, any Driver, any PortNumber)
Image Edit control
语法:
object.PrintImage [StartPage,EndPage,OutputFormat,Annotations,Printer,Driver,PortNumber]
参数: 数据类型 解释
StartPage Long 打印起始页
EndPage Long 打印终止页
OutputFormat 输出格式
(enumerated) The output format to be used:0 -- Pixel to pixel
1 -- Inch to inch (default)
2 -- Fit to page
Annotations Boolean 是否打印注解
True -- Annotations will be printed
False -- Annotations will not be printed
Printer String
or The name of the printer
Long The printer device context (HDC) value (C++ only -- see "Special Note").
Driver String The name of the printer driver (applicable only when the Printer parameter is specified as a string)
PortNumber String The name of the output port (applicable only when the Printer parameter is specified as a string)
Return Value
None
Remarks
If an image is displayed when the PrintImage method is invoked, the image is printed as it appears, including any changes made.
If an image is not being displayed, the PrintImage method prints the image specified in the Image property. If an image is not being displayed and the Image property does not contain the file name of an image, the PrintImage method generates an error.
If the StartPage and EndPage parameters are not entered, this method prints all pages by default.
If the Annotations parameter is not specified, all annotations are printed by default.
Special Note
If you use a hardware device context (HDC) value to specify the Printer parameter, you must call StartDoc and StartPage prior to passing the HDC value. And you must call EndPage and EndDoc after passing the HDC value.
HDC is a C++ interface only; it is generated through C++ calls. StartDoc and StartPage are C++ calls that must be executed prior to calling the PrintImage method. EndPage and EndDoc are C++ calls that must be executed after calling the PrintImage method. Note that if you specify an HDC value for the Printer parameter, you do not have to specify the Driver and PortNumber parameters.
See Also
Copyright ?Kodak, 1995-1997
Top




