CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
不看会后悔的Windows XP之经验谈 简单快捷DIY实用家庭影院
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  PowerBuilder >  控件与界面

各位大虾用没用过kodak.ocx,是pb自带的控件

楼主caolei1974(梦飞扬)2001-05-28 17:27:00 在 PowerBuilder / 控件与界面 提问

我用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

相关问题

  • 请问各位:PB中有哪几种代码的注释符号?(没用过PB,请大家指教)
  • 以前没用过ASP.
  • 请帮忙,没用过applet
  • 小妹第一天上班,公司用的是PB,以前没用过(以前学的是C#),请高手多多指教!
  • 没用过COOLBAR,请教老手用法,谢谢!
  • 各位帮忙,从没用过Java...关于数据库
  • 大家看一看,难道都没用过吗
  • 没用过2000,不知道这个问题
  • 从没用过UBB的人,问一个关于UBB的问题
  • Jmail没用过,求一个使用例子!

关键词

  • c++
  • 控件
  • 图像
  • 打印
  • printimage
  • ocx
  • outputformat
  • startpage
  • printer
  • endpage

得分解答快速导航

  • 帖主:caolei1974
  • pbnet
  • xingxin

相关链接

  • PowerBuilder类图书
  • PowerBuilder类源码下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
北京创新乐知广告有限公司 版权所有, 京 ICP 证 070598 号
世纪乐知(北京)网络技术有限公司 提供技术支持
Copyright © 2000-2008, CSDN.NET, All Rights Reserved
GongshangLogo