Luan...,
There are (a least) a couple of approaches;
1. If you have Acrobat Writer(its not free) or something similar which gives you an Acrobat Printer Object, that printer will appear in your available printers list. Print to that printer and an Acrobat PDF file will be produced, email that doc to your user. If he has Acrobat reader(it is free) he will be able to read it.
2. Create a picture box on a form the same size as your paper, print the report to the picture instead of the printer. You can make the picturebox invisible but otherwise you have basics of a print preview feature too. The code to do this can be minimal if you do stuff like;
dim Pdev as object
If IWantPrintout then
set Pdev = Printer
else 'I just want preview
set Pdev = MyPicture(0)
end if
'carry on with your normal printing using
Pdev.Print stuff
'rather than your usual Printer.Print stuff
'at the bottom do
if TypeOf Pdev is Printer then Printer.EndDoc
'new pages can be handled like
if TypeOf Pdev is Printer then
Printer.NewPage
else
set Pdev = MyPicture(PageNo)
end if
You can then save out the contents of the picture(s) to a bitmap (.bmp file) and attach that to an email. Any recipient with a basic graphics editor eg. MS Paint will be able to view the file/ report. Alternatively and a little more sophiticated copy and paste the contents of the picture and copy (wrap) it into an open Word document; then attach the Word doc to an email. The recipient will then require Word.
The quality of the image of the report contained in the bitmap will be inferior to that acheivable with Acrobat but may be adequate for most purposes.
Hope this helps.
Regards Hugh,