where can I get sample of printing in qnx6.2.1?

I need the sample source code,thanks.

Didn’t you ask that question before? I think my response was “could you clarify”. You want to print what text? bitmap? pdf?

text and curve(just like line)

Then the best would be to use Photon. You render the data with Photon (just like you would on the screen but now its all internal) and use Photon printing support to dump it to printer. There is a section about this in the manual. Because this solution uses Photon printing subsystem you code will work with whatever model of printer you use given it’s one supported by QNX.

Other solutions are much more complicated ;-)

Is there any doc about it?

Yes there is, in the Photon chapter.