IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Profile: emalot
About
User Name: emalot
Forum Rank: Newbie
Real Name:
Location
Occupation:
Interests:
Gender: None Specified
Statistics
Joined: Thursday, May 31, 2018
Last Visit: Thursday, July 4, 2019 10:08:07 AM
Number of Posts: 5
[0.03% of all post / 0.01 posts per day]
Avatar
Last 10 Posts
Topic: Dynamic line breaks in word
Posted: Thursday, July 4, 2019 10:07:56 AM
Hi,
is there a way to add some line breaks in a resulting docx file through adding some code in the source xml?

Already tried: \n, ^p
but nothing to do!
Topic: Keep dynamic image aspect ratio
Posted: Friday, June 8, 2018 2:52:48 PM
Hi again,
I'm trying to embed some dynamic images in my sps... I achieved this but I need to resize them using a fixed width. The problem is: images does not keep their ratio so their height keeps being the original images'one. Is there any way to resize both keeping aspect ratio? Transformation will result in a Word Document. Thanks in advance.
Topic: Dynamically set cell width
Posted: Friday, June 8, 2018 2:49:21 PM
Sorry, this is not working for me... I forgot to say that I need to transform to Word2007+ format
Topic: Dynamically set cell width
Posted: Monday, June 4, 2018 7:31:48 AM
I did it. Hope this will help :-)
Topic: Dynamically set cell width
Posted: Thursday, May 31, 2018 9:22:14 AM
Is there any way to set single cell width in a dynamic table nested into another dynamic table?
I tried linking width of cell to 'cell-width' with xpah but it never worked... Should i convert attribute value in some way?

Example xsd:
Code:
<xs:complexType name="my_table_type_2">
    <xs:sequence>
        <xs:element name="single_row" type="multi_line_row" maxOccurs="unbounded" minOccurs="0"/>
    </xs:sequence>
</xs:complexType>
<xs:complexType name="multi_line_row">
    <xs:sequence>
        <xs:element name="single_cell" type="multi_line_cell" maxOccurs="unbounded" minOccurs="0"/>
    </xs:sequence>
</xs:complexType>
<xs:complexType name="multi_line_cell">
    <xs:sequence>
        <xs:element name="single_line" type="xs:string" maxOccurs="unbounded" minOccurs="0"/>
    </xs:sequence>
    <xs:attribute name="font-weight" type="xs:string" use="optional" default=""/>
    <xs:attribute name="cell-width" type="xs:string" use="optional"/>
</xs:complexType>

Example xml:
Code:
<my_table_2>
    <single_row>
        <single_cell font-weight="bold" cell-width="100px">
            <single_line></single_line>
            <single_line></single_line>
            <single_line>TEST N°</single_line>
        </single_cell>
        <single_cell cell-width="100px">
            <single_line>Specimens</single_line>
            <single_line>dia. [mm]</single_line>
            <single_line></single_line>
        </single_cell>
    </single_row>
    <single_row>
        <single_cell cell-width="100px">
            <single_line></single_line>
            <single_line>TTQ+TDS-320447-1 (3)</single_line>
            <single_line></single_line>
        </single_cell>
        <single_cell cell-width="100px">
            <single_line></single_line>
            <single_line>12,50</single_line>
            <single_line></single_line>
        </single_cell>
    </single_row>
</my_table_2>


Example design in attachments!

Any answer is welcome! :-)

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.