如果只打印信封,可以直接使用Printer对象打印,使用PictureBox预览,或者使用DataReport即可。
如果程序中打印种类比较多,可以考虑使用控件
http://usevb.yeah.net有打印控件下载

解决方案 »

  1.   

    typedef struct _formatrange { 
        HDC hdc; 
        HDC hdcTarget; 
        RECT rc; 
        RECT rcPage; 
        CHARRANGE chrg; 
    } FORMATRANGE; 
     The FORMATRANGE structure contains information that a rich edit control uses to format its output for a particular device. This structure is used with the EM_FORMATRANGE message.MembershdcDevice to render to.hdcTargetTarget device to format for.rcArea to render to. Units are in TWIPSrcPageEntire area of rendering device. Units are in TWIPSchrgRange of text to format.See AlsoEM_FORMATRANGE 可用于文本打印!!!!!!