Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #10771 > unrolled thread

RP2 and Creators Update

Started byStefan Dietl <info@sdsoft.it>
First post2017-07-18 15:40 +0200
Last post2017-08-09 09:45 +0100
Articles 20 on this page of 34 — 12 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  RP2 and Creators Update Stefan Dietl <info@sdsoft.it> - 2017-07-18 15:40 +0200
    Re: RP2 and Creators Update D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2017-07-18 21:19 +0200
    Re: RP2 and Creators Update "Glen Townsley" <glent@pronamics.com.au> - 2017-07-19 05:51 +1000
      Re: RP2 and Creators Update Stefan Dietl <info@sdsoft.it> - 2017-07-18 23:08 +0200
        Re: RP2 and Creators Update "Glen Townsley" <glent@pronamics.com.au> - 2017-07-19 08:31 +1000
          Re: RP2 and Creators Update Stefan Dietl <info@sdsoft.it> - 2017-07-19 06:54 +0200
            Re: RP2 and Creators Update "Glen Townsley" <coogee.2015@gmail.com> - 2017-07-19 15:42 +1000
            Re: RP2 and Creators Update D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2017-07-19 09:35 +0200
            Re: RP2 and Creators Update "Wolfgang Riedmann" <wriedmann@gmail.com> - 2017-07-19 11:26 +0200
              Re: RP2 and Creators Update Stefan Dietl <info@sdsoft.it> - 2017-07-19 12:35 +0200
                Re: RP2 and Creators Update D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2017-07-20 13:12 +0200
      Re: RP2 and Creators Update "Willie Moore" <williem@wmconsulting.com> - 2017-07-20 14:42 -0500
        Re: RP2 and Creators Update Karl Wochele <kw@ecos-system.invalid> - 2017-07-21 13:38 +0200
        Re: RP2 and Creators Update nicktekhne@googlemail.com - 2017-07-24 02:12 -0700
        Re: RP2 and Creators Update "Glen Townsley" <coogee.2015@gmail.com> - 2017-07-25 05:34 +1000
        Re: RP2 and Creators Update Stefan Dietl <info@sdsoft.it> - 2017-07-27 20:33 +0200
          Re: RP2 and Creators Update "Jamal" <noooospam@example.com> - 2017-07-27 14:52 -0400
            Re: RP2 and Creators Update D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2017-07-27 23:26 +0200
              Re: RP2 and Creators Update "Wolfgang Riedmann" <wriedmann@gmail.com> - 2017-07-28 05:26 +0200
                Re: RP2 and Creators Update D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2017-07-28 14:09 +0200
                  Re: RP2 and Creators Update Stefan Dietl <info@sdsoft.it> - 2017-07-28 15:24 +0200
                    Re: RP2 and Creators Update Martin <Martin@spam.spam> - 2017-09-27 13:04 +0100
                      Re: RP2 and Creators Update D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2017-10-02 00:39 +0200
                        Re: RP2 and Creators Update Martin <Martin@spam.spam> - 2017-10-04 11:10 +0100
                        Re: RP2 and Creators Update Martin <Martin@spam.spam> - 2017-10-04 11:12 +0100
                      Re: RP2 and Creators Update Stefan Dietl <info@sdsoft.it> - 2017-10-02 16:18 +0200
                        Re: RP2 and Creators Update D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2017-10-02 22:29 +0200
                        Re: RP2 and Creators Update Martin <Martin@spam.spam> - 2017-10-04 11:17 +0100
                        Re: RP2 and Creators Update Martin <Martin@spam.spam> - 2017-10-06 09:02 +0100
                    Re: RP2 and Creators Update sergio@lym.com.ar - 2017-10-09 16:48 -0700
                  Re: RP2 and Creators Update Robert van der Hulst <rjvanderhulst@gmail.com> - 2017-07-30 03:10 -0700
                    Re: RP2 and Creators Update D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2017-08-01 11:39 +0200
                      Re: RP2 and Creators Update "Wolfgang Riedmann" <wriedmann@gmail.com> - 2017-08-01 14:49 +0200
    Re: RP2 and Creators Update Martin <Martin@spam.spam> - 2017-08-09 09:45 +0100

Page 1 of 2  [1] 2  Next page →


#10771 — RP2 and Creators Update

FromStefan Dietl <info@sdsoft.it>
Date2017-07-18 15:40 +0200
SubjectRP2 and Creators Update
Message-ID<et6hdoF54r3U1@mid.individual.net>
After the creators update, texts in RP2.17 are displayed incorrectly.
Probably a font problem? Lines and other objects are displayed correctly.
Does anyone have the same problem (or a solution?)

Stefan

[toc] | [next] | [standalone]


#10772

FromD.J.W. van Kooten <vankooten@removethis.ic2.com>
Date2017-07-18 21:19 +0200
Message-ID<ejnsmct97u5lvm8l912pdkj06hbko3k0de@4ax.com>
In reply to#10771
Replying on message of Tue, 18 Jul 2017 15:40:06 +0200 from Stefan
Dietl:


 Hello Stefan,

>After the creators update, texts in RP2.17 are displayed incorrectly.

Can you explain a bit further what you mean with "incorrectly"?

The brief period that I had the Creators Update on my system I don't
think I ran reports. But sa you can see in my previous posting, the
Creator's Update is a problem child and even today you can find many
reports of random things which stopped working after this update. 

That doesn't mean it may work without problems in some cases, like
Phil experienced. But instead of adding a workload of new features
nobody is asking for, a Fall update (Phil, how do they call the Fall
Update in Australia?) concentrating on less problems instead would be
much more welcome.

