含有jpg格式的数据需要输出到rave打印(系统需要穿过Internet,所以不可以用bmp格式),但好像rave的Bitmap只支持bmp格式。
rave的帮助中提到在TRvSystem的OnDecodeImage事件中用代码转换,但我发现这个事件好像根本不会触发。

解决方案 »

  1.   

    需要加一个补丁,
    问题16:打印JPEG法一:在RAVE上增加JPEG控件 Bitmap components can only display bitmaps, not jpegs.  You'll need the jpegadd-on that's available from the Nevrona web site,http://www.nevrona.com/rave/addons.shtml.  Installation instructions for TRaveJPEGImage--------------------------------------------1: Extract the files in this archive in your Rave main directory(normally d:\RAVE5).  Make sure to expand with directories so that the sourcewill be placed in it's own directory.2: Copy the NDCsJPEG.PAS file into the appropriate directory for the versionof Delphi or C++Builder that you are using (for Delphi 6.0 it would normallybe d:\RAVE5\D6).3: Start Rave, go to the preferences dialog (Edit|Preferences), select thePackages tab and add the D:\RAVE5\ND_JPEG.BPL package file to the list ofinstalled package and click OK.法二,程序中控制,具体参照//www.nevrona.com/rave/tips/rvtip31.html
    http://search.csdn.net/expert/topic/53/5311/2003/5/6/1743788.htm