Print

Hello!
I want to know more for printing possibilities in QNX RTP 6.01 in text’s
mode and graphic’s mode.How can printing during using of standard widgets
like PtMultiText and PtPrintSel (and make preview)or anothers.What about
*.ps and *.phs files?Can I find somewhere open source examples?In Help,
there is not enough information about printing!
Thank You in advance!

Hello Svetlomir

Would an exmple of how Ped prints suffice? or were you looking for something more?

Thanks
Rodney

Svetlomir_Kazandjiev <svetlomir_1999@yahoo.com> wrote:

Hello!
I want to know more for printing possibilities in QNX RTP 6.01 in text’s
mode and graphic’s mode.How can printing during using of standard widgets
like PtMultiText and PtPrintSel (and make preview)or anothers.What about
*.ps and *.phs files?Can I find somewhere open source examples?In Help,
there is not enough information about printing!
Thank You in advance!

Hello Rodney and thank you for answear!
Yes, I would like an example and also of how Ped prints suffice and have few
questions.
I want to know if I use PtMultiText widget and PpPrintContext how can I
modify my print context.
For this purpose I use function PpSetPC(PpPrintContext_t *pc,
int member,
void const *
const data,
int lock);
I tried to set some of members (like:Pp_PC_PAPER_SOURCE or Pp_PC_PAPER_SIZE
or Pp_PC_SOURCE_SIZE) , but in the preview that generated with function
PtPrintSelection() nothing changed.
The preview remains the same ! I give you a part of my code to see and say
me where are my mistake(s) and if I have to add something other :

PpPrintContext_t *pc;
int action;
PtDim_t dim {850 , 1100} ; // is this the dimension of Letter
format ?
pc = PpCreatePC();
PpSetPC(pc , Pp_PC_SOURCE_SIZE , &dim , 0);
action = PtPrintSelection(ABW_win , NULL , “My Selector” , pc ,
Pt_PRINTSEL_DFLT_LOOK);

PpStartjob(pc) ;
PpContinuejob(pc);

PpPrintWidget(pc , ABW_multitext1 , NULL , NULL ,0);
// “multitext” is the widget from type PtMultitext which parent is “win” -
widget from type - PtWindow
// created by using PhAB

PpSuspendjob(pc);
PpEndjob(pc);

Even after this code my preview has dimension , as I saw in " .ps " file
, created by this code - 640x480 (not how I want to be 850x1100 - as I saw
in " .ps " file created from Ped when I trying to print with Ped) . We
looked .ps file because we didn’t succeed to open and have a look to .phs
file .
If it is possible we would like to receive code of Ped , with which Ped
prepare its preview to see how Ped makes its preview with format A4 .
I have second question: If I have text file, how can I create .phs file from
it (in order to print this file without functions for printing of PhAB
widgets).Is there a function to make .phs file from .txt file?
As you see we set some of members of PtPrintContext (pc) and generate .phs
file .Is it possible instead of this seting of members of PtPrintContext
(pc) to give him already prepared .phs file (like a pattern)?
I need for description of information in .phs file ,about pager and printer
properties, fonts and more.
Can I set this information from .phs file into the PtPrintSel widget?
Thank you !
Please send the reply of this message also to my e-mail:
svetlomir_1999@yahoo.com .




Gui Group <gui@qnx.com> wrote in message news:9tm8kv$8kb$2@nntp.qnx.com

Hello Svetlomir

Would an exmple of how Ped prints suffice? or were you looking for
something more?

Thanks
Rodney

Svetlomir_Kazandjiev <> svetlomir_1999@yahoo.com> > wrote:
Hello!
I want to know more for printing possibilities in QNX RTP 6.01 in text’s
mode and graphic’s mode.How can printing during using of standard
widgets
like PtMultiText and PtPrintSel (and make preview)or anothers.What about
*.ps and *.phs files?Can I find somewhere open source examples?In Help,
there is not enough information about printing!
Thank You in advance!

Hello Svetlomir

I’ve sent you the code that ped se to print documents. Please let me know
in this forum if it doesn’t answer all of your questions.

Thanks
Rodney


Svetlomir_Kazandjiev <svetlomir_1999@yahoo.com> wrote:

Hello Rodney and thank you for answear!
Yes, I would like an example and also of how Ped prints suffice and have few
questions.
I want to know if I use PtMultiText widget and PpPrintContext how can I
modify my print context.
For this purpose I use function PpSetPC(PpPrintContext_t *pc,
int member,
void const *
const data,
int lock);
I tried to set some of members (like:Pp_PC_PAPER_SOURCE or Pp_PC_PAPER_SIZE
or Pp_PC_SOURCE_SIZE) , but in the preview that generated with function
PtPrintSelection() nothing changed.
The preview remains the same ! I give you a part of my code to see and say
me where are my mistake(s) and if I have to add something other :

PpPrintContext_t *pc;
int action;
PtDim_t dim {850 , 1100} ; // is this the dimension of Letter
format ?
pc = PpCreatePC();
PpSetPC(pc , Pp_PC_SOURCE_SIZE , &dim , 0);
action = PtPrintSelection(ABW_win , NULL , “My Selector” , pc ,
Pt_PRINTSEL_DFLT_LOOK);

PpStartjob(pc) ;
PpContinuejob(pc);

PpPrintWidget(pc , ABW_multitext1 , NULL , NULL ,0);
// “multitext” is the widget from type PtMultitext which parent is “win” -
widget from type - PtWindow
// created by using PhAB

