Preview Change

This forum is for eXpress++ general support.
Message
Author
User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Preview Change

#11 Post by rdonnay »

Ok, I will get to this later today. I don't expect this to be an easy fix, that's why I've been putting it off.
The eXpress train is coming - and it has more cars.

omni
Posts: 554
Joined: Thu Jan 28, 2010 9:34 am

Re: Preview Change

#12 Post by omni »

Thanks. I thought that may be the case. The prc.prg that does work in case it will help is 254. All my clients on 1.9 use that express version. I do not think I can just replace that program in dclipx without crashing due to some method changes I saw using file compare in multiedit, and really did not want to do that anyway.

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

Re: Preview Change

#13 Post by rdonnay »

Please call me on this.

I don't know which sample of mine you are referring to.
Also, I want to see this on your computer via Teamviewer.
The eXpress train is coming - and it has more cars.

omni
Posts: 554
Joined: Thu Jan 28, 2010 9:34 am

Re: Preview Change

#14 Post by omni »

We can schedule that connection when its convenient. I am here the rest of today and all day tomorrow, except lunchtime (eastern time).

I can show you your prchoice.prg that is samples, or mine with some changes, but the preview window does not have anything to do with the program code since its handled by dclipx. I can also show how it works with a prior version by logging into one of our user sites if you want to see that. should not take long at all.

Fred

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

Re: Preview Change

#15 Post by rdonnay »

I tried writing several sample programs to reproduce the problem and I cannot replicate your problem.

I need to have you write me a small sample program that shows the problem.
The eXpress train is coming - and it has more cars.

omni
Posts: 554
Joined: Thu Jan 28, 2010 9:34 am

Re: Preview Change

#16 Post by omni »

Here is a testprt program and xpj. No files needed. It prints two pages in preview mode with our button settings.
When first page opens, max the screen and click on the page until the font looks good and it fits. Then go to the second page. That will duplicate what is happening. The distance between the characters changes , which is the problem, and the right 3rd of the page goes off and cannot be seen without scrolling.
The calculation for magnification (zoom factor) is not working as it did before on the spacing, apparently.

Fred
Attachments
testprt.zip
(1.34 KiB) Downloaded 600 times

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

Re: Preview Change

#17 Post by rdonnay »

I think I have a fix for you. You will need to make a change to _DCPRC.PRG. (line 1157).
Make the below change and then rebuild DCLIPX.DLL by running BUILD19_SL1.BAT or BUILD20.BAT.

WAS:

Code: Select all

IF !::lTextOnly .AND. !::lExcel
  ::aPageSize := ::oPS:SetPageSize()[1]
  IF ::lPreview
    ::nColSize := ( ::aPageSize[ 1 ] * ::nColDivider ) / ::nCols
  ELSE
    ::nColSize := ::aPageSize[ 1 ] / ::nCols
  ENDIF
  ::nRowSize := ::Offset() / ::nRows
ENDIF
IS:

Code: Select all

IF !::lTextOnly .AND. !::lExcel
  IF ::lPreview
    ::nColSize := ( ::aPageSize[ 1 ] * ::nColDivider ) / ::nCols
  ELSE
    ::aPageSize := ::oPS:SetPageSize()[1]
    ::nColSize := ::aPageSize[ 1 ] / ::nCols
  ENDIF
  ::nRowSize := ::Offset() / ::nRows
ENDIF
The eXpress train is coming - and it has more cars.

omni
Posts: 554
Joined: Thu Jan 28, 2010 9:34 am

Re: Preview Change

#18 Post by omni »

dclipx would not rebuild. in my case it is build19. Build 20 worked fine. Says about 10 times module not found. dclipx.def is in the ...bin19 folder but no other files,and it was moved to the lib folder. Compiled the prgs and all the obj files are there. Tried in various locations that I have that express version and it does the same thing. 263 version

fred
Last edited by omni on Fri May 20, 2016 8:50 am, edited 1 time in total.

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

Re: Preview Change

#19 Post by rdonnay »

I'm not going to try to figure out your environment problems. This always takes me too much time.

Here is an updated DCLIPX.DLL (Xbase++ build 355)
Attachments
dclipx.zip
(2.65 MiB) Downloaded 583 times
The eXpress train is coming - and it has more cars.

omni
Posts: 554
Joined: Thu Jan 28, 2010 9:34 am

Re: Preview Change

#20 Post by omni »

Thanks Roger, both 1.9 and 2.0 work. Will that be part of the next release?

Have a good weekend.

Post Reply