Excel Set Cell Color and Border.viのbackground color 設定について

お世話になっております。
Microsoft オフィス用レポート生成ツールキットを使って
LabVIEWで収集したデータをExcelファイルで出力しようと考えています。
そこで質問が有ります。
題名のようにExcel Set Cell Color and Border.viのbackground color 設定についてです。
デフォルト(未配線)では白に設定されていますが、”色なし”に設定するにはどうしたら良いのでしょうか?
又、罫線色等を指定する数値設定に関しては、何処を調べたら良いのでしょうか?
ご教授の程、宜しくお願い致します。

_YN 様
平素よりNI製品をご利用頂きまして誠にありがとうございます。
日本ナショナルインスツルメンツ技術部の湧川と申します。
ご質問にお答え致します。
色なしにしたいとの事ですが、こちらでExcel Set Cell Color and Border.viを使用して簡単なVIを実行させてみましたが色なしに設定することはできませんでした。
そこで質問したいのですが色なしにする理由というのはバックグラウンドが白のままだとセルの枠が見えなくなるからでしょうか。
もしそうであれば設定により枠をつけることができますのでそちらの方を試して頂けたらと思います。
方法としましては同じExcel Set Cell Color and Border.viを使い設定します。
アイコンの上部にピンク色のピンが2つあるかと思いますがそちらからセル内側の線、外側の線を設定できます。
添付した画像を参照して下さい。
画像のように設定しますとセルに黒色の枠ができると思います。
数値設定などに関しても質問されていますが、そちらはヘルプがありますのでそちらを参照頂けると詳しい情報がわかるかと思います。
LabVIEWでVIを開いている時に ctrl + H を押しますと小さいウィンドウ「詳細ヘルプ」が立ち上がります、その状態でマウスのポインタをアイコンに重ねて頂きますと詳細ヘルプにアイコンの説明が記述されます。
ウィンドウズ内のリンクからオンラインヘルプを参照することもできます。
上記内容をご確認いただきまして、何かS_YN様の意図と違う点などありましたらご連絡下さい。
宜しくお願い致します。
日本ナショナルインスツルメンツ株式会社
技術部
湧川 朝満
添付:
Excle Set Color Sample.JPG ‏58 KB

