• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Valence PDF Functions

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Valence PDF Functions

    Good morning everyone,

    I am having some issues with some of the PDF functions, specifically:
    • Bold
    • Italic
    • Underline
    Not sure if I am attempting to use them wrong, but out of the ones I have attempted - those were the only ones giving me issues.

    Example depicted below:

    image.png?

    I have tried applying it to the entire table as well as, for example, col8Array(1).bold='Y'; with no avail.

    Any input would be greatly appreciated :)



    Thanks,

    Dylan

  • #2
    image.png?

    Figure it might be useful to show the output of the Header Table I am attempting to apply these styles to.



    Dylan

    Comment


    • #3
      Do you want to apply these styles to all columns? If so, then do not pass the 4th parameter.

      Comment


      • #4
        Yes, I would like to make the entire Header Table bold.

        The PDF document is being created through several procedures, printing out line by line, so based on which line is being written to the document by which procedure, I can make adjustments for each individual one, if that makes sense.

        I.E:

        Header Table is separate from the subsequent tables of information, but even those are separated and print line by line because it is pulling from several different files.

        Comment


        • #5
          So did removing the 4th parameter make your column headings bold?

          Comment


          • #6
            Could you please clarify which parameter you are referring to?

            Comment


            • #7
              The table I am populating is not using the Column Headings as defined in the DDS it is pulling from. They are populated with text and variables that I am adding:
              image.png?

              Comment


              • #8
                Can you show me the definition of "pdfCol8Array".

                Comment


                • #9
                  image.png?

                  col8Array - Rows (8)
                  pdfCol8Array - Columns(4)


                  Comment


                  • #10
                    OK, I just wanted to be sure that your "col8Array" was defined off of the vvPDF structure. So I read through this all again and then realized that I am still not entirely clear on everything. Are you wanting to bold the column headings or looking to bold the actual data for that column. Your first screenshot has "omitHeadings" set to "Y" so this should omit column headings entirely. Also, what version of Valence are you using?

                    Comment


                    • #11
                      Yes, so I am looking to bold the data for that table. The headings are omitted because of the way it is working.

                      Reading through files, selecting data from each file when applicable for the report (given the parameters selected by the user) and printing them out one line at a time, essentially writing a 1 column table with each print. Headings would be very overbearing, and also not entirely useful for this instance. So no column headings, I am populating a table with a 'Header' that I fill with text and some selected parameters from the user.

                      Version: 6.3.20241120.2


                      I understand that this is likely not how any of it was intended to be used, so if there is no real solution at this point it is ok. I have been able to use stripedRows to highlight the other lines I intended to use the bold function for, considering it stripes the first row and I am only doing a 1 column table at a time, I am able to control which rows are highlighted. So no big deal on the Header table if there is nothing that can be done.

                      Comment

                      Working...
                      X