Dick

[toc] | [prev] | [next] | [standalone]


#10773

From"Glen Townsley" <glent@pronamics.com.au>
Date2017-07-19 05:51 +1000
Message-ID<oklorj$8i2$1@gioia.aioe.org>
In reply to#10771
Stefan,

I have had the issue reported by a few users but I can now reproduce the 
issue since my system updated in the last couple of days. I traced the issue 
to the DrawText() method which seems to incorrectly calculate the line 
breaks in the printed text within the rectangle nominated. I tested this by 
clipping the text (last parameter) and the text is printed in the correctly 
sized rectangle. It seems to be a horizontal issue, not a vertical issue 
within the rectangle. I "solved" the problem by applying a factor to the 
size of the horizontal dimension of the rectangle. In my case 0.9 or 0.95 
worked fine but I believe the issue is more pronounced the wider the 
rectangle. Hope this helps you.

Cheers

Glen Townsley

"Stefan Dietl"  wrote in message news:et6hdoF54r3U1@mid.individual.net...

After the creators update, texts in RP2.17 are displayed incorrectly.
Probably a font problem? Lines and other objects are displayed correctly.
Does anyone have the same problem (or a solution?)

Stefan 

[toc] | [prev] | [next] | [standalone]


#10774

FromStefan Dietl <info@sdsoft.it>
Date2017-07-18 23:08 +0200
Message-ID<et7bmgFb4okU1@mid.individual.net>
In reply to#10773
Thanks, but sorry, I forgot to say that its a designed (not coded) report.
Stefan

Am 18.07.2017 um 21:51 schrieb Glen Townsley:
> Stefan,
>
> I have had the issue reported by a few users but I can now reproduce the
> issue since my system updated in the last couple of days. I traced the
> issue to the DrawText() method which seems to incorrectly calculate the
> line breaks in the printed text within the rectangle nominated. I tested
> this by clipping the text (last parameter) and the text is printed in
> the correctly sized rectangle. It seems to be a horizontal issue, not a
> vertical issue within the rectangle. I "solved" the problem by applying
> a factor to the size of the horizontal dimension of the rectangle. In my
> case 0.9 or 0.95 worked fine but I believe the issue is more pronounced
> the wider the rectangle. Hope this helps you.
>
> Cheers
>
> Glen Townsley
>
> "Stefan Dietl"  wrote in message news:et6hdoF54r3U1@mid.individual.net...
>
> After the creators update, texts in RP2.17 are displayed incorrectly.
> Probably a font problem? Lines and other objects are displayed correctly.
> Does anyone have the same problem (or a solution?)
>
> Stefan

[toc] | [prev] | [next] | [standalone]


#10775

From"Glen Townsley" <glent@pronamics.com.au>
Date2017-07-19 08:31 +1000
Message-ID<okm26e$p47$1@gioia.aioe.org>
In reply to#10774
Stefan,

Probably the same issue if your designed report calls DrawText() which I 
suspect it will if you have any multiline text. The only way I see to fix 
the issue is to reduce the width of the multiline text box in your report 
designer though I would love to see a better solution for both yours and my 
situations.

Cheers

Glen

"Stefan Dietl"  wrote in message news:et7bmgFb4okU1@mid.individual.net...

Thanks, but sorry, I forgot to say that its a designed (not coded) report.
Stefan

Am 18.07.2017 um 21:51 schrieb Glen Townsley:
> Stefan,
>
> I have had the issue reported by a few users but I can now reproduce the
> issue since my system updated in the last couple of days. I traced the
> issue to the DrawText() method which seems to incorrectly calculate the
> line breaks in the printed text within the rectangle nominated. I tested
> this by clipping the text (last parameter) and the text is printed in
> the correctly sized rectangle. It seems to be a horizontal issue, not a
> vertical issue within the rectangle. I "solved" the problem by applying
> a factor to the size of the horizontal dimension of the rectangle. In my
> case 0.9 or 0.95 worked fine but I believe the issue is more pronounced
> the wider the rectangle. Hope this helps you.
>
> Cheers
>
> Glen Townsley
>
> "Stefan Dietl"  wrote in message news:et6hdoF54r3U1@mid.individual.net...
>
> After the creators update, texts in RP2.17 are displayed incorrectly.
> Probably a font problem? Lines and other objects are displayed correctly.
> Does anyone have the same problem (or a solution?)
>
> Stefan 

[toc] | [prev] | [next] | [standalone]


#10776

FromStefan Dietl <info@sdsoft.it>
Date2017-07-19 06:54 +0200
Message-ID<et86vbFgnm8U1@mid.individual.net>
In reply to#10775
Hi Glen,
not only multiline text. Right aligned text is printed wrong too.
I have uploaded a demo print here:
https://www.sdsoft.it/files/rp2_issue.pdf

Stefan

