Position Of Images
Hello,
i have one question. I have 5 zone for more logos.
In zone number 1 i can choose logo11, logo12, logo13 or logo14 (all logos have size 15 x 30 mm and logo is defined in DB for ex. in excel file) or all logos from zone number 2, 3, 4, 5
In zone number 2 i can choose logo21, logo22, logo23 or logo24 (all logos have size 10 x 30 mm and logo is defined in DB for ex. in excel file) or all logos from zone number 3, 4, 5
In zone number 3 i can choose logo31, logo32, logo33 or logo34 (all logos have size 30 x 30 mm and logo is defined in DB for ex. in excel file) or all logos from zone number 4, 5
In zone number 4 i can choose logo41, logo42, logo43 or logo44 (all logos have size 5 x 30 mm and logo is defined in DB for ex. in excel file) or all logos from zone number 5
In zone number 5 i can choose logo51, logo52 (all logos have size 10 x 30 mm and logo is defined in DB for ex. in excel file)
I have Bartender version 10.1 SP3 Profesional.
Can I control position of object over VB script in this version?
Line
Format.Objects("LogoZone1").X = some number
result me error
(i am so big amateur in this language)
Thanks for answer
Karel
-
Legacy Poster
★ BarTender Hero ★
I result my problém - i need upgrade BT to EnterpriseAutomation KK
0 -
Shotaro Ito
★ BarTender Hero ★
You right - at least Automation Edition is required to move position of objects via VB Script / Active X.
0 -
Legacy Poster
★ BarTender Hero ★
but i have new one problem. I need, that line with name "LinkaA" have position 2 mm from image "LogoA" to left.
to "OnNewRecord" i write script:
Format.Objects("LinkaA").X = Format.Objects("LogoA").Width - 2
but "LinkaA" moving only on first label and on all next labels have same position like on label 1.
Karel
0 -
Shotaro Ito
★ BarTender Hero ★
Not sure I understood your question properly - though,
After you modify an object position, that will stay there. If you just need to move an object temporary, you need to revert the position on OnNewRecord event or onPrintEnd event etc.
I'm almost certain you've looked at this post but I copy the post for reference.
http://forums.seagullscientific.com/index.php?/topic/213-how-to-change-object-properties/
0 -
Legacy Poster
★ BarTender Hero ★
Hi,
for better understanding I create screenshots
I have logos with variable size. Before logo i need put dividing line. Position of first line is correct. But second line, which should be 2 mm right from the logo have correct position only in first label.
OnPrintJobStart I have this code:
screen3.jpg on attachment
OnIdenticalCopies I jave this code:
screen4.jpg on attachment
OnPrintJobEnd
screen5.jpg on attachment
Result you know see in attachment screen5.jpg - in screen you can see, that first label have lineA on position before logo (thats correct), on second label is all correct, on third label is correct only lineA, but lineA1 have some position like lineA on label 1 - but i need to lineA have position 2mm right from actually logo "coffe heaven".
Karel
0 -
Shotaro Ito
★ BarTender Hero ★
I see - it looks Document level vb script cannot detect picture object's size change during print job.
Would Border feature avail from BT10.0 help?
0 -
Legacy Poster
★ BarTender Hero ★
Ok, i finally solved (maybe very complicated, but function very good) (in attachment)
Your board help me also.
Thanks very much Karel
0 -
Shotaro Ito
★ BarTender Hero ★
beautiful... thanks!
0
請登入寫評論。
評論
8 條評論