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.

Similar Messages

  • 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

  • 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 客服部求救

  • 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.

  • \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

  • Lost program icons Microsoft word 2008 and Microsoft excel 2008

    Hi I accidently turned Microsoft excel 2008 and microsoft word 2008 into wads of trash that disappeared when I accidnetly clicked the icons and moved them from the dock into the internet box.  I talked to one person already but can't seem to get back to them and he suggested that I use MIcrosoft Office 2008 but hte problem is is that I don't have it anymore because I deleted the program from my computer a few days ago (yesterday or the day before)  I had originally bought hte program from Best Buy and downloaded it from a disc but  I can't find the disc anymore.  Do you know what  I can do to recover the programs I checked the applications, office (of course, and word and excel 2008 aren't there and they aren't in the trash I checked there too.  I thought that it might be on my back-up time machine?  And I also couldn't go to undo to change what happened.  Thank you.

    Things just don't disappear. If you didn't put them in the trash, they must be there somewhere. Click the magnifying glass at the top right side of your screen and search for Microsoft Office and see if you can locate the folder. Also, I'm wondering if you actually installed office or if you were just running it from the downloaded .dmg file? When doing the search, keep an eye open for a Microsoft Office 2008 DMG file.

  • Java Swing and Microsoft Excel

    How do you open a Microsoft Excel  file from swing?
    please give a example.

    Hi,
    try these APIs:
    [http://poi.apache.org/]
    [http://jexcelapi.sourceforge.net/]
    Once you get the content of the files, it's up to you how you display it in your swing application.
    Demos and tutorials can be found on these sites as well.

  • Error with Oracle BI Publisher and Microsoft Excel

    Hi,
    I am using Oracle BI 10.1.3.3.0 in Windows XP. Whenever I am clicking on Login of Oracle BI Publisher Menu of Microsoft Excel, it is throwing me following error
    Error: Could not get server version: Invalid procedure call or argument.
    Everything is fine with MS Word. I have installed Analyzer for Excel Tool provided with th Oracle BI version mentioned above. I am having network installation for MS Office 2003. Can anybody give a solution please.
    Thanks in advance
    Rajith

    Hi,
    I am having the same problem. Any answers?
    Regards.

  • Crystal 2008 trial (12.0.0.683) and Microsoft Excel 5.0/95 Workbook

    Hi there,
    I'm testing a Data Source connection from Crystal to Excel. My error is
    "Unknown Database Connector Error".
    Any thoughts other than I need to have a full version of Crystal?
    Thanks,
    greg

    Lanny,
    I get exactly the same message when trying to open Microsoft Word (Mac version) documents emailed as attachments to my iPhone, so your problem is not Excel-specific. So far, Apple blames my telco, who blames my ISP, who blames Apple!
    I did see somewhere on the net that attachments will not come down if you have your email sender (Mail in my case) set to Rich Text instead of plain text. However, that does not seem to be the issue. I still get this problem, regards of the format setting. The attachments seem to have been downloaded OK but cannot be opened.
    Sorry I can't be more help but please let me know if you find the solution.
    Michael

  • How do I automate a large catalog with several unique sections using Data Merge and Microsoft Excel?

    My boss would like me to use data merge to create a catalog with 300+ pages and unique data fields on almost every page. It is an informational catalog that would contain pictures and several unique fitment and specification fields for each product that we sell and manufacture on each page. For years the catalog was made and modified manually in quark express. Is it possible to use data merge to recreate such a complex document? Does anyone have any useful reccomendations or links for tackling this project? I really appreciate any advice or help.
    Thank You,
    Kevin
    Message was edited by: kpalombi

    Online video
    http://tv.adobe.com/watch/instant-indesign/automating-a-catalog-with-data-merge/
    Software
    http://www.65bit.com/home/home.shtm
    Data Merge Tips
    http://www.theindesigner.com/blog/episode-43-data-merge-video

  • Need help to check multiple conditions and set AD user properties

    hello All,
    I have a data csv sheet where information as follows, using below information I need to update AD account attributes based on below conditions . I have full right and I can set any user properties. So this is not access right issue.   
    samaccountname,Othertelephone,language,employeeId
    abcd                      XXXXXXXXX     EN         SMS
    Now I need to check following conditions:
    Othertelephone =  if this should not be blank ,if so display message " filed is blank " and no changes should allowed in further attributes and  it should abort
    language= this field should only contain  EN or FR value if No display msg " error in language field " and no further changes to  the user attributes and it should abort
    employeeID= this field should only contain OTP or SMS value if Not filled display msg " error in Employee ID field " No further changes to the user attributes and it should abort
    changes to user will permit  when all attributes is filled. I do the testing taking samaccountname , othertelephone and employeeId into consideration but it did not helped. Getting error
    THIS is complete Code Of my Task where you need my focus on conditions
    group=Get-QAdGroup -SearchRoot  "domain/vpn group"
    Import-Csv D:\VPN.csv |
    ForEach-Object{
    if ($_.samaccountname -eq "")
       Write-Host "SAMACCOUNTNAME is blank"   -fore red
    else
     $user=Get-QAduser $_.samaccountname
    if ($user.memberof -contains  $group.DN)
     Write-Host "$($_.Samaccountname) user is allready a member" -fore red
    else
     Add-QADGroupMember $group $_.Samaccountname
    If ($_.othertelephone -eq "")
    Write-Output "$($_.samaccountname) telephone Number is blank"
    else
    if ($_.EmployeeID -notmatch 'OTP' -and 'SMS')
    Write-Output "$($_.samaccountname) EmployeeID field is not correctly field")
    Else
    Set-QADUser $_.SamAccountName -ObjectAttributes @{telephonenumber=$_.othertelephone;EmployeeID=$_.EmployeeID}
    error
    Set-QADUser : Access is denied.
    At C:\Users\g512263\AppData\Local\Temp\5f8facb6-f942-4c3d-b924-8953d9a706da.ps1:37 char:8
    +                    Set-QADUser $_.SamAccountName -ObjectAttributes @{telephonenumber=$_.othe ...
    +    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Set-QADUser], UnauthorizedAccessException
        + FullyQualifiedErrorId : System.UnauthorizedAccessException,Quest.ActiveRoles.ArsPowerShellSnapIn.Powershell.Cmdlets.SetUserCm
       dlet

    <title>Untitled - PowerGUI Script Editor</title>
    Hello JRV,Thank you for your time, There is no comma in my csv file , I double check. below I wrote a simple code.I removed all the conditions and just try to set the EmployeeID and it is working fine with same file.But as soon as I add conditions it gives access denied. as well as if I remove employee Id from your previous code and only try to set telephone No. still it gives access denied.I am just trying to figure out what is causing this.
    $group=Get-QAdGroup -SearchRoot "com/Group"
    Import-Csv D:\VPN.csv |
    ForEach-Object{
    if ($_.samaccountname -eq ""){
    Write-Host "SAMACCOUNTNAME is blank" -fore red
    }else{
    $user=Get-QAduser $_.samaccountname
    if ($user.memberof -contains $group.DN){
    Write-Host "$($_.Samaccountname) user is allready a member" -fore red
    }else
    Add-QADGroupMember $group $_.Samaccountname
    If ($_.othertelephone -ne "")
    Set-QADUser $user.SamAccountName -ObjectAtt Aributes @{telephonenumber=$_.othertelephone}
    } else
    Write-Output "$($_.samaccountname) phonenumber is blank"
    If ($_.EmployeeID -ne "")
    Set-QADUser $_.SamAccountName -ObjectAttributes @{EmployeeID=$_.EmployeeID}
    }else
    Write-Output "$($_.samaccountname) EmployeeID field is blank"
    If ($_.Preferredlanguage -ne "")
    Set-QADUser $_.SamAccountName -ObjectAttributes @{Preferredlanguage=$_.preferredlanguage}
    } else
    Write-Output "$($_.samaccountname) PreferredLanguage field is blank"

  • Setting Cell Borders

    I want to be able to set the borders of a cell in Numbers 09 individually. Having chosen one selection, say a left border and set it; if I then select the right border to set it the setting of the left border is removed which is most frustrating. Is there any way of overcoming this restriction. By the way this is one thing than Excel (I'll wash my mouth out out as soon as I've logged out!) does very easily.

    Jimay wrote:
    I think I've got it at last but it does seem back to front. I think that it would be much better if you could set the border properties (line width, line type and colour) and then select the cells and click on the borders which you want to have the set properties
    Goes directly against the grain of the usual grammar: Select, then perform action on the selection.
    Think of the Copy process:
    Select an object (or a block of text, then Copy.
    Select a location to place the copied object/text, then Paste.
    Regards,
    Barry

  • Why Excel insert cell block, hasn't input for data input?

    Hi
    I found a block for insert new row in excel, but there is no input for data input. how should I insert data by this block to excel file? can you help me?
    that block name: Excel insert cells
    in report generator toolkit
    Best Reagards

    behzad1 a écrit :
    I could work with  Excel insert cell block, but when I want add new data to an old row continuation, last row shift downward! while I want add data to old row. anyone can help me?
    Nobody will be able to identify the problem without seeing your code. Excel Insert Cells.vi is used to add cells to an existing spreadsheet, not to set the cell value. To do this is a more specific way than the Append Report Text.vi you can use Excel Easy Text.vi or Excel Insert Table.vi. With these vis you can specify the range where you want to insert something.
    For your other question (Two different data types) you can use the Excel Set Cell Format.vi to format a range as a date or something else. You will need to use the Excel format specifiers for this.
    Ben64

Maybe you are looking for

  • Burning issues with itunes and Windows Vista Ultimate

    I recently purchased a new computer with Windows Vista Ultimate 64 bit version. Since loading itunes on my new computer I can not burn a CD. The message that I receive says that there is no burner available. I know the burner works because I have bur

  • Photoshop Elements 11 won't open

    Just downloaded PSE11; can't get it to open. Desktop icon does nothing; starting it from the .exe file gets things going, but when it reaches the 'initializing' phase, up pops an error message: "Adobe Photoshop Elements 11 has stopped working. A prob

  • E-Mails Have Stopped and my daughter received a fr...

    We have recently been on holiday.  Whilst away my daughter received an e-mail from our e-mail address which basically told a sob story about mugging and theft and asked for money to get us all home.  Needless to say this was fraudulent. On returning

  • Format Chart Context (Fly Out) Menu

    Post Author: stevek CA Forum: General Hello all, In my deployed CR 8.5 application the "Format Chart" fly out menu does launch any subsequent dialogs. When I select a chart and right click and hover over "Format Chart" the fly out menu appears with "

  • Could not execute command "getVersion" on the node manager

    Hi all, I have 2 unix machine: A - Admin with BankServer1 and BankWeb1 - work fine B - remote machine I did pack and unpack , after that in Weblogic I go to Environment > Machines > my_remote_machine(B) > Monitoring Tab The error is: <Error> <NodeMan