Am 19.07.2017 um 00:31 schrieb Glen Townsley:
> Stefan,
>
> Probably the same issue if your designed report calls DrawText() which I
> suspect it will if you have any multiline text. The only way I see to
> fix the issue is to reduce the width of the multiline text box in your
> report designer though I would love to see a better solution for both
> yours and my situations.
>
> Cheers
>
> Glen
>
> "Stefan Dietl"  wrote in message news:et7bmgFb4okU1@mid.individual.net...
>
> Thanks, but sorry, I forgot to say that its a designed (not coded) report.
> Stefan
>
> Am 18.07.2017 um 21:51 schrieb Glen Townsley:
>> Stefan,
>>
>> I have had the issue reported by a few users but I can now reproduce the
>> issue since my system updated in the last couple of days. I traced the
>> issue to the DrawText() method which seems to incorrectly calculate the
>> line breaks in the printed text within the rectangle nominated. I tested
>> this by clipping the text (last parameter) and the text is printed in
>> the correctly sized rectangle. It seems to be a horizontal issue, not a
>> vertical issue within the rectangle. I "solved" the problem by applying
>> a factor to the size of the horizontal dimension of the rectangle. In my
>> case 0.9 or 0.95 worked fine but I believe the issue is more pronounced
>> the wider the rectangle. Hope this helps you.
>>
>> Cheers
>>
>> Glen Townsley
>>
>> "Stefan Dietl"  wrote in message news:et6hdoF54r3U1@mid.individual.net...
>>
>> After the creators update, texts in RP2.17 are displayed incorrectly.
>> Probably a font problem? Lines and other objects are displayed correctly.
>> Does anyone have the same problem (or a solution?)
>>
>> Stefan
>

[toc] | [prev] | [next] | [standalone]


#10777

From"Glen Townsley" <coogee.2015@gmail.com>
Date2017-07-19 15:42 +1000
Message-ID<okmrft$1pbv$1@gioia.aioe.org>
In reply to#10776
Stefan,

I hadn't seen that but I don't recall having any right aligned text in my 
reports. Not sure what to do about that.

Cheers

Glen

"Stefan Dietl"  wrote in message news:et86vbFgnm8U1@mid.individual.net...

Hi Glen,
not only multiline text. Right aligned text is printed wrong too.
I have uploaded a demo print here:
https://www.sdsoft.it/files/rp2_issue.pdf

Stefan

Am 19.07.2017 um 00:31 schrieb Glen Townsley:
> Stefan,
>
> Probably the same issue if your designed report calls DrawText() which I
> suspect it will if you have any multiline text. The only way I see to
> fix the issue is to reduce the width of the multiline text box in your
> report designer though I would love to see a better solution for both
> yours and my situations.
>
> Cheers
>
> Glen
>
> "Stefan Dietl"  wrote in message news:et7bmgFb4okU1@mid.individual.net...
>
> Thanks, but sorry, I forgot to say that its a designed (not coded) report.
> Stefan
>
> Am 18.07.2017 um 21:51 schrieb Glen Townsley:
>> Stefan,
>>
>> I have had the issue reported by a few users but I can now reproduce the
>> issue since my system updated in the last couple of days. I traced the
>> issue to the DrawText() method which seems to incorrectly calculate the
>> line breaks in the printed text within the rectangle nominated. I tested
>> this by clipping the text (last parameter) and the text is printed in
>> the correctly sized rectangle. It seems to be a horizontal issue, not a
>> vertical issue within the rectangle. I "solved" the problem by applying
>> a factor to the size of the horizontal dimension of the rectangle. In my
>> case 0.9 or 0.95 worked fine but I believe the issue is more pronounced
>> the wider the rectangle. Hope this helps you.
>>
>> Cheers
>>
>> Glen Townsley
>>
>> "Stefan Dietl"  wrote in message news:et6hdoF54r3U1@mid.individual.net...
>>
>> After the creators update, texts in RP2.17 are displayed incorrectly.
>> Probably a font problem? Lines and other objects are displayed correctly.
>> Does anyone have the same problem (or a solution?)
>>
>> Stefan
> 

[toc] | [prev] | [next] | [standalone]


#10778

FromD.J.W. van Kooten <vankooten@removethis.ic2.com>
Date2017-07-19 09:35 +0200
Message-ID<dg2umc5m320nigpbhevu2m3uu9ceentidl@4ax.com>
In reply to#10776
Replying on message of Wed, 19 Jul 2017 06:54:02 +0200 from Stefan
Dietl:


 Hello Stefan,
>not only multiline text. Right aligned text is printed wrong too.
>I have uploaded a demo print here:
>https://www.sdsoft.it/files/rp2_issue.pdf
>

Clear sample. Looks disturbing. We have one Pc on the Creators Update;
all seems to work there except Windows Search. We will check a few
reports on that Pc.

I recommend to post the problem on the XSharp forum or newsgroup.
Although they do not maintain ReportPro (ReportPro is still a Grafx
product but they are not active anymore, e.g. no working newsgroup for
the last 1,5 week etc) they have a lot of knowledge and may know what
happens.

However, a solution is another thing. Can't imagine this can be
solved. And sooner or later all W10 users will have this crappy
Creators Update installed so problems will only increase.

Dick

[toc] | [prev] | [next] | [standalone]


#10779

From"Wolfgang Riedmann" <wriedmann@gmail.com>
Date2017-07-19 11:26 +0200
Message-ID<et8mteFk5tjU1@mid.individual.net>
In reply to#10776
Hi Stefan,

is this occurring on all PCs with Creators Update or only of the ones
that have large fonts active?

Wolfgang

Stefan Dietl wrote:

