Print table, variable column width

I've almost finished a software in LabView which prints a ticket. Everything is already done, but the problem is that I need to print a table with variable column width: I have queantity, description and price in my table, so quantity does not need the same column width as description, to give an example. Is it necessary to work trough Excel to fix this issue or is there any way to solve it on a standard report?

Hi coyotejr83
Do you have the Report Generation Toolkit installed?? If you do there are Functions you can use to modify the width of the cells in your ticket. If you do not have it installed you can use a Table class(this class is VI Server>>Generic>>Go Object>>Controls>>Table) property node to change the size of the the cells in your table before sending it to print. I would recomend the Report Generation Toolkit, because it gives you much more functionality.
Have a great day
Juan Arguello
National Instruments México y Latinoamérica
Applications Engineer

Similar Messages

  • RoboHelp 10 - Table Preferred Column Width Issue

    I converted a RoboHelp 9 project to RoboHelp 10 and noticed that Column 1 in all tables has a preferred width setting of 93% and it is not allowing me to remove this setting. When I uncheck the Preferred width checkbox and click OK, then go back to the Table Properties>Column tab, the Preferred width checkbox is checked again with a width setting of 93%. The column width is not specified in the HTML, it is set to fit to the contents (<col  />). The odd thing is that Column 1 only displays this way in Design view. When previewing and publishing the topic, it displays correctly (fits to contents). This however makes editing content in tables extremely difficult in Design view. Any assistance is appreciated.

    If it doesn't have a width setting of 93%, where are you finding it is set to 93%?
    There was a bug in Rh10 with table widths and I cannot recall the exact details without some testing. I think it was along the lines that in design view there would be problems unless the columns had a width and so did the table.
    I do know that once I set up tables in a specific way, they were also fine in design view. Post back if stuck and I will look but it may not be for a few days.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Table component - column width and background color?

    Is there any way to set the column width on the table component?  And is there any way to set the background color.  I am using Xcelsius 2008.
    Thanks,
    Karen

    Column width and background can be set in the Excel range and then bind table component to display the range.
    If you change the Column width of background in the Excel range, you need to rebind the display range to update the format.
    Hope this can help!

  • Column chart variable column width in a series

    Hi All
    I am having an array as dataProvider for my column chart where some values are null. Is there any way through which i can define my null values as 0 column width or remove columns from series. sample array as follows -
    <arr X="something" S0Y0="5" S0Y1="3" S1Y0="2" />
    <arr X="something" S0Y0="3" S0Y1="" S1Y0="7" />
    <arr X="something" S0Y0="5" S0Y1="5" S1Y0="" />
    <arr X="something" S0Y0="" S0Y1="3" S1Y0="" />
    <arr X="something" S0Y0="7" S0Y1="4" S1Y0="6" />
    Null values create a hole in column series so all i need to remove the gap in my series.
    any help is highly needed.
    thanks and regards,
    Varun Bajaj

    I'm running into the same problem and was wondering if this ever got resolved.  Here is a graph showing the problem.  As you can see there is a lot of empty space since the data set doesn't have entires for every time period.  If those "low data" dates could be collapsed somewhat it would be great.

  • Local Variable Column Width

    Group,
        From the Locals tab, is there a way to change the width of columns like "Local", "Type" and "Value"?  I'm using TestStand 3.0.  I'm having to readjust my column widths everytime I start TestStand. 
    Tony

    Hi Tony,
    I dont think its possible to change those parameter.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Variable Column Widths?

    Is it possible to adjust column widths in InDesign? I would like two skinny columns on either side of a wide central column. However, I cannot find a way to do this.
    Thank you so much!
    Bec

    If you put all the columns in one, multi-column, frame you're stuck with even widths, but you can thread individual single column frames, or use them independently. To adjust the widths, just unlock the guides and drag them. If you do it on a master page, it will reflect on all pages based on that master.

  • Comparing data size in one table to column widths in another table

    I have data in a table that has a large number of columns, many of them nvarchar of varying widths.  Im trying to take that data and insert it into another table but Im getting the warning message about string or binary data being truncated.  I
    suspect there is a field somewhere that is not large enough for the data.  However, I run across this often enough I would like to come up with a better solution than just eyeballing the data.
    I found this example
    http://www.sqlservercentral.com/Forums/Topic1115499-338-2.aspx
    (credit goes to poster in the linked thread above)
    Select columns
    into #T
    from MyDataSource;
    select *
    from tempdb.sys.columns as TempCols
    full outer join MyDb.sys.columns as RealCols
    on TempCols.name = RealCols.name
    and TempCols.object_id = Object_ID(N'tempdb..#T')
    and RealCols.object_id = Object_ID(N'MyDb.dbo.MyTable)
    where TempCols.name is null -- no match for real target name
    or RealCols.name is null -- no match for temp target name
    or RealCols.system_type_id != TempCols.system_type_id
    or RealCols.max_length < TempCols.max_length ;
    Why a full outer join ?  Why not just a left join, since I really only want to see the matches on my source table?
    When Im running this against the table im interested in, it doesnt seem to find matches between my target table and my temp table 

    As an outer join of any type, that query won't work well.  For example, suppose you do a left join.  So the query begins by getting every row from tempdb.sys.columns (whether it is in #T or not).  Consider a row for a column which is not in
    #T, you look for matches for rows in Mydb.sys.columns ON
    on TempCols.name = RealCols.name
    and TempCols.object_id = Object_ID(N'tempdb..#T')
    and RealCols.object_id = Object_ID(N'MyDb.dbo.MyTable)
    Notice that since the row you are considering is NOT a column in #T, the second part of the ON condition is not true, so the whole ON condition will not be true.  But this is a left join.  So the join keeps this row with NULL's in the columns coming
    from the RealCols table.  Then you do the where condition, but the connections are all OR and one of the conditions is RealCols.name is null (which it is because there was no match), your output will include a row for this column in tempdb even though
    this column is not in #T.  So if you use a left join, the output of this query will include a row for every column in every table in tempdb not named #T.
    Similarly, if you do a right join, you get a column for every row of every table in MyDb which is not a column in dbo.MyTable.
    And a full join (which you are doing above) will return a row for every column in every table in both tempdb and MyDb.
    This query will sort of work if you make it an inner join.  But even then it won't find every possible cause of string or binary truncation.  For example, you are doing RealCols.max_length < TempCols.max_length.  But in sys.columns, if
    you have a varchar(max) column, max_length is stored as -1.  So if a column in RealCols is varchar(50) and the same column in TempCols is varchar(max), that column will not show up as an exception, but of course, you can get truncation if you attempt
    to store a varchar(max) in a varchar(50).
    I would run a query more like
    Create Table FooX(a int, b varchar(20), c int, d varchar(20), e int, f varchar(20), g decimal(4,0));
    Select a, b, 1 as x, 'abc' as y, Cast('' as varchar(max)) As f, Cast(25.1 as decimal(3,1)) as g
    into #T
    from FooX;
    Select 'In Real, not in or different in Temp' As Description, name, column_id, system_type_id, max_length, precision, scale, collation_name From sys.columns Where object_id = Object_ID(N'FooX')
    Except Select 'In Real, not in or different in Temp' As Description, name, column_id, system_type_id, max_length, precision, scale, collation_name From tempdb.sys.columns Where object_id = Object_ID(N'tempdb..#T')
    Union All
    Select 'In Temp, not in or different in Real' As Description, name, column_id, system_type_id, max_length, precision, scale, collation_name From tempdb.sys.columns Where object_id = Object_ID(N'tempdb..#T')
    Except Select 'In Temp, not in or different in Real' As Description, name, column_id, system_type_id, max_length, precision, scale, collation_name From tempdb.sys.columns Where object_id = Object_ID(N'FooX')
    Order By name, Description;
    go
    Drop Table #T
    go
    Drop Table FooX
    The output of that is
    In Real, not in or different in Temp c 3 56 4 10 0 NULL
    In Real, not in or different in Temp d 4 167 20 0 0 SQL_Latin1_General_CP1_CI_AS
    In Real, not in or different in Temp e 5 56 4 10 0 NULL
    In Real, not in or different in Temp f 6 167 20 0 0 SQL_Latin1_General_CP1_CI_AS
    In Temp, not in or different in Real f 5 167 -1 0 0 SQL_Latin1_General_CP1_CI_AS
    In Real, not in or different in Temp g 7 106 5 4 0 NULL
    In Temp, not in or different in Real g 6 106 5 3 1 NULL
    In Temp, not in or different in Real x 3 56 4 10 0 NULL
    In Temp, not in or different in Real y 4 167 3 0 0 SQL_Latin1_General_CP1_CI_AS
    From which you can quickly see that the differences are c, d, and e are in the real table and not the temp table, f is in both tables but the max_length is different, g is in both table, but the precision and scale are different, and x and y are in the temp
    table, but not the real table.
    Tom

  • Column widths and gutters

    I would like to have variable column widths and gutters. At present (Acrobat 6 running under XP Prof. SP3) although I can choose the number of columns, and hence the number of gutters, all columns must be the same width and all gutters the same width.

    What does your question have to do with Acrobat? Acrobat is not an editor.

  • Change column width for print table to report

    Hi, want to make the first column in my table to be printed to report wider than the rest, for it contains the part numbers of about 16 chars and the other columns are the data of 4 each. Don't want to make all equally wide for I want to fit as many column as possible over the page. How can I do this?? Thanks for any help. Is there maybe another way to print in a table format?? Madri

    Hi Madri,
    Assuming you are using the Standard Report type with the Report Generation VIs, you can check out this KnowledgeBase entry that discusses how to customize the VI to generate a report with different column widths:
    http://digital.ni.com/public.nsf/websearch/7AEC2CC2618D47DF86256D280058BDA5
    Hope this helps,
    -D
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • Need custom column widths in Append Text Table to Report

    I need to print reports with tables of different column widths specified for each column, as the contained fields vary in width from just 3 characters in one column to 40 characters in another.  Also we are trying to match the reports generated by a non-labview routine.  In the past I have been able to achieve this by editing the Append Table to Report vi, working my way through the inner hierarchy to replace the DBL numeric COLUMN WIDTH control with a DBL numeric array.  The innermost vi, Set Table Column Width, assigns the numeric to a property node in a for loop, so the change is simple: replace the scalor with an array and enable indexing on the for loop.  Of course, after each Labview upgrade, I've had to go back in and repeat these edits on the overwritten upgraded vi's.  This time there is a problem.  The new version of this toolkit is object oriented, and disturbing these vi's wrecks the class methods in a way I don't understand (mostly because I've had no dealings with object oriented programming) and which cannot be undone.  I recently tried this and after not being able to fix the problem even with phone support, I had to spend the next two days unistalling and reinstalling Labview!  I desperately need a way to achieve this functionality without killing the toolkit, which is used (in its original functionality) by another absolutely critical program.  PLEASE HELP!
    The hierarchy is as follows:
    NI report.lvclass:Append Table to Report (wrap)
    NI report.lvclass:Append Table to Report 
    NI Standard report.lvclass:Append Text Table to Report
    NI Standard report.lvclass:tables
    NI Report Generation Core.lvlibet Table Column Width

    There is a highly relevant thread under discussion here:
    http://forums.ni.com/ni/board/message?board.id=fea​tures&thread.id=429
    You may wish to read it and chime in as it is a discussion of LabVIEW's policy (and possible change in policy for the future) concerning the handling of non-palette VIs between LV versions.
    Rob Hingle wrote:
    > Is that to say NI will not be helping me with this?  Pretty disappointing lack of support, seems
    > like a terrible idea to go to object oriented if even your own application engineers can't figure
    > out such a simple fix.  Gotta give NI a huge thumbs down on this one, thanks for nothing.
    I doubt that it is a simple fix -- our AEs are generally top notch at figuring out solutions for customers -- if it were simple, my bet is they'd have solved it. Asking an AE to work around a bug is different from asking them to rearchitect the toolkit. You are asking them to add a feature that the new version of the toolkit is not
    designed to support. The difficulty in doing this is completely independent of the decision to use LabVIEW classes to implement the toolkit. If any piece of software is not designed with a particular use case in mind, what may be a simple tweak under one design may become a very hard problem under another design.
    In your case, the solution is very straightforward: Use the older version of the toolkit. Any time you create a custom modification of the VIs that ship with LV or one of its toolkits, you should make your own copy and have your VIs link against the copy. LabVIEW promises to maintain all the public functionality version over version. Usually we succeed at that. What we do not promise is to maintain our private implementation of that functionality. It is impossible for LabVIEW (or any other software library) to maintain all of its private internal operations while still continuing any development. Using a copy of the original VIs shields you from having to recode your changes every version (something you've already mentioned is a chore) and it guarantees that functionality that you relie upon does not disappear.
    I hope you are willing to be understanding of this situation and not hold it against the AEs working on this. They try hard to provide excellent customer service, and spend lots of time inventing custom solutions for our users.  This happens to be a situation where the correct fix is not to modify the new toolkit version to do something it wasn't designed to do but to modify your development process so that the problem is solved now and into the future. 

  • Define column width using a variable

    Hi All,
    Is there a way to define the width of a specific column using a variable in an rtf template?
    I have a requirement that one column should fit it's (largest) content. Now my idea is to replace the static width in points with a variable, but seems to be impossible in MS Word.
    I've already tried to use split-column-width but then I also have to use split-column-header etc. which seems a bit excessive.
    Is there a way to do this nice and tidy?
    Kind regards,
    Machiel

    The script linked in this thread
    http://forums.adobe.com/thread/1115330
    can copy column widths; storing and retrieving them from a table style. The style won't apply the widths directly, but I have found it very useful.

  • Column width in output table cannot be changed

    Hi All,
    I have a visual composer model with an input form used to display variables to call a BW query. The query result is displayed in an output table.
    Multiple fields are displayed in the output table.
    On the layout tab of the visual composer model, I have changed the column width of the different output fields.
    After initial execution, the column widths of the different columns correspond to the settings in the layout tab. When I submit the query, example after entering the selection variables in the input screen and pressing submit, all columns widths change to 1 width. All columns now have the same width.
    We installed the latest VC version and hotpackages but this does not help.
    How can I change the column width of an output table?
    Best Regards,
    Filip

    Hi All,
    this column problem I know really good and there is a solution:
    Click on the Output-Port of your Query and then click on Configure. You will see on the right side the property "Dynamic Port". Uncheck that and you will see that the column width is like in the layout tab.
    This is only in Queries. In Function Modules you dont have to do this.
    Best Regards,
    Murat Yurtoglu

  • Can i change the column width in a table row dynamically

    Hi,
    There are two columns in one of the row of the table, can i change the width of the cells dynamically.
    Sometimes one of them will be blank and the other cell has to print the entire string .
    Left cell is left aligned and the right cell is right aligned.
    I tried to change the width using field.W but it didnot work.
    Regards,
    Sobhan

    Hi,
    We can change the column width of a column dynamically. Try the javascript code in the appropriate event.
    Table.columnWidths = "2in 3in 4in 5in";
    Thanks & Regards,
    Sanoosh

  • Fix Column width in tables

    Hi,
    Anyone of you please update the script for the below requirement.
    var doc = app.activeDocument, 
        w = doc.documentPreferences.pageWidth; 
        sel = doc.selection[0];
        if(sel instanceof Table) 
                var col = sel.columns; 
                    _left = sel.parent.parentPage.marginPreferences.left; 
                    _right = sel.parent.parentPage.marginPreferences.right, allcolwidth = 0; 
                for(var i=1;i<col.length;i++) 
                        var cell = col[i].cells, cont = ""; 
                        for(var j=0;j<cell.length;j++) 
                                cont += cell[j].contents; 
                        if(cont == "") 
                                col[i].width = "1p"; 
                                allcolwidth += col[i].width; 
                        else if(cont.indexOf("$") !=-1) 
                                col[i].width = "1p"; 
                                allcolwidth += col[i].width; 
                        else if(cont.indexOf("*") !=-1) 
                                col[i].width = "1p"; 
                                allcolwidth += col[i].width; 
                        else if(cont.indexOf("%") !=-1) 
                                col[i].width = "1p"; 
                                allcolwidth += col[i].width; 
                       else if(cont.indexOf(")") !=-1) 
                                col[i].width = "1p"; 
                                allcolwidth += col[i].width; 
                        else 
                                col[i].width = "5p"; 
                                allcolwidth += col[i].width; 
                                for(var k=0;k<col[i].cells.length;k++) 
                                        if(col[i].cells[k].contents !="") 
                                                var paras = col[i].cells[k].paragraphs; 
                                                for(var l=0;l<paras.length;l++) 
                                                        paras[l].justification = Justification.RIGHT_ALIGN; 
                col[0].width = w - _left - _right - allcolwidth; 
        else 
                alert("Select a table...") 
    All tables in a document:
    1) All $, %, ), columns should be fixed width “1p”
    2) All empty column should be “1p”
    3) All superscript content column like [1, (1), *] should be “1p”
    4) Remaining all columns (except first column) should be “6p” width and values are right aligned
    5) First column always variable width
    6) All underlines values should be 0.5 bottom border, border only need ‘$’ column and ‘value’ column (not in ‘)’ ‘%’ 1, (1), *) columns.
    7) Also table should be fit within text area (100%)
    The below script is working fine but it missed the requirements for (point no 3 and 6).
    Sometimes empty columns are not converted into "1p" because of spanning (see the below table), Can you please ignore the spanned columns while running the script or put any input dialogue box for "number of rows to ignore".

    Please do not post drive-by follow-ups to random ancient threads. The Column Width property referred to was introduced in APEX 4.0 in June 2010, 2 months after this thread originated. Whilst the new information might be useful for someone using APEX 4.0 who finds this thread in a search, this question occurs in hundreds of other threads: are you going to update all of them?
    And the Column Width property is in the Column Definition section of the column attributes...

  • How to optimize the column width in Table Control

    Hi all,
          When I am displaying fields in Table Control, the columns are displayed in full length, and I am unable to see all the fields at once.
    So as in grid , where we optimize the column width using layout, do we had any property for TC to do so.
    thanks for your help.
    Points would be awarded .
    Regards,
    Anil .

    Hi,
    In Se51, you can do this one, ust open your table control and resize the TC, there is no direct option to do this for entire TC, you need to do this field by field, and arrage the TC to adjust in a Single screen. In the field parameters, you have the field lenghts, there you can minimize the length of a field
    Regards
    Sudheer

Maybe you are looking for

  • Separate address book for my wife and I

    I reently switched to Mac and this is driving me crazy. I would like to keep our computer under one user so we don't have to switch user profiles to access her address book or if I update and address in my book, it doesn't get updated in hers. But, w

  • Win/iTunes doesn't recognize iPod + monochrome charger icon, please help

    Yesterday, my iPod was fine and now it doesn't seem to work. When I put in my iPod, it goes in, I see the Apple logo and then it goes straight to the monochrome charger icon. iTunes nor Windows recognizes it and when I take it out, the iPod doesn't w

  • Remote access from within a browser

    Hi! I'm relatively new to programming (currently studying) and a friend of mine asked me for help. His father is developping a new technology and gave me some spec. He offered me to help him (he doesn't like to code. He prefers designing microcontrol

  • I seem to have more than 1 FF running. Restarting brings up another one.

    I first noticed this issue when after ftp uploading the home page to my site (which is listed as the home page on FF, i11.me), I hit the refresh button and it refreshed OK. Next I turned off FF with the upper right "X" and the old Home page reappeare

  • Copy/paste and keyboard question...

    1)  Is there a way to adjust my imac so that when I copy/paste something it stays where the cursor is? I do a lot of copying and I use a colon, then skip two spaces and when I paste my selection, it skips back those two spaces after the colon.  It's