Hi,

I have this 3rd party tool to do a print preview on some selected text, how can I show text in the preview? they gave this code which tells me to add my drawing code but I dont know how to do this part so some help would be most grateful

VB Code:
  1. Private Sub IPrintExt_DrawPage(ByVal Options As Variant, ByVal hdc As Long, ByVal Page As EXPRINTLib.IPage, pbContinue As Boolean)
  2.     Dim r As RECT
  3.     GetClipBox hdc, r
  4.     FillRect hdc, r, 1
  5.    
  6.     ' Add your own drawing code
  7.    
  8. End Sub
  9.  
  10. if you need to see the whole project I will post it.
  11.  
  12. Thanks
  13.  
  14. Hugh