> Hi Glen,
> not only multiline text. Right aligned text is printed wrong too.
> I have uploaded a demo print here:
> https://www.sdsoft.it/files/rp2_issue.pdf
> 
> Stefan
> 
> Am 19.07.2017 um 00:31 schrieb Glen Townsley:
> > Stefan,
> > 
> > Probably the same issue if your designed report calls DrawText()
> > which I suspect it will if you have any multiline text. The only
> > way I see to fix the issue is to reduce the width of the multiline
> > text box in your report designer though I would love to see a
> > better solution for both yours and my situations.
> > 
> > Cheers
> > 
> > Glen
> > 
> > "Stefan Dietl"  wrote in message
> > news:et7bmgFb4okU1@mid.individual.net...
> > 
> > Thanks, but sorry, I forgot to say that its a designed (not coded)
> > report.  Stefan
> > 
> > Am 18.07.2017 um 21:51 schrieb Glen Townsley:
> > > Stefan,
> > > 
> > > I have had the issue reported by a few users but I can now
> > > reproduce the issue since my system updated in the last couple of
> > > days. I traced the issue to the DrawText() method which seems to
> > > incorrectly calculate the line breaks in the printed text within
> > > the rectangle nominated. I tested this by clipping the text (last
> > > parameter) and the text is printed in the correctly sized
> > > rectangle. It seems to be a horizontal issue, not a vertical
> > > issue within the rectangle. I "solved" the problem by applying a
> > > factor to the size of the horizontal dimension of the rectangle.
> > > In my case 0.9 or 0.95 worked fine but I believe the issue is
> > > more pronounced the wider the rectangle. Hope this helps you.
> > > 
> > > Cheers
> > > 
> > > Glen Townsley
> > > 
> > > "Stefan Dietl"  wrote in message
> > > news:et6hdoF54r3U1@mid.individual.net...
> > > 
> > > After the creators update, texts in RP2.17 are displayed
> > > incorrectly.  Probably a font problem? Lines and other objects
> > > are displayed correctly.  Does anyone have the same problem (or a
> > > solution?)
> > > 
> > > Stefan
> > 



-- 

[toc] | [prev] | [next] | [standalone]


#10780

FromStefan Dietl <info@sdsoft.it>
Date2017-07-19 12:35 +0200
Message-ID<et8qvmFl33uU1@mid.individual.net>
In reply to#10779
Hi Wolfgang,
its occurring on all PCs. My test-pc has set font-sizes to 100%.
Preview also differs from print. Preview mostly looks better.

Stefan

Am 19.07.2017 um 11:26 schrieb Wolfgang Riedmann:
> Hi Stefan,
>
> is this occurring on all PCs with Creators Update or only of the ones
> that have large fonts active?
>
> Wolfgang
>
> Stefan Dietl wrote:
>
>> Hi Glen,
>> not only multiline text. Right aligned text is printed wrong too.
>> I have uploaded a demo print here:
>> https://www.sdsoft.it/files/rp2_issue.pdf
>>
>> Stefan
>>
>> Am 19.07.2017 um 00:31 schrieb Glen Townsley:
>>> Stefan,
>>>
>>> Probably the same issue if your designed report calls DrawText()
>>> which I suspect it will if you have any multiline text. The only
>>> way I see to fix the issue is to reduce the width of the multiline
>>> text box in your report designer though I would love to see a
>>> better solution for both yours and my situations.
>>>
>>> Cheers
>>>
>>> Glen
>>>
>>> "Stefan Dietl"  wrote in message
>>> news:et7bmgFb4okU1@mid.individual.net...
>>>
>>> Thanks, but sorry, I forgot to say that its a designed (not coded)
>>> report.  Stefan
>>>
>>> Am 18.07.2017 um 21:51 schrieb Glen Townsley:
>>>> Stefan,
>>>>
>>>> I have had the issue reported by a few users but I can now
>>>> reproduce the issue since my system updated in the last couple of
>>>> days. I traced the issue to the DrawText() method which seems to
>>>> incorrectly calculate the line breaks in the printed text within
>>>> the rectangle nominated. I tested this by clipping the text (last
>>>> parameter) and the text is printed in the correctly sized
>>>> rectangle. It seems to be a horizontal issue, not a vertical
>>>> issue within the rectangle. I "solved" the problem by applying a
>>>> factor to the size of the horizontal dimension of the rectangle.
>>>> In my case 0.9 or 0.95 worked fine but I believe the issue is
>>>> more pronounced the wider the rectangle. Hope this helps you.
>>>>
>>>> Cheers
>>>>
>>>> Glen Townsley
>>>>
>>>> "Stefan Dietl"  wrote in message
>>>> news:et6hdoF54r3U1@mid.individual.net...
>>>>
>>>> After the creators update, texts in RP2.17 are displayed
>>>> incorrectly.  Probably a font problem? Lines and other objects
>>>> are displayed correctly.  Does anyone have the same problem (or a
>>>> solution?)
>>>>
>>>> Stefan
>>>
>
>
>

[toc] | [prev] | [next] | [standalone]


#10782

FromD.J.W. van Kooten <vankooten@removethis.ic2.com>
Date2017-07-20 13:12 +0200
Message-ID<eq31nc91ml47odsfo5sr3da847t2hp69ke@4ax.com>
In reply to#10780
Replying on message of Wed, 19 Jul 2017 12:35:32 +0200 from Stefan
Dietl:


 Hello Stefan Dietl

>its occurring on all PCs. My test-pc has set font-sizes to 100%.
>Preview also differs from print. Preview mostly looks better.
>

You saw it on your Pc and I assume this is most likely not a low end
PC. I write this because Pc's with a  Clover Trail-processor like Atom
Z2760, Z2520, Z2560 en Z2580 can not upgrade to the Creators Update.
If they do so nevertheless, display of icons and text is influenced.

Not sure if there is any connection but it seems clear that the
Creators Update is doing something with displaying text.

Dick

[toc] | [prev] | [next] | [standalone]


#10783

From"Willie Moore" <williem@wmconsulting.com>
Date2017-07-20 14:42 -0500
Message-ID<okr12p$nas$1@gioia.aioe.org>
In reply to#10773
Glen,

Can you point me to where you made your change and I will look at it.

Regards,
Willie
Grafx Development Team

"Glen Townsley"  wrote in message news:oklorj$8i2$1@gioia.aioe.org...

