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


No personal text

Posts: 366
Location: Germany
Joined: Feb 7th, 2004
Printstring Problem
Oct 12th, 2010 at 3:19pm
Print Post Print Post  
Hello!
If use Printstring to print my documents, but my Logo print begins to deep from the Top of the Page Start  approx. 4 cm
How do I influencing to print my logo 1cm e.g.

thank you for your help.
« Last Edit: Oct 15th, 2010 at 8:56pm by Hammer »  

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: 2480
Joined: Aug 20th, 2003
Re: Prinstring Problem
Reply #1 - Oct 12th, 2010 at 4:19pm
Print Post Print Post  
Hello Amor,

Can you post the PrintImage() line of programming that prints your logo?

-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: Prinstring Problem
Reply #2 - Oct 12th, 2010 at 4:28pm
Print Post Print Post  
Hello Ray-

Hier ist the Code


if @GlobalValue (vSignatureOnDoktorPrintString) = "1" then
     {
     PrintImage(".\pics\BEFUNDKOPF.JPG", 0, 0, -1, -1)
       ..
  

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: 2480
Joined: Aug 20th, 2003
Re: Prinstring Problem
Reply #3 - Oct 12th, 2010 at 6:41pm
Print Post Print Post  
Hello Amor,

Are you using PrintPageMargin() anywhere in your programming?

-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: Prinstring Problem
Reply #4 - Oct 12th, 2010 at 7:36pm
Print Post Print Post  
YES REY!

Subroutine MyNewPage()
var vFont as String = " Arial"
var vFontSize as Int = 12

   NewDocument(1)
  //NewPage(850, 1100)      
  NewPage (827, 1169)
  PrintPagePaper (5)
  PrintPageMargin(72, 72, 72, 72)
 
End Subroutine
  

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: 2480
Joined: Aug 20th, 2003
Re: Prinstring Problem
Reply #5 - Oct 12th, 2010 at 8:12pm
Print Post Print Post  
Try changing the PrintPageMargin line to the following

Code
Select All
PrintPageMargin(72, 36, 72, 72)  



-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: Prinstring Problem
Reply #6 - Oct 15th, 2010 at 4:21pm
Print Post Print Post  
Thank you Ray.
  

Dr. med. Amor Belhareth&&Medizin Labor &&Germany
Back to top
 
IP Logged
 
Amor
Full Member
Members
***
Offline


No personal text

Posts: 366
Location: Germany
Joined: Feb 7th, 2004
Re: Prinstring Problem
Reply #7 - Oct 15th, 2010 at 4:27pm
Print Post Print Post  
Hello!
Please how toget the Blue Box?


      PrintRGBColor (15,56,130) // Blue Color
     
       Printstring ("Facharzt für Mikrobiologie, Virologie und Infektionsepidemiologie", 0, @PageExtentY()+10 , 0, vFont, 14, 0)
     PrintString ("MDL Dr. Belhareth. Am Pferdemarkt 4a . 26003 Aurich", 10, @PageExtentY()+30, 0, vFont, 14, 0)
     PrintBox (Box_Type_Flat_Box, 10, @PageExtentY ( ), @PageExtentX( ), 1)
     
       PrintBox(32, 0, 480, 850, 800)   ---- > i get a gray Box ?

     PrintRGBColor (1, 0, 0)

Thank you for the help.

Dr. Belhareth
  

Dr. med. Amor Belhareth&&Medizin Labor &&Germany
Back to top
 
IP Logged
 
Amor
Full Member
Members
***
Offline


No personal text

Posts: 366
Location: Germany
Joined: Feb 7th, 2004
Re: Prinstring Problem
Reply #8 - Oct 15th, 2010 at 4:36pm
Print Post Print Post  
Hello!
Anther Question:
i want a title centered and underlined how do you please?
this das not work:

PrintString ("Antibiogramm", 10, 570, 0, "BArial", 32, 0,PRINTSTRING_ALIGN_CENTER)
PrintBox (Box_Type_Flat_Box, 10, @PageExtentY ( ) , @PageExtentX ( ), 1)
...
Thank you.
  

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: 2480
Joined: Aug 20th, 2003
Re: Prinstring Problem
Reply #9 - Oct 15th, 2010 at 8:26pm
Print Post Print Post  
Quote:
Hello!
Please how toget the Blue Box?


      PrintRGBColor (15,56,130) // Blue Color
     
       Printstring ("Facharzt für Mikrobiologie, Virologie und Infektionsepidemiologie", 0, @PageExtentY()+10 , 0, vFont, 14, 0)
     PrintString ("MDL Dr. Belhareth. Am Pferdemarkt 4a . 26003 Aurich", 10, @PageExtentY()+30, 0, vFont, 14, 0)
     PrintBox (Box_Type_Flat_Box, 10, @PageExtentY ( ), @PageExtentX( ), 1)
     
       PrintBox(32, 0, 480, 850, 800)   ---- > i get a gray Box ?

     PrintRGBColor (1, 0, 0)

Thank you for the help.

Dr. Belhareth


Hello Amor,

Not all boxes are filled in with color as some are just borders. The code below will give you a blue box that is filled in

Code
Select All
PrintBox(1, 0, 480, 850, 800)  



-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: Prinstring Problem
Reply #10 - Oct 15th, 2010 at 8:32pm
Print Post Print Post  

Hello Rey,

I want the  boxe not filled with color just the  border is Blue.

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: 2480
Joined: Aug 20th, 2003
Re: Prinstring Problem
Reply #11 - Oct 15th, 2010 at 8:34pm
Print Post Print Post  
Quote:
Hello!
Anther Question:
i want a title centered and underlined how do you please?
this das not work:

PrintString ("Antibiogramm", 10, 570, 0, "BArial", 32, 0,PRINTSTRING_ALIGN_CENTER)
PrintBox (Box_Type_Flat_Box, 10, @PageExtentY ( ) , @PageExtentX ( ), 1)
...
Thank you.


Hello Amor,

To center text you have to set a width for the PrintString statement

Code
Select All
PrintString ("Antibiogramm", 10, 570, 807, "BArial", 32, 0,PRINTSTRING_ALIGN_CENTER) 



-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Prinstring Problem
Reply #12 - Oct 15th, 2010 at 8:39pm
Print Post Print Post  
Quote:

Hello Rey,

I want the  boxe not filled with color just the  border is Blue.

Thanks  


Code
Select All
PrintBox(16, 0, 480, 850, 800)  



-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 #13 - Oct 15th, 2010 at 10:19pm
Print Post Print Post  
Rey-

Thank you very much for the help.
It works fine.

I have i hope the last  question about Printstring:

I want to modify condtionnally the background color usind PrintRGBColor (), is that possible?

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: 2480
Joined: Aug 20th, 2003
Re: Printstring Problem
Reply #14 - Oct 18th, 2010 at 2:40pm
Print Post Print Post  
Hello Amor,

The background color of the entire page? That could be done by placing a colored box over the entire page first and then printing text over the box.

-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