when you have a hdc from printer(CreateDC)then you can
read from your file in the loop and use StartPage and StartDoc
use TextOutor DrawText for write to printer and the end EndPage and EndDoc
(you need to check if your file is > from a page)
if you need to print a image you can draw image to dc from printer you can open your file(Image) and use from handle printer for print it.(if you have a hdc you ability to print image or text its not only for printer i think that windows programming is work with handles)
But this file can be a .DOC file, with image included and formatted texts (bold, italic,...), then I need to build a app that the user select any file and OK. The app should send the file to a postscript printer for convert to .PS format.
Can I do this, only with my app?
When you have each file (psd,3d,pdf,txt,...)first you need to read file for example a jpg file
you can use from a class CImage or GDI+ or you can read directly after read you want to print
(for example you need to print a psd file(photoshop) you cant use from a function for read you and print
you need to a structure for read this file and convert it to a for example hbtimap(you can see a example from read psd files in codeproject)
and then you can print this file.now you want to print doc file its like this you need to read this file and convert a foramt for print
A app cannot to print a file from disc directly its right you need to read to file and above