Stefan,

I have had the issue reported by a few users but I can now reproduce the
issue since my system updated in the last couple of days. I traced the issue
to the DrawText() method which seems to incorrectly calculate the line
breaks in the printed text within the rectangle nominated. I tested this by
clipping the text (last parameter) and the text is printed in the correctly
sized rectangle. It seems to be a horizontal issue, not a vertical issue
within the rectangle. I "solved" the problem by applying a factor to the
size of the horizontal dimension of the rectangle. In my case 0.9 or 0.95
worked fine but I believe the issue is more pronounced the wider the
rectangle. Hope this helps you.

Cheers

Glen Townsley

"Stefan Dietl"  wrote in message news:et6hdoF54r3U1@mid.individual.net...

After the creators update, texts in RP2.17 are displayed incorrectly.
Probably a font problem? Lines and other objects are displayed correctly.
Does anyone have the same problem (or a solution?)

Stefan 

[toc] | [prev] | [next] | [standalone]


#10784

FromKarl Wochele <kw@ecos-system.invalid>
Date2017-07-21 13:38 +0200
Message-ID<oksp4a$lm0$1@solani.org>
In reply to#10783
Hi Willi,

I remember we once also had a problem with right-aligned text. Very long 
ago I made the following changes in Drawtwxt of Rp2Dsn32.dll (luckily we 
have the source-code-version):

Changed:

STATIC FUNCTION rpCalcTextWidth(sDrawText AS RpDrawTextStruct,hDC AS 
PTR,nStartChar AS LONGINT,nStopChar AS LONGINT) AS DWORD

     LOCAL sSaveProp,sChrProp,sNextChrProp	AS CharProp
     LOCAL sParaProp						AS ParaProp
     LOCAL nWidth,nHeight					AS DWORD
     LOCAL ptrText							AS BYTE PTR
     LOCAL nTestChars						AS LONGINT
     LOCAL nTextExt							AS DWORD
// [KW---]
LOCAL winSize	IS _winSIZE
// [---KW]

     sSaveProp	:=sDrawText.sChrProp					// save the current pointer
     sChrProp	:=sDrawText.sChrProp					// get a pointer the RTF state 
structures
     sParaProp	:=sDrawText.sParaProp				// dereference the paragraph 
structure
     nWidth		:=0									// total width of the text
     nHeight		:=0									// max height of the text


     SetTextJustification(hDC,0,0)						// reset the text justification 
error term
     DO WHILE TRUE
         // calc the pointer to the text
         ptrText:=sDrawText.ptrText+nStartChar-1
         IF sChrProp.ptrNextState==NULL_PTR			// if there are no more 
attributes...
             nTestChars:=nStopChar-nStartChar+1 		// test the whole string
         ELSE
             sNextChrProp:=sChrProp.ptrNextState		// dereference the 
next state

             IF sNextChrProp.nStartChar<=nStartChar
                 sChrProp:=sNextChrProp
                 LOOP
             ELSEIF sNextChrProp.nStartChar<=nStopChar  	// if the next 
state starts on the before
                 // the end of the string test a substr
                 nTestChars:=sNextChrProp.nStartChar-nStartChar
             ELSE
                 nTestChars:=nStopChar-nStartChar+1	 	// test the whole 
string
             ENDIF
         ENDIF

         rpCreateFont(sDrawText,sChrProp) 				// create the font for the 
testing
         // get the width of this text

         IF nTestChars>0								// if there are characters with this 
attribrute

// [KW---] Korrektur des rechtsbündigen Ausdrucks (Problem war nur beim 
Drucker, nicht in der Vorschau)
//             nTextExt 
:=GetTabbedTextExtent(hDC,PSZ(_CAST,ptrText),nTestChars,sParaProp.nTabs,@sDrawText.aTabs)
//             nWidth		+= LoWord(nTextExt)
				IF sParaProp.nTabs > 0
	            nTextExt	:= 
GetTabbedTextExtent(hDC,PSZ(_CAST,ptrText),nTestChars,sParaProp.nTabs,@sDrawText.aTabs)
				ELSE
					GetTextExtentPoint32(hDC,PSZ(_CAST,ptrText),nTestChars,@winSize)
					nTextExt	:= DWORD(winSize.cy) << 16
					nTextExt	+= DWORD(winSize.cx)
				ENDIF
				nWidth += LoWord(nTextExt)
// [---KW]

             nStartChar	+=nTestChars
         ELSE
             nTextExt	:=GetTabbedTextExtent(hDC,PSZ(_CAST," "),1,0,NULL)
         ENDIF

         IF DWORD(HiWord(nTextExt))>nHeight				// adjust the height if 
required
             nHeight:=HiWord(nTextExt)
         ENDIF

         // if there is another state and it takes affect
         // before the end of our text, reference the
         // structure
         IF !sNextChrProp==NULL_PTR .AND. sNextChrProp.nStartChar<=nStopChar
             sChrProp:=sNextChrProp
         ENDIF

         IF nStartChar>nStopChar 						// bail out if we are finished...
             EXIT
         ENDIF
     ENDDO
     sDrawText.sChrProp:=sSaveProp

     nTextExt	:= DWORD(nHeight) << 16
     nTextExt	+= nWidth

     RETURN nTextExt


Original:

