Page 1 of 1

DC Print Error

Posted: Fri Apr 10, 2015 2:00 am
by gradosic
Hi Roger,

This is the error of DCPRINT with new Alaska and new Express. It's happens after job is send to printer… now I released that this error occurs only if you change printer properties on print dialog screen (for example I changed to print in Duplex on both sides..).

br, Goran

Re: DC Print Error

Posted: Mon Apr 13, 2015 5:52 am
by rdonnay
Goran -

I can't compile and run your sample program.
I'm missing many files.

I'll try to reproduce this error but it probably will not be easy.
Are you saying that you can preview in 1.9 but not in 2.0?

I don't have a printer that prints in duplex mode.

Can you write a smaller sample that I can compile and run?

Are you saying that this happens if you change any property on the printer or only if you select duplex mode?

This code has been in eXpress++ for many years and I have not seen a report of a problem like this.

Is the preview window visible when this error occurs?
If it is visible, then the error should not occur.
If it is not visible, then the error would occur.

What I don't understand is how the window would get destroyed before arriving at line 1531 in the code. I would think that would happen only if the preview had a parent that was destroyed but the parent is always the AppDeskTop() so that would be impossible.

I suggest that you make the following change to \exp20\source\dclipx\_dcprc.prg

Line 1529

Was

Code: Select all

IF ::lPreview .AND. ::oDlg:status() > 0
  ::oDlg:setModalState(XBP_DISP_MODELESS)
  ::oDlg:destroy()
ENDIF
Is

Code: Select all

IF ::lPreview .AND. ::oDlg:status() == XBP_STAT_CREATE
  ::oDlg:setModalState(XBP_DISP_MODELESS)
  ::oDlg:destroy()
ENDIF
Then run BUILD20.BAT to rebuild DCLIPX.DLL.

Re: DC Print Error

Posted: Mon Apr 13, 2015 8:10 am
by gradosic
Hi Roger!

Answers in RED color:

I'll try to reproduce this error but it probably will not be easy.
Are you saying that you can preview in 1.9 but not in 2.0?
-No, same error in both versions

I don't have a printer that prints in duplex mode.
-I'll bring it to you in Boise if you want :D :D :D

Can you write a smaller sample that I can compile and run?
-No need, code change resolve problem (this problem)...

Are you saying that this happens if you change any property on the printer or only if you select duplex mode?
-Not only duplex... duplex and some other (non standard) properties.

This code has been in eXpress++ for many years and I have not seen a report of a problem like this.
-Me also, but in last few months I had lot's of problem with DCprint. for example similar problem in December that you solve me...

Is the preview window visible when this error occurs?
-Yes, but without content of print... only white window, look at printscreen that i attach to board

If it is visible, then the error should not occur.
If it is not visible, then the error would occur.

What I don't understand is how the window would get destroyed before arriving at line 1531 in the code. I would think that would happen only if the preview had a parent that was destroyed but the parent is always the AppDeskTop() so that would be impossible.
-I realy don't know why this occur but after I change as you tell me, everything is working fine...

I suggest that you make the following change to \exp20\source\dclipx\_dcprc.prg
-I did, and it's working OK. Please change that in source code for future updates...

Re: DC Print Error

Posted: Mon Apr 13, 2015 8:35 am
by rdonnay
I suggest that you make the following change to \exp20\source\dclipx\_dcprc.prg
-I did, and it's working OK. Please change that in source code for future updates...
I have already done so.
I'm glad it fixed your problem.