Page Index Toggle Pages: 1 [2]  Send Topic Send Topic Print Print
Hot Topic (More than 10 Replies) Printstring Problem (Read 2688 times)
Amor
Full Member
Members
***
Offline


No personal text

Posts: 366
Location: Germany
Joined: Feb 7th, 2004
Re: Printstring Problem
Reply #15 - Oct 18th, 2010 at 9:36pm
Print Post Print Post  
Hello Ray,

I mean The background color of  a Field.
Can i place also a colored box and  then printing text over the box?

Another Question: in a Document with more then one page how can habe the Number of pages
So i can write in the first page per example page 1 from 6   ?

Thank you for the help.

Dr. Belhareth
  

Dr. med. Amor Belhareth&&Medizin Labor &&Germany
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Printstring Problem
Reply #16 - Oct 19th, 2010 at 3:25pm
Print Post Print Post  
Quote:
Hello Ray,

I mean The background color of  a Field.
Can i place also a colored box and  then printing text over the box?


Yes you can. You would have to print the text first with the Measure only flag set to 1. This way you know how big to make the box using @PrintLastHeight() and @PrintLastWidth(). Then print the box. Then print the text over the box.

Quote:
Another Question: in a Document with more then one page how can habe the Number of pages
So i can write in the first page per example page 1 from 6   ?


You can number the pages with the page number but until you assemble all the pages you have no idea how many pages of data you have. So you can put on the bottom of the page "Page 3" for example but you can't put "Page 3 of 6"

Quote:
Thank you for the help.

Dr. Belhareth


You are welcome.
Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Amor
Full Member
Members
***
Offline


No personal text

Posts: 366
Location: Germany
Joined: Feb 7th, 2004
Re: Printstring Problem
Reply #17 - Oct 19th, 2010 at 9:21pm
Print Post Print Post  
Hello Ray!

i thank you so much for the recommandations.

Thereīs no Superposition Box -text. Waht i īm doing wrong?
is my code hier what you suggest?


PrintString ("Kulturegebnisse           Quantifizierung            Klinische Bedeutung  ", 10, @PageExtentY ( ), 0, vFont, vFontSize, 1)
vHeight = @PrintLastHeight()
vLength = @PrintLastWidth()
//writeln(vHeight + @nL() + vLength )
PrintBox (1, 10,@PageExtentY ( ), vLength , vHeight)
PrintString ("Kulturegebnisse           Quantifizierung           Klinische Bedeutung  ", 10, @PageExtentY ( ) , 0,vFont  , vFontSize, 0)
  

Dr. med. Amor Belhareth&&Medizin Labor &&Germany
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Printstring Problem
Reply #18 - Oct 20th, 2010 at 6:44pm
Print Post Print Post  
Hello Amor,

Try

at the top of your code
Code
Select All
Var vY as Int 



and then

Code
Select All
vY = @PageExtentY()
PrintString ("Kulturegebnisse           Quantifizierung            Klinische Bedeutung  ", 10, vY, 0, vFont, vFontSize, 1)
vHeight = @PrintLastHeight()  
vLength = @PrintLastWidth()
PrintBox (1, 10, vY, vLength + 5, vHeight)
PrintString ("Kulturegebnisse           Quantifizierung           Klinische Bedeutung  ", 10, vY , 0,vFont  , vFontSize, 0)   



-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Amor
Full Member
Members
***
Offline


No personal text

Posts: 366
Location: Germany
Joined: Feb 7th, 2004
Re: Printstring Problem
Reply #19 - Oct 21st, 2010 at 7:57pm
Print Post Print Post  
Hello Ray,

Yes, Today i finished my first Print- Projekt using PrinSting and itīs perfect.

Ray iīm still learning.

Thanks.
  

Dr. med. Amor Belhareth&&Medizin Labor &&Germany
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Printstring Problem
Reply #20 - Oct 21st, 2010 at 8:57pm
Print Post Print Post  
Glad I could help.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send Topic Send Topic Print Print