STATIC FUNCTION rpCalcTextWidth(sDrawText AS RpDrawTextStruct,hDC AS 
PTR,nStartChar AS LONGINT,nStopChar AS LONGINT) AS DWORD

     LOCAL sSaveProp,sChrProp,sNextChrProp	AS CharProp
     LOCAL sParaProp						AS ParaProp
     LOCAL nWidth,nHeight					AS DWORD
     LOCAL ptrText							AS BYTE PTR
     LOCAL nTestChars						AS LONGINT
     LOCAL nTextExt							AS DWORD

     sSaveProp	:=sDrawText.sChrProp					// save the current pointer
     sChrProp	:=sDrawText.sChrProp					// get a pointer the RTF state 
structures
     sParaProp	:=sDrawText.sParaProp				// dereference the paragraph 
structure
     nWidth		:=0									// total width of the text
     nHeight		:=0									// max height of the text

     SetTextJustification(hDC,0,0)						// reset the text justification 
error term
     DO WHILE TRUE
         // calc the pointer to the text
         ptrText:=sDrawText.ptrText+nStartChar-1
         IF sChrProp.ptrNextState==NULL_PTR			// if there are no more 
attributes...
             nTestChars:=nStopChar-nStartChar+1 		// test the whole string
         ELSE
             sNextChrProp:=sChrProp.ptrNextState		// dereference the 
next state

             IF sNextChrProp.nStartChar<=nStartChar
                 sChrProp:=sNextChrProp
                 LOOP
             ELSEIF sNextChrProp.nStartChar<=nStopChar  	// if the next 
state starts on the before
                 // the end of the string test a substr
                 nTestChars:=sNextChrProp.nStartChar-nStartChar
             ELSE
                 nTestChars:=nStopChar-nStartChar+1	 	// test the whole 
string
             ENDIF
         ENDIF

         rpCreateFont(sDrawText,sChrProp) 				// create the font for the 
testing
         // get the width of this text
         IF nTestChars>0								// if there are characters with this 
attribrute
             nTextExt 
:=GetTabbedTextExtent(hDC,PSZ(_CAST,ptrText),nTestChars,sParaProp.nTabs,@sDrawText.aTabs)
             nWidth		+= loword(nTextExt)
             nStartChar	+=nTestChars
         ELSE
             nTextExt	:=GetTabbedTextExtent(hDC,PSZ(_CAST," "),1,0,NULL)
         ENDIF

         IF DWORD(hiword(nTextExt))>nHeight				// adjust the height if 
required
             nHeight:=hiword(nTextExt)
         ENDIF
         // if there is another state and it takes affect
         // before the end of our text, reference the
         // structure
         IF !sNextChrProp==NULL_PTR .AND. sNextChrProp.nStartChar<=nStopChar
             sChrProp:=sNextChrProp
         ENDIF

         IF nStartChar>nStopChar 						// bail out if we are finished...
             EXIT
         ENDIF
     ENDDO
     sDrawText.sChrProp:=sSaveProp

     nTextExt	:=DWORD(nHeight) << 16
     nTextExt	+= nWidth
     RETURN nTextExt


Maybe that's the problem....

Karl


Am 20.07.2017 um 21:42 schrieb Willie Moore:
> Glen,
> 
> Can you point me to where you made your change and I will look at it.
> 
> Regards,
> Willie
> Grafx Development Team
> 
> "Glen Townsley"  wrote in message news:oklorj$8i2$1@gioia.aioe.org...
> 
> Stefan,
> 
> I have had the issue reported by a few users but I can now reproduce the
> issue since my system updated in the last couple of days. I traced the 
> issue
> to the DrawText() method which seems to incorrectly calculate the line
> breaks in the printed text within the rectangle nominated. I tested this by
> clipping the text (last parameter) and the text is printed in the correctly
> sized rectangle. It seems to be a horizontal issue, not a vertical issue
> within the rectangle. I "solved" the problem by applying a factor to the
> size of the horizontal dimension of the rectangle. In my case 0.9 or 0.95
> worked fine but I believe the issue is more pronounced the wider the
> rectangle. Hope this helps you.
> 
> Cheers
> 
> Glen Townsley
> 
> "Stefan Dietl"  wrote in message news:et6hdoF54r3U1@mid.individual.net...
> 
> After the creators update, texts in RP2.17 are displayed incorrectly.
> Probably a font problem? Lines and other objects are displayed correctly.
> Does anyone have the same problem (or a solution?)
> 
> Stefan

[toc] | [prev] | [next] | [standalone]


#10786

Fromnicktekhne@googlemail.com
Date2017-07-24 02:12 -0700
Message-ID<a44d1afe-b701-451c-8c05-72380fa9ad0f@googlegroups.com>
In reply to#10783
Hi Willie,

Off topic, but I sent you an email on Thursday... did you see it by any chance? I wondered in case it got eaten by your spam filters.

Thanks

Nick Friend


On Thursday, July 20, 2017 at 8:42:21 PM UTC+1, Willie Moore wrote:
> Glen,
> 
> Can you point me to where you made your change and I will look at it.
> 
> Regards,
> Willie
> Grafx Development Team
> 
> "Glen Townsley"  wrote in message news:oklorj$8i2$1@gioia.aioe.org...
> 
> Stefan,
> 
> I have had the issue reported by a few users but I can now reproduce the
> issue since my system updated in the last couple of days. I traced the issue
> to the DrawText() method which seems to incorrectly calculate the line
> breaks in the printed text within the rectangle nominated. I tested this by
> clipping the text (last parameter) and the text is printed in the correctly
> sized rectangle. It seems to be a horizontal issue, not a vertical issue
> within the rectangle. I "solved" the problem by applying a factor to the
> size of the horizontal dimension of the rectangle. In my case 0.9 or 0.95
> worked fine but I believe the issue is more pronounced the wider the
> rectangle. Hope this helps you.
> 
> Cheers
> 
> Glen Townsley
> 
> "Stefan Dietl"  wrote in message news:et6hdoF54r3U1@mid.individual.net...
> 
> After the creators update, texts in RP2.17 are displayed incorrectly.
> Probably a font problem? Lines and other objects are displayed correctly.
> Does anyone have the same problem (or a solution?)
> 
> Stefan

[toc] | [prev] | [next] | [standalone]


#10790

From"Glen Townsley" <coogee.2015@gmail.com>
Date2017-07-25 05:34 +1000
Message-ID<ol5i39$ujp$1@gioia.aioe.org>
In reply to#10783
Willie,

I sent you one on the ReportPro issue too as my news feed wouldn't allow 
attachments.

Cheers

Glen

"Willie Moore"  wrote in message news:okr12p$nas$1@gioia.aioe.org...

Glen,

Can you point me to where you made your change and I will look at it.

Regards,
Willie
Grafx Development Team

"Glen Townsley"  wrote in message news:oklorj$8i2$1@gioia.aioe.org...

Stefan,

I have had the issue reported by a few users but I can now reproduce the
issue since my system updated in the last couple of days. I traced the issue
to the DrawText() method which seems to incorrectly calculate the line
breaks in the printed text within the rectangle nominated. I tested this by
clipping the text (last parameter) and the text is printed in the correctly
sized rectangle. It seems to be a horizontal issue, not a vertical issue
within the rectangle. I "solved" the problem by applying a factor to the
size of the horizontal dimension of the rectangle. In my case 0.9 or 0.95
worked fine but I believe the issue is more pronounced the wider the
rectangle. Hope this helps you.

Cheers

Glen Townsley

"Stefan Dietl"  wrote in message news:et6hdoF54r3U1@mid.individual.net...

After the creators update, texts in RP2.17 are displayed incorrectly.
Probably a font problem? Lines and other objects are displayed correctly.
Does anyone have the same problem (or a solution?)

Stefan 

[toc] | [prev] | [next] | [standalone]


#10799

FromStefan Dietl <info@sdsoft.it>
Date2017-07-27 20:33 +0200
Message-ID<etuq08Flgc2U1@mid.individual.net>
In reply to#10783
Hi Willie,
have You found out something?

I'm still waiting for the fix of the RP2.17 image issue too. And 
wondering how maintenance will look in the future.
Because I have out hundreds of RP2 reports I'm a really worried about 
that and I'd like to ask if it is possible to get the sources of rp2?!

Thanks Stefan



Am 20.07.2017 um 21:42 schrieb Willie Moore:
> Glen,
>
> Can you point me to where you made your change and I will look at it.
>
> Regards,
> Willie
> Grafx Development Team
>
> "Glen Townsley"  wrote in message news:oklorj$8i2$1@gioia.aioe.org...
>
> Stefan,
>
> I have had the issue reported by a few users but I can now reproduce the
> issue since my system updated in the last couple of days. I traced the
> issue
> to the DrawText() method which seems to incorrectly calculate the line
> breaks in the printed text within the rectangle nominated. I tested this by
> clipping the text (last parameter) and the text is printed in the correctly
> sized rectangle. It seems to be a horizontal issue, not a vertical issue
> within the rectangle. I "solved" the problem by applying a factor to the
> size of the horizontal dimension of the rectangle. In my case 0.9 or 0.95
> worked fine but I believe the issue is more pronounced the wider the
> rectangle. Hope this helps you.
>
> Cheers
>
> Glen Townsley
>
> "Stefan Dietl"  wrote in message news:et6hdoF54r3U1@mid.individual.net...
>
> After the creators update, texts in RP2.17 are displayed incorrectly.
> Probably a font problem? Lines and other objects are displayed correctly.
> Does anyone have the same problem (or a solution?)
>
> Stefan

[toc] | [prev] | [next] | [standalone]


#10800

From"Jamal" <noooospam@example.com>
Date2017-07-27 14:52 -0400
Message-ID<oldcps$fu4$1@news.albasani.net>
In reply to#10799
Don't be hopeful that you will get a fix from Grafx.
I had issues with RP 3 export which crashed the app, and they could not fix 
even though I sent them all kinds of steps and code to replicate the issue!
Luckily I had the source code and removed the offending code! Gradually, I 
am moving away from RP to custom report using creation using .NET.

Too bad, Grafx could have maintained VO and ReportPro and made some money; I 
just think they do not the skills any longer to handle it.

Jamal


"Stefan Dietl"  wrote in message news:etuq08Flgc2U1@mid.individual.net...

Hi Willie,
have You found out something?

I'm still waiting for the fix of the RP2.17 image issue too. And
wondering how maintenance will look in the future.
Because I have out hundreds of RP2 reports I'm a really worried about
that and I'd like to ask if it is possible to get the sources of rp2?!

Thanks Stefan



Am 20.07.2017 um 21:42 schrieb Willie Moore:
> Glen,
>
> Can you point me to where you made your change and I will look at it.
>
> Regards,
> Willie
> Grafx Development Team
>
> "Glen Townsley"  wrote in message news:oklorj$8i2$1@gioia.aioe.org...
>
> Stefan,
>
> I have had the issue reported by a few users but I can now reproduce the
> issue since my system updated in the last couple of days. I traced the
> issue
> to the DrawText() method which seems to incorrectly calculate the line
> breaks in the printed text within the rectangle nominated. I tested this 
> by
> clipping the text (last parameter) and the text is printed in the 
> correctly
> sized rectangle. It seems to be a horizontal issue, not a vertical issue
> within the rectangle. I "solved" the problem by applying a factor to the
> size of the horizontal dimension of the rectangle. In my case 0.9 or 0.95
> worked fine but I believe the issue is more pronounced the wider the
> rectangle. Hope this helps you.
>
> Cheers
>
> Glen Townsley
>
> "Stefan Dietl"  wrote in message news:et6hdoF54r3U1@mid.individual.net...
>
> After the creators update, texts in RP2.17 are displayed incorrectly.
> Probably a font problem? Lines and other objects are displayed correctly.
> Does anyone have the same problem (or a solution?)
>
> Stefan 