PpSuspendjob(pc);
PpEndjob(pc);

Even after this code my preview has dimension , as I saw in " .ps " file
, created by this code - 640x480 (not how I want to be 850x1100 - as I saw
in " .ps " file created from Ped when I trying to print with Ped) . We
looked .ps file because we didn’t succeed to open and have a look to .phs
file .
If it is possible we would like to receive code of Ped , with which Ped
prepare its preview to see how Ped makes its preview with format A4 .
I have second question: If I have text file, how can I create .phs file from
it (in order to print this file without functions for printing of PhAB
widgets).Is there a function to make .phs file from .txt file?
As you see we set some of members of PtPrintContext (pc) and generate .phs
file .Is it possible instead of this seting of members of PtPrintContext
(pc) to give him already prepared .phs file (like a pattern)?
I need for description of information in .phs file ,about pager and printer
properties, fonts and more.
Can I set this information from .phs file into the PtPrintSel widget?
Thank you !
Please send the reply of this message also to my e-mail:
svetlomir_1999@yahoo.com > .



Gui Group <> gui@qnx.com> > wrote in message news:9tm8kv$8kb$> 2@nntp.qnx.com> …
Hello Svetlomir

Would an exmple of how Ped prints suffice? or were you looking for
something more?

Thanks
Rodney

Svetlomir_Kazandjiev <> svetlomir_1999@yahoo.com> > wrote:
Hello!
I want to know more for printing possibilities in QNX RTP 6.01 in text’s
mode and graphic’s mode.How can printing during using of standard
widgets
like PtMultiText and PtPrintSel (and make preview)or anothers.What about
*.ps and *.phs files?Can I find somewhere open source examples?In Help,
there is not enough information about printing!
Thank You in advance!

Hello,Rodney!
Thank You very much for ped’s code for printing!
I will look it carefully and I’ll write to you in this forum!


Gui Group <gui@qnx.com> wrote in message news:9u04ua$btn$1@nntp.qnx.com

Hello Svetlomir

I’ve sent you the code that ped se to print documents. Please let me know
in this forum if it doesn’t answer all of your questions.

Thanks
Rodney


Svetlomir_Kazandjiev <> svetlomir_1999@yahoo.com> > wrote:
Hello Rodney and thank you for answear!
Yes, I would like an example and also of how Ped prints suffice and have
few
questions.
I want to know if I use PtMultiText widget and PpPrintContext how can I
modify my print context.
For this purpose I use function PpSetPC(PpPrintContext_t *pc,
int
member,
void
const *
const data,
int
lock);
I tried to set some of members (like:Pp_PC_PAPER_SOURCE or
Pp_PC_PAPER_SIZE
or Pp_PC_SOURCE_SIZE) , but in the preview that generated with function
PtPrintSelection() nothing changed.
The preview remains the same ! I give you a part of my code to see and
say
me where are my mistake(s) and if I have to add something other :

PpPrintContext_t *pc;
int action;
PtDim_t dim {850 , 1100} ; // is this the dimension of Letter
format ?
pc = PpCreatePC();
PpSetPC(pc , Pp_PC_SOURCE_SIZE , &dim , 0);
action = PtPrintSelection(ABW_win , NULL , “My Selector” , pc ,
Pt_PRINTSEL_DFLT_LOOK);

PpStartjob(pc) ;
PpContinuejob(pc);

PpPrintWidget(pc , ABW_multitext1 , NULL , NULL ,0);
// “multitext” is the widget from type PtMultitext which parent is
“win” -
widget from type - PtWindow
// created by using PhAB

PpSuspendjob(pc);
PpEndjob(pc);

Even after this code my preview has dimension , as I saw in " .ps "
file
, created by this code - 640x480 (not how I want to be 850x1100 - as I
saw
in " .ps " file created from Ped when I trying to print with Ped) . We
looked .ps file because we didn’t succeed to open and have a look to
…phs
file .
If it is possible we would like to receive code of Ped , with which Ped
prepare its preview to see how Ped makes its preview with format A4 .
I have second question: If I have text file, how can I create .phs file
from
it (in order to print this file without functions for printing of PhAB
widgets).Is there a function to make .phs file from .txt file?
As you see we set some of members of PtPrintContext (pc) and generate
…phs
file .Is it possible instead of this seting of members of
PtPrintContext
(pc) to give him already prepared .phs file (like a pattern)?
I need for description of information in .phs file ,about pager and
printer
properties, fonts and more.
Can I set this information from .phs file into the PtPrintSel widget?
Thank you !
Please send the reply of this message also to my e-mail:
svetlomir_1999@yahoo.com > .




Gui Group <> gui@qnx.com> > wrote in message
news:9tm8kv$8kb$> 2@nntp.qnx.com> …
Hello Svetlomir

Would an exmple of how Ped prints suffice? or were you looking for
something more?

Thanks
Rodney

Svetlomir_Kazandjiev <> svetlomir_1999@yahoo.com> > wrote:
Hello!
I want to know more for printing possibilities in QNX RTP 6.01 in
text’s
mode and graphic’s mode.How can printing during using of standard
widgets
like PtMultiText and PtPrintSel (and make preview)or anothers.What
about
*.ps and *.phs files?Can I find somewhere open source examples?In
Help,
there is not enough information about printing!
Thank You in advance!
\