Search found 34 matches: sided

Return to advanced search

Re: Printing double sided

That is what I’vve done so I will leave it in. The output is wrong on my printer but hopefully client printers will be good. Thank you Let us try again your tomorrow. Please post a small self contained program. Let us also add this if ISDUPLEXPRINTER()   PRNDUPLEX( n )endif
by nageswaragunupudi
Thu Oct 27, 2022 1:31 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Printing double sided
Replies: 24
Views: 1255

Re: Printing double sided

That is what I’vve done so I will leave it in. The output is wrong on my printer but hopefully client printers will be good. Thank you


Sent from my iPhone using Tapatalk
by TimStone
Thu Oct 27, 2022 1:08 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Printing double sided
Replies: 24
Views: 1255

Re: Printing double sided

Code: Select all  Expand view

PRINT ....
// Anywhere between PRINT between ENDPRINT
nSaveDuplex := PRNDUPLEX(  2 or 3 )
// ...
// ...
ENDPRINT
PRNDUPLEX( nSaveDuplex )
 

I am using Numeric value.
by nageswaragunupudi
Thu Oct 27, 2022 12:57 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Printing double sided
Replies: 24
Views: 1255

Re: Printing double sided

This may be an issue with my printer. If I use the option to select a printer, and in that Windows setup control select the proper output ( long binding ), it still comes out the same way. I can let it ride for now ...
by TimStone
Wed Oct 26, 2022 10:03 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Printing double sided
Replies: 24
Views: 1255

Re: Printing double sided

At what point are you issuing the command ? Are you passing it as a numeric ( 2 ) or string ( "2" ).  // Present the print selection option window and find the type   nPrnOpt := PRNSEL()   IF nPrnOpt = 0                               // If Exit is specified, leave the print report ...
by TimStone
Wed Oct 26, 2022 4:25 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Printing double sided
Replies: 24
Views: 1255

Re: Printing double sided

/* duplex enable */#define DMDUP_SIMPLEX    1#define DMDUP_VERTICAL   2#define DMDUP_HORIZONTAL 3  In portait mode, if we want to stitch/staple the book on left side (long edge), use DMDUP_VERTICAL(2), otherwise (very uncommon) if we plan to staple on the top (short side) then u...
by nageswaragunupudi
Wed Oct 26, 2022 2:05 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Printing double sided
Replies: 24
Views: 1255

Re: Printing double sided

Enrico Maria Giordano wrote:
TimStone wrote:Note that is does not take the value passed.


Yes, it does:

Code: Select all  Expand view
lpDevMode->dmDuplex = hb_parni( 1 );


Or am I missing something?


You are right.
Code: Select all  Expand view
nPrevMode := PRNDUPLEX( nNewMode )

woks perfectly.
by nageswaragunupudi
Wed Oct 26, 2022 8:45 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Printing double sided
Replies: 24
Views: 1255

Re: Printing double sided

... the referenced Microsoft site, Googled the process, etc, and it should work. However, in testing ( multiple times ) it doesn't. I always get short sided binding with either 2 or 3 . Tim
by TimStone
Tue Oct 25, 2022 9:57 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Printing double sided
Replies: 24
Views: 1255

Re: Printing double sided

Dear Tim,

function PRNDUPLEX() just uses one parameter and it is properly assigned here:

lpDevMode->dmDuplex = hb_parni( 1 );
by Antonio Linares
Tue Oct 25, 2022 9:42 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Printing double sided
Replies: 24
Views: 1255

Re: Printing double sided

I saw that after my last post, but the question becomes, how is it passed ?

C is not my strength ... but is PRNDUPLEX( 2 ) really passing the specific value correctly ?
by TimStone
Tue Oct 25, 2022 7:01 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Printing double sided
Replies: 24
Views: 1255

Re: Printing double sided

TimStone wrote:Note that is does not take the value passed.


Yes, it does:

Code: Select all  Expand view
lpDevMode->dmDuplex = hb_parni( 1 );


Or am I missing something?
by Enrico Maria Giordano
Tue Oct 25, 2022 7:28 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Printing double sided
Replies: 24
Views: 1255

Re: Printing double sided

Dear Tim,

Checking it with Mr. Rao

many thanks for your feedback
by Antonio Linares
Tue Oct 25, 2022 7:22 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Printing double sided
Replies: 24
Views: 1255

Re: Printing double sided

Sorry for the delay. I finally had the chance to test this. Here is what I have found: 1) I can use PRNDUPLEX( 1 ) to set the printer to one side only 2) I can use PRNDUPLEX( 2 ) or ( 3 ) to print both sides ( duplex ). HOWEVER, it prints incorrectly. Either 2 or 3 will print the same. It is called ...
by TimStone
Tue Oct 25, 2022 12:46 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Printing double sided
Replies: 24
Views: 1255

Re: Printing double sided

I don't know. Please try and let us know.
by Enrico Maria Giordano
Thu Oct 06, 2022 7:50 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Printing double sided
Replies: 24
Views: 1255

Re: Printing double sided

... didn't have corrective lenses ( to see the text clearly ) until today. Re-reading this, and the reference page, I would do the following: Single Sided =. PrnDuplex( 1 ) Dual sided, Landscape = PrnDuplex( 3 ) Dual sided, Portrait = PrnDuplex( 2 ) Now ... If my printer defaults to Single Sided, ...
by TimStone
Wed Oct 05, 2022 10:16 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Printing double sided
Replies: 24
Views: 1255
Next

Return to advanced search