Similar Messages

  • Chance Xfce desktop icon color and folder select background color

    Hi there,
    I'm using Xfce as my DE and I have installed this theme.
    The problem is, because I have a black desktop background I can't see the icon's labels very well. I already tried to change the color with the file .gtkrc-2.0 in many ways, including the one in Arch Wiki, but the problem continues.
    The other problem is, when I select a folder/file in Thunar the background is white, and again it's very difficult to distinguish between selected and not select folders/files. How can I change the background color? (This one I have no idea of how to make).
    Thanks in advance.

    Hello,
    Try here: http://support.apple.com/kb/HT2493?viewlocale=en_US and here:
    http://www.apple.com/downloads/macosx/icons_screensavers/
    Carolyn

  • Report Generation broken after deployment - Excel Set Cell Color and Border.vi

    Upon deployment, the Excel Set Cell Color and Border.vi became broken.  After installing LV2010 SP1 to view the VIs in the deployment, I noticed that in the second case structure where the code draws the border using the BorderAround invoke node, there is an extra variant input parameter named 'Parameters'.  Upon right-clicking, an option to 'Relink Invoke Node' appeared and after selecting this, the extra input disappeared and the VI was no longer broken.
    Why does "Relink Invoke Node" appear?  How do I create a deployment with this issue?  Has anybody else experienced this?  Why is the TestStand deployment so buggy?  

    Hi Ching-Hwa,
    I have set up a test deployment here where I am deploying a workspace that contains a sequence file.  This sequence file has a LabVIEW Action Step calling a VI that opens a new Excel file and simply calls the Excel Set Cell Color and Border VI.  After deploying this, both the VI and my test sequence ran on the deployment machine without error.  Therefore, I do have some more questions to more accurately reproduce what you are seeing.
    First, what operating systems are you developing on and deploying to?  Also, what license do you have for TestStand on the machine you are deploying to?  If you have a development version, can you manually take the sequence file and VI to this machine and run it?  I know you now have LabVIEW 2010 SP1 on your development machine, but if you have the development version of TestStand as well, it would be interesting to see if you copy the files over if you still see this behavior.  Are you including the TestStand Engine in the deployment?
    Can you open a blank VI on the deployment machine and add the Excel Set Cell Color and Border VI?  It would also be interesting to see if this is not a product of the deployment, but rather an issue with something on the deployment machine itself.  What version of the Report Generation Toolkit do you have on each machine?  Also, what versions of Excel are you using on the development and deployment machine?  Again, it would be helpful for me to know exactly what versions you have installed on both the development and deployment machines so that I can reproduce this as accurately as possible.
    One last thing to try, too, would be to try deploying the VI by itself just to see if it also has the same behavior.  Do you have the Application Builder in LabVIEW?  If so, could you also try building an executable from the VI, create an installer, and deploy this to the deployment machine?  
    In regards to the "freezing" of code by removing the block diagrams, I do not believe this will be a proper work around in this case.  While this removes the block diagram from actually being deployed along with the VI and restricts users from editing the code on the deployment machine, if something is getting changed in the compiled code upon deployment, this will not stop this from happening.  This option is available more as a memory option to lower the size of the deployment as well as prohibit any users on the development machine from editing the block diagram themselves.    
    Thanks, Ching-Hwa!  I look forward to your response so that I can continue trying to reproduce this issue.  Have a great day! 
    Taylor G.
    Product Support Engineer
    National Instruments
    www.ni.com/support

  • NI_Excel.Ivclass:Excel Set Cell Color and Border.vi Error

    Hi
    I was trying to compile a file and I kept getting an error. It zeroed in on the vi that was not compiling. I am attaching the vi to this message. The vi seems to be broken. And I am not sure how to fix this. Can some one please help me out with this. Thanks in advance. 
    I guess it is associated with Report Generation Toolkit. Please let me know if you need any more details.
    This is the error message 'One or more required inputs to this function are not wired or are wired incorrectly. Show the Context Help window to see what the connections to this function should be.'
    Regards
    Mr Miagi
    Solved!
    Go to Solution.
    Attachments:
    Excel Set Cell Color and Border.vi ‏20 KB

    http://forums.ni.com/t5/LabVIEW/Set-excel-cell-color-and-border-broken-can-t-build-application/m-p/1...
    Please do a search.

  • Excel Set Cell Color and Border VI

    您好,
    請問如果不小心更改到Excel Set Cell Color and Border VI的內容,應如何復原?
    謝謝!!!
    已解決!
    轉到解決方案。
    附件:
    Excel Set Cell Color and Border.jpg ‏231 KB

    http://search.ni.com/nisearch/app/main/p/bot/no/ap/tech/lang/zht/pg/1/sn/catnav:du/q/report%20genera...
    以下載點除了 labview 2012 report generation toolkit 以外
    其他都是 patch 檔
    如果您有購買正式版,也許您可以跟 NI 客服部求救

  • Excel Set Color and Border VI: no fill?

    If i use Excel Set Color and Border VI to modify the format of a cell, i will get white as my default color for my cell.  However, I am looking for no fill.  I don't want any color, since the color will hide the gird line.  What do I get the no fill option for cell color in LabVIEW?
    Kudos and Accepted as Solution are welcome!
    Solved!
    Go to Solution.

    I have to say I was waiting for this question (I have tried it and observed the same thing). The only solution I see is to use a combination of the RGT vis and ActiveX.
    Ben64
    note, I have connected Cell1 and Cell2 of the _Worksheet Range method but it is probably sufficient to connect only Cell1 here.
    edit: Good, your solution seems a lot more simple!

  • Need help with Report Generation Toolkit: Excel Set Cell Format.vi

    Hi people,
    I've been searching and found this old thread of someone asking what is the input parameter "Number format". And I dont know what should I put in there. I've tried so many possibilities, but nothing works so far, such as:
    0,0
    0,?
    0,#
    #,0
    ?,0
    and also with @, doesnt works. Where would I find help about this parameter?
    I'm using Excel2003, german version, thus local decimal separator is a comma.
    I also found this help from NI, but seems doesnt help me either. Do I miss something important?
    thanks,
    Yan. 

    Hi,
    I've used your suggestion and some numbers in excel doesnt need to get "right click, change to numbers" anymore (green indicators on the left-top side in some cells are gone). But, I think its still not a number, because I cant use a simple formula, such as in cell A10 I type "= A1/2" (cell A10 equals cell A1 divided with 2) . I got error which says its not a number.
    Well, but other thing is found, any format-string I put in the input of Excel Set Cell Format.vi, such as #,########, will be shown the same as "customize #,########" if I right click in a cell in excel and click "Zellen formatieren" (formatting cell). But however, the numbers are still depends on the input of the format I put in the Append Table to Report.vi.
    regards,
    Yan.

  • Mac 10.6.7:    I have scanned our clubs logo which is green on a white background.  Is there a program on my Mac which will allow me to select the green color and make it any color I wish?

    Mac 10.6.7:    I have scanned our clubs logo which is green on a white background.  Is there a program on my Mac which will allow me to select the green color and make it any color I wish?

    Hi,
    Without knowing what is on your Mac it is a little difficult to say.
    Photoshop Elements will do it (Use the Magic Wand to select the area then Paint it).
    GraphicConvertor comes bundled on some Macs and can do it.
    10:29 PM      Friday; May 27, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.7)
     Mac OS X (10.6.7),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Is There Any Way To Choose To Sort By Name and Pick a Background Color in Finder?

    Is There Any Way To Choose To Sort By Name and Pick a Background Color in Finder?  I've noticed in Finder's View Options that I cannot choose to sort by name and have a background color in icon view.  I've done a search in discussions and someone else mentioned this as well.

    To sort by name.....
    Open the finder window, then select the "change the item arragement" button.  Choose name from the drop down.

  • \National Instruments\LabVIEW 2011\vi.lib\addons\_office\excel.llb\Excel Set Cel

    \National Instruments\LabVIEW 2011\vi.lib\addons\_office\excel.llb\Excel Set Cel  with a broken arrow
    Attachments:
    error pic.png ‏27 KB

    version of Excel is 2010, but i have this problem with Excel 2007, Excel 2003. This property also has a problem in old  versions of  labview  (8.6; 9; 10).
    Attachments:
    excel1.png ‏86 KB
    pic2.png ‏4 KB
    excel version.png ‏38 KB

  • WebUtil and Microsoft Excel: Setting cell border properties

    I'm using the CLIENT_OLE2 package shipped with WebUtil to create a Microsoft Excel spreadsheet from an Oracle 10g Form and, so far, have managed to:
    - Create multiple worksheets
    - Populate cells with values and formulae
    - Format cells, including setting font name and size, setting bold italic and underline attributes
    The final requirement is to set a border on a cell or group of cells, but this is where I'm stumped. My code thus far looks like this:
    DECLARE
      l_application   CLIENT_OLE2.OBJ_TYPE ;
      l_workbooks     CLIENT_OLE2.OBJ_TYPE ;
      l_workbook      CLIENT_OLE2.OBJ_TYPE ;
      l_worksheets    CLIENT_OLE2.OBJ_TYPE ;
      l_worksheet     CLIENT_OLE2.OBJ_TYPE ;
      l_cell          CLIENT_OLE2.LIST_TYPE ;
      l_borders       CLIENT_OLE2.OBJ_TYPE ;
    BEGIN   
      l_application := CLIENT_OLE2.CREATE_OBJ('Excel.Application') ;
      l_workbooks := CLIENT_OLE2.GET_OBJ_PROPERTY(l_application,'Workbooks') ;
      l_workbook := CLIENT_OLE2.GET_OBJ_PROPERTY(l_workbooks,'Add') ;
      l_worksheets := CLIENT_OLE2.GET_OBJ_PROPERTY(l_workbook,'Worksheets') ;
      l_arguments := CLIENT_OLE2.CREATE_ARGLIST ;
      CLIENT_OLE2.ADD_ARG(l_arguments,'Sheet1') ;
      l_worksheet := CLIENT_OLE2.GET_OBJ_PROPERTY(l_workbook,'Worksheets',l_arguments) ;
      CLIENT_OLE2.DESTROY_ARGLIST(l_arguments) ;
    --  Select cell A1
      l_arguments := CLIENT_OLE2.CREATE_ARGLIST ;
      CLIENT_OLE2.ADD_ARG(l_arguments,1) ;
      CLIENT_OLE2.ADD_ARG(l_arguments,1) ;
      l_cell := CLIENT_OLE2.GET_OBJ_PROPERTY(l_worksheet,'Cells',l_arguments) ;
      CLIENT_OLE2.DESTROY_ARGLIST(l_arguments) ;
      l_borders := CLIENT_OLE2.GET_OBJ_PROPERTY(p_cells,'Borders') ;
    --  What happens next...?
    --  Clean up
      CLIENT_OLE2.RELEASE_OBJ(l_borders) ;
      CLIENT_OLE2.RELEASE_OBJ(l_worksheet) ;
      CLIENT_OLE2.RELEASE_OBJ(l_worksheets) ;
      CLIENT_OLE2.RELEASE_OBJ(l_workbook) ;
      CLIENT_OLE2.RELEASE_OBJ(l_workbooks) ;
      CLIENT_OLE2.RELEASE_OBJ(l_application) ;
    END ;I'd be obliged for a pointer in the right direction!

    Well, in spite of 80-odd views, it looks like I've answered my own question.
    The borders around a range of cells in Excel are actually separate elements of the Borders object. You need to specify which border you want and set it individually. The code below draws a border around cells A1 to C3. Note the constants defined at the top of the listing; these are the "actual" values of the corresponding Excel constants that are referenced in the VBA code if you draw the border by hand while recording a macro.
    Enjoy!
    DECLARE
      c_automatic     CONSTANT NUMBER := -4105 ;  -- ColorIndex = xlAutomatic
      c_thin          CONSTANT NUMBER := 2 ;      -- Weight = xlThin
      c_medium        CONSTANT NUMBER := -4138 ;  -- Weight = xlMedium
      c_thick         CONSTANT NUMBER := 4 ;      -- Weight = xlThick
      c_continuous    CONSTANT NUMBER := 1 ;      -- LineStyle = xlContinuous
      c_edge_left     CONSTANT NUMBER := 7 ;      -- Border = xlEdgeLeft
      c_edge_top      CONSTANT NUMBER := 8 ;      -- Border = xlEdgeTop
      c_edge_bottom   CONSTANT NUMBER := 9 ;      -- Border = xlEdgeBottom
      c_edge_right    CONSTANT NUMBER := 10 ;     -- Border = xlEdgeRight
      l_application   CLIENT_OLE2.OBJ_TYPE ;
      l_workbooks     CLIENT_OLE2.OBJ_TYPE ;
      l_workbook      CLIENT_OLE2.OBJ_TYPE ;
      l_worksheets    CLIENT_OLE2.OBJ_TYPE ;
      l_worksheet     CLIENT_OLE2.OBJ_TYPE ;
      l_range         CLIENT_OLE2.LIST_TYPE ;
      PROCEDURE draw_border (
        p_range       IN CLIENT_OLE2.LIST_TYPE,
        p_side        IN NUMBER,
        p_weight      IN NUMBER)
      IS
        l_edge      CLIENT_OLE2.LIST_TYPE ;
        l_border    CLIENT_OLE2.OBJ_TYPE ;
      BEGIN
        l_edge := CLIENT_OLE2.CREATE_ARGLIST ;
        CLIENT_OLE2.ADD_ARG(l_edge,p_side) ;
        l_border := CLIENT_OLE2.GET_OBJ_PROPERTY(l_range,'Borders',l_edge) ;
        CLIENT_OLE2.DESTROY_ARGLIST(l_edge) ;
        CLIENT_OLE2.SET_PROPERTY(l_border,'LineStyle',c_continuous) ;
        CLIENT_OLE2.SET_PROPERTY(l_border,'Weight',p_weight) ;
        CLIENT_OLE2.SET_PROPERTY(l_border,'ColorIndex',c_automatic) ;
        CLIENT_OLE2.RELEASE_OBJ(l_border) ;
      END draw_border ;
    BEGIN   
      l_application := CLIENT_OLE2.CREATE_OBJ('Excel.Application') ;
      l_workbooks := CLIENT_OLE2.GET_OBJ_PROPERTY(l_application,'Workbooks') ;
      l_workbook := CLIENT_OLE2.GET_OBJ_PROPERTY(l_workbooks,'Add') ;
      l_worksheets := CLIENT_OLE2.GET_OBJ_PROPERTY(l_workbook,'Worksheets') ;
      l_arguments := CLIENT_OLE2.CREATE_ARGLIST ;
      CLIENT_OLE2.ADD_ARG(l_arguments,'Sheet1') ;
      l_worksheet := CLIENT_OLE2.GET_OBJ_PROPERTY(l_workbook,'Worksheets',l_arguments) ;
      CLIENT_OLE2.DESTROY_ARGLIST(l_arguments) ;
    --  Select the box with top-left of A1 and bottom-right of C3.
      l_arguments := CLIENT_OLE2.CREATE_ARGLIST ;
      CLIENT_OLE2.ADD_ARG(l_arguments,'A1:C3') ;
      l_range := CLIENT_OLE2.GET_OBJ_PROPERTY(p_worksheet,'Range',l_arguments) ;
      CLIENT_OLE2.DESTROY_ARGLIST(l_arguments) ;
    --  Draw border along the left edge of cells in range
      draw_border(l_range,c_edge_left,c_thick) ;
    --  Draw border along the top edge of cells in range
      draw_border(l_range,c_edge_top,c_thick) ;
    --  Draw border along the right edge of cells in range
      draw_border(l_range,c_edge_right,c_thick) ;
    --  Draw border along the bottom edge of cells in range
      draw_border(l_range,c_edge_bottom,c_thick) ;
    --  Clean up
      CLIENT_OLE2.RELEASE_OBJ(l_range) ;
      CLIENT_OLE2.RELEASE_OBJ(l_worksheet) ;
      CLIENT_OLE2.RELEASE_OBJ(l_worksheets) ;
      CLIENT_OLE2.RELEASE_OBJ(l_workbook) ;
      CLIENT_OLE2.RELEASE_OBJ(l_workbooks) ;
      CLIENT_OLE2.RELEASE_OBJ(l_application) ;
    END ;It's worth pointing out that the code above has been culled from my specific procedure and has been simplified. It hasn't been tested, although the DRAW_BORDER nested procedure has been copied straight from working code.

  • Datagrid: Can I set a tranparency level for column background color?

    Hi all,
    I have a datagrid with background colors set using triggers. This works. I would like to set a column background color but I don't want to make the color solid because it will block the row color. Is there a way to set the column background color transparency
    to 50% (or less) so that I can still see (or blend) with the row background color? I can set the "background" property of the column to a value of "transparent" but this makes no sense without a color.
    Thanks
    <DataGrid.RowStyle>
    <Style TargetType="DataGridRow">
    <Style.Triggers>
    <DataTrigger Binding="{Binding col_oPutorCall}" Value="call">
    <Setter Property="Background" Value="Cornsilk"/>
    </DataTrigger>
    <DataTrigger Binding="{Binding col_oPutorCall}" Value="put">
    <Setter Property="Background" Value="BlanchedAlmond"/>
    </DataTrigger>
    <DataTrigger Binding="{Binding col_rowColor}" Value="false">
    <Setter Property="Background" Value="LightGreen"/>
    </DataTrigger>
    </Style.Triggers>
    </Style>
    </DataGrid.RowStyle>
    <DataGridTextColumn Binding="{Binding col_oBid, StringFormat=F2}" FontFamily="Arial" FontWeight="Bold" FontSize="12" Header="oB" >
    <DataGridTextColumn.CellStyle>
    <Style TargetType="DataGridCell">
    <Setter Property="Background" Value= "Transparent" />
    <Setter Property="Background" Value= "AliceBlue" />
    </Style>
    </DataGridTextColumn.CellStyle>
    </DataGridTextColumn>

    Background is a brush.
    You can define a brush with an opacity in a resourcedictionary merged in app.xaml or in your window.resources ( etc ).
    <Grid.Resources>
    <SolidColorBrush x:Key="TransparentIshBrush" Color="Red" Opacity=".3" />
    </Grid.Resources>
    I should think you can then do:
    <DataGridTextColumn Binding="{Binding col_oBid, StringFormat=F2}" FontFamily="Arial" FontWeight="Bold" FontSize="12" Header="oB" >
    <DataGridTextColumn.CellStyle>
    <Style TargetType="DataGridCell">
    <Setter Property="Background" Value="{StaticResource TransparentIshBrush}" />
    </Style>
    </DataGridTextColumn.CellStyle>
    </DataGridTextColumn>
    The problem with your former piece of code is that setting an opacity on a datagridcell gets everything in it. You would have to do
    <Setter Property="(BackGround.Opacity)"
    And I'm rather doubtful that would work anyhow.
    Please don't forget to upvote posts which you like and mark those which answer your question.
    My latest Technet article - Dynamic XAML

  • How do I make the background of a photo one color and the object another color?

    I have a photo of a windmill with the sky and clouds as background.  I would like like to keep the clouds as is and change the color of the windmill.  How can I do this?

    You can use the HSL panel to change relationships between tones and colors. For example use Luminance mode to darken a sky by adjusting the blue and aqua channels or use Saturation mode to make an image monochrome except for one dominant color.
    If you want to change color completely first use the HSL panel to remove color and then paint with the adjustment brush set to a solid color; although that’s a bit more tricky.
    See examples below:

  • How to set our own main application titlewindow  background color ?

    Hi guys
      i stuck in a problem . i wanna change the background color of titlebar in adobe air . i am unable to set it by changing the systemchrome to none and      transparent to true . in flash builder 4 .
    Thanks and regards
    Mohit

    Hi guys
      i stuck in a problem . i wanna change the background color of titlebar in adobe air . i am unable to set it by changing the systemchrome to none and      transparent to true . in flash builder 4 .
    Thanks and regards
    Mohit

  • Does Numbers support Excel functions CELL, SUBSTITUTE, and REDIRECT?

    Been trying to find the list of Excel-compatible functions but did not succeed. I would like to use Numbers to edit my Excel files in iPad. I often generate reports by pulling data out from a seperate sheet using Excel functions like CELL, SUBSTITUTE, and REDIRECT. I have not purchased Numbers yet, that is why I would like to know where I find the complete list of Excel-compatible functions or at least know if Numbers support these functions.  Thank you in advance.

    Numbers does support the function substitute()
    I did not see the functions cell() and redirect() in the function browser.
    There is afree function reference here:
    iWork '09 Formulas and Functions User Guide
    which you can use

Maybe you are looking for