[toc] | [prev] | [next] | [standalone]


#10802

FromD.J.W. van Kooten <vankooten@removethis.ic2.com>
Date2017-07-27 23:26 +0200
Message-ID<u0mknc5fepavd5horh57fl79k8ft4n2bin@4ax.com>
In reply to#10800
Replying on message of Thu, 27 Jul 2017 14:52:45 -0400 from Jamal:


 Hello Jamal,

>Don't be hopeful that you will get a fix from Grafx.

>Too bad, Grafx could have maintained VO and ReportPro and made some money; I 
>just think they do not the skills any longer to handle it.
>
I agree with you on that. Earlier this month Wolfgang wrote:

"I'm pretty sure Visual Objects will sell a few licenses every year
for the next 5 years at least, and the business with ReportPro source
code licenses will increase over the next years, when users migrating
to X# will need the relative licenses."

I can't say if that is so or not and neither I can say if that yields
any money but it would surprise me when it would be more than a few
1000 dollars a year. Currently they can't even afford to let someone
look after their "down" news server <g>. But I am sure of one thing:
they could have charged me and many others for years with some descent
maintenance and expanding VO and Report Pro. 

For my own projects I will most certainly be using X# from time to
time and that's why I support it with a FOX program. But for most
existing programs VO will do well apart from the fact that it's many
times more comfortable, efficient and productive to work on than VS. I
would gladly have supported a Grafx listening to customers and
supporting VO/Report Pro customers just like Robert and staff listens
to customers.

Dick

[toc] | [prev] | [next] | [standalone]


#10803

From"Wolfgang Riedmann" <wriedmann@gmail.com>
Date2017-07-28 05:26 +0200
Message-ID<etvp7kFs2kdU1@mid.individual.net>
In reply to#10802
Hi Dick,

yes, a maintenance plan for Visual Objects and ReportPro would give
some money to GrafX, but then of course someone should work on these
products.

Unfortunately, there is only few people that knows these products, and
I don't think this old code is easily to maintain, so a new programmer
would have a lot to do to "learn" these.

Willie unfortunately has its own work, so he cannot dedicate too much
time to the maintenance on its own.

IMHO GrafX should fix this issue and sell the fixed RP2 versions - and
I think every RP2 user would spend 100 or 150 USD for such a fix.

Wolfgang


D.J.W. van Kooten wrote:

> Replying on message of Thu, 27 Jul 2017 14:52:45 -0400 from Jamal:
> 
> 
>  Hello Jamal,
> 
> > Don't be hopeful that you will get a fix from Grafx.
> 
> > Too bad, Grafx could have maintained VO and ReportPro and made some
> > money; I just think they do not the skills any longer to handle it.
> > 
> I agree with you on that. Earlier this month Wolfgang wrote:
> 
> "I'm pretty sure Visual Objects will sell a few licenses every year
> for the next 5 years at least, and the business with ReportPro source
> code licenses will increase over the next years, when users migrating
> to X# will need the relative licenses."
> 
> I can't say if that is so or not and neither I can say if that yields
> any money but it would surprise me when it would be more than a few
> 1000 dollars a year. Currently they can't even afford to let someone
> look after their "down" news server <g>. But I am sure of one thing:
> they could have charged me and many others for years with some descent
> maintenance and expanding VO and Report Pro. 
> 
> For my own projects I will most certainly be using X# from time to
> time and that's why I support it with a FOX program. But for most
> existing programs VO will do well apart from the fact that it's many
> times more comfortable, efficient and productive to work on than VS. I
> would gladly have supported a Grafx listening to customers and
> supporting VO/Report Pro customers just like Robert and staff listens
> to customers.
> 
> Dick



-- 

[toc] | [prev] | [next] | [standalone]


#10804

FromD.J.W. van Kooten <vankooten@removethis.ic2.com>
Date2017-07-28 14:09 +0200
Message-ID<80amnc1f8e3rnlfbcaatsbmssicugst60d@4ax.com>
In reply to#10803
Replying on message of Fri, 28 Jul 2017 05:26:44 +0200 from Wolfgang
Riedmann:


 Hello Wolfgang,

>Willie unfortunately has its own work, so he cannot dedicate too much
>time to the maintenance on its own.

Even if he has time, my guess he's paid something like 1 hour a week.
So even a Vulcan VS 2017, his official goal, will take years.

>IMHO GrafX should fix this issue and sell the fixed RP2 versions - and
>I think every RP2 user would spend 100 or 150 USD for such a fix.


Right. But Brian has proven too often not to be in the habit of
offering what customers want but he offers what he thinks customers
should use. I am afraid that an updated Report Pro is even further
away than a Vulcan VS 2017 version. I haven't seen th eproblem yet but
I am not sure how many users are on the Creators Update.

I was wondering if someone with the source code version can fix it and
supply a fixed DLL. I'd say after an official request to Grafx, who
knows if it's answered....

I think I have the source code version but I have no idea of Karl's
code, a further up in this thread fixes the problem.

Dick

[toc] | [prev] | [next] | [standalone]


Page 1 of 2  [1] 2  Next page →

Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web