DC Print Error

This forum is for eXpress++ general support.
Post Reply
Message
Author
gradosic
Posts: 45
Joined: Tue Dec 07, 2010 2:11 pm
Location: Croatia - Europe
Contact:

DC Print Error

#1 Post 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
Attachments
XPPERROR.zip
log
(716 Bytes) Downloaded 683 times
Print_uplate.zip
source function
(1.58 KiB) Downloaded 687 times
Print Screen
Print Screen
Picture.png (37.73 KiB) Viewed 9410 times
Goran Radosic

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DC Print Error

#2 Post 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.
The eXpress train is coming - and it has more cars.

gradosic
Posts: 45
Joined: Tue Dec 07, 2010 2:11 pm
Location: Croatia - Europe
Contact:

Re: DC Print Error

#3 Post 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...
Goran Radosic

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DC Print Error

#4 Post 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.
The eXpress train is coming - and it has more cars.

Post Reply