Quantcast
Channel: FiveTech Software tech support forums
Viewing all articles
Browse latest Browse all 26212

Printing an image.

$
0
0
Antonio, I created a easy to use Label-section my customer asked for. Once the values are defined, only different text is needed. the paper orientation is landscape 7 labels can be printed The text-rows, the distance from left to the 1. label and the label-width is defined The calculation to center the text works fine but the calculation ( pixel ) to center the images doesn*t work for any reason and I had to use fixed tested values. [quote:2j4t226q]nRow = Max( 0, ( nRow * ::nVertRes() / (::nVertSize() / 25.4 ))-::nYoffset ) nCol = Max( 0, ( nCol * ::nHorzRes() / (::nHorzSize() / 25.4 ))-::nXoffset )[/quote:2j4t226q] 1. text-row = aODat[64] left border to the 1. label = [color=#0000FF:2j4t226q]aODat[65] [/color:2j4t226q] 2. text-row = aODat[66] 3. text-row = aODat[67] 4. text-row = aODat[68] 5. text-row = aODat[69] label-width = [color=#0000FF:2j4t226q]aODat[70[/color:2j4t226q]] // labels next to each other ) text centered YES / NO = aODat[74] ( images are allways shown centerd ) image YES / NO = aODat[75] Image-top = aODat[76] Image-size = aODat[77] nILeft := 260 // used a fixed value tested left border + dlabel-distance / 2 to calculate the center of the 1. label nILeft := Max( 0, ( [color=#0000FF:2j4t226q]aODat[65][/color:2j4t226q] * oPRINT:nHorzRes() / (oPRINT:nHorzSize() / 25.4 )) - oPRINT:nXoffset ) + ; // left distance Max( 0, ( ( [color=#0000FF:2j4t226q]aODat[70][/color:2j4t226q] * oPRINT:nHorzRes() / (oPRINT:nHorzSize() / 25.4 )) - oPRINT:nXoffset ) / 2 ) // label center INPUT [img:2j4t226q]http://www.pflegeplus.com/IMAGES/Label1.jpg[/img:2j4t226q] PRINTPREVIEW [img:2j4t226q]http://www.pflegeplus.com/IMAGES/Label2.jpg[/img:2j4t226q] could the centerd image-position be calculated ? best regards uwe

Viewing all articles
Browse latest Browse all 26212

Trending Articles