For example, if the value is 2000, divide that by 1000 to get a factor of 2. The value is divided by 1000 to set the stretch or shrink factor. The shape-size command is used to stretch or shrink the cylinder based on the values of the elements SOFTWARE, HARDWARE, and SERVICES. The following commands are entered into the Web tab: The combined object also contains a rectangle that is enabled to receive text from the incoming data. These represent the data elements software, hardware, and services. The shape consists of three cylinders: red, yellow, and blue. A template to achieve this is shown in the following visual representation of ratings figure:ĭescription of the illustration GUID-51B1E7E2-A597-48C4-9463-1E7F1E9622FE-default.gif Using this data element and the shape manipulation commands, you can create a visual representation of the ratings so that the reader can compare them at a glance. Notice there is a USER_RATING element for each CD. This example demonstrates how to set up a template that generates a star-rating based on data from an incoming XML file. And for each subsequent occurrence the offset would be another 100 pixels down the page. The offset for the second occurrence would be 100 pixels: (2-1) *100. Therefore for the first occurrence the offset would be 0: (1-1) * 100. The XSL position command returns the record counter in the group (that is 1,2,3,4) one is subtracted from that number and the result is multiplied by 100. (position()-1)*100) sets the offset in pixels per occurrence. Shape-offset-y: is the command to offset the shape along the y-axis. For each occurrence of the element SHAPE_GROUP a new shape is created. SHAPE_GROUP is the name of the repeating element from the XML file. For example, to replicate a shape down the page, use the following opens the for-each loop for the shape context To replicate a shape, use a command in conjunction with a shape-offset declaration. At last, you can format the text box as no fill and no outline from the Shape Fill and Shape Outline separately under the Drawing Tools - Format tab, see screenshot:ħ.You can replicate a shape based on incoming XML data in the same way you replicate data elements in a for-each loop. After entering the text into the text box, hold Ctrl key to select both the text box and picture, then, right click the picture, choose Group > Group to group these two objects, see screenshot:Ħ. And then, type the text into the text box as following screenshot shown:ĥ. Then, click OK button, and now, please click Insert > Text Box > Draw Text Box, and then draw a text box on the picture.Ĥ. In the Layout dialog box, under the Text Wrapping tab, select Square option in the Wrapping style section, see screenshot:ģ. Select the picture where you want to insert text, then, right click, and choose Size and Position from the context menu, see screenshot:Ģ. You can insert a text box into the Word file, and then drag the text box on the picture, please do as this:ġ. Insert text on picture in Word document by using Text box This article, I will talk about a handy trick for inserting text on picture in Word file. How to insert text on picture in Word document?īy default, we can not type text into the picture in a Word document directly.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |