Conteneur ActiveX Excel sous vista

Bonjour,
Sous XP il est possible d'intégrer dans un conteneur Active X une feuille excel 2003. Malheureusement il semble que sous VISTA avec Excel 2007 il y ai eu quelques changements. Est ce que quelqu'un connaitrait le nom de l'ActiveX qui a remplacé le "Microsoft Office Spreadsheet".
Merci 
Sebastien DEVISSCHER - Nerys

Bonjour,
Merci d'avoir posté sur les forums NI.
Si je comprends votre problème, vous souhaitez visualiser une feuille de calcul sur une FA.
Pour ça, vous pouvez utiliser non pas un conteneur ActiveX, mais des Refnum d'Automation et afficher sous forme d'une simple table.
L'exemple joint ouvre un fichier excel correctement, même 2007. Par contre n'ayant pas accès tout de suite à un PC avec Vista/Seven, je n'ai pas pu tester la compatibilité avec l'OS.
Cordialement,
Eric M. - Application Engineering Specialist
Certified LabVIEW Architect
Certified LabWindows™/CVI Developer
Pièces jointes :
Read_Excel.vi ‏24 KB

Similar Messages

  • Inserer feuille Excel dans FA Labview sous Vista et Seven

    Bonjour,
    je cherche à inserer dans une face avant une feuille Excel (eventuellement Open Office) sous Vista ou Seven. Je n'ai pas besoin des fonctionnalitées de macros ou de formules, juste de la facilité de saisie d'un tableau Excel (insertion supression de colonnes et lignes, redimensionnement facile).
    Sous XP il y avait moyen d'utiliser un browser web dans un container mais cette fonctionnalitée ne semble plus gérée. Existerait t'il une autre solution?
    Merci d'avance pour vos réponses
    Sebastien DEVISSCHER - Nerys

    Bonjour,
                        Office Web Components (OWC) est un groupe de composants OLE ( permet d'intégrer et de relier à des documents ) mis en œuvre comme les contrôles ActiveX dans Microsoft Office 2000, Office XP et Office 2003. Ces contrôles ActiveX peuvent être utilisés sur des pages Web, Visual Basic et VBA formes. L'OWC peut être utilisé par n'importe quel langage compatible COM. Des applications comme Excel, Access et FrontPage ont permis la création de pages Web interactives utilisant Microsoft Office Web Components.
                      Les Office Web Components ont été abandonnées dans Office 2007, et ne sont pas inclus, sauf une partie dans Microsoft Office Project Server 2007. Microsoft n'a pas encore offert un remplacement complet pour Office Web Components.
    Si vous souhaitez continuer d’utiliser cette méthode, il va falloir chercher du coté de Microsoft.
    Cf
    http://support.microsoft.com/kb/972129/fr
                 Les technologies Microsoft Office ne permettent pas directement d’utiliser en control ActiveX le tableur. Cependant, vous pouvez vous tourner du coté des contrôles Active X pour vous rapprocher le plus possible de votre besoin. Si vous le possédez, le report generation toolkit peut vous êtres utile (vous avez accès au diagramme en double cliquant dessus donc n’hésiter pas a comprendre comment les ActiveX sont utilisés).
    Une autre solution qui peut vous être utile est d’ouvrir une fenêtre Excel dans une nouvelle fenêtre LabVIEW. Pour cela il faut utiliser la librairie User32.ddl.
    Voici quelque lien pour vous aider :.
    Use user32.dll and shell32.dll to Open, Edit, Print, Explore, and Find Files Based on Windows Defaul...
    Find the Handle of an Open Window and Bring to Front
    En vous inspirant spécialement de ceux-ci :
    Bring Excel 2010 Window to Front Programmatically
    Programmatically Copy and Paste Data in Excel
    Si vous voulez que la fenêtre Excel s’ouvre dans une nouvelle fenêtre LabVIEW utiliser les fonctions suivante :
    FindWindowsA
    SetParent (utiliser la fonction SetParent permet de configurer la fenêtre parent d'une fenêtre pop-up).
    FindWindowsExA
    SetParent 0 (fermer la fenêtre).
    Pour les utilisateurs utilisant windows XP et office 2007 voila les liens qui expliquent comment afficher un tableur Excel sur la face avant :
    Using the Microsoft Web Browser Control to Embed an Excel Spreadsheet in LabVIEW
    How to Import the excel sheet with its property
    Labview 2010 activex container Excel 2007
    Unable to find spreadsheet otion in ActiveX Control
    Cordialement
    Samuel G. | Application Engineer Team Leader
    Certified LabVIEW Developer
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    Été de LabVIEW 2014
    12 présentations en ligne, du 30 juin au 18 juillet

  • Propriete text activeX excel

    Bonjour, j'utilise les fonctions activeX d'excel sous LABVIEW et je voudrai savoir comment lire une plage de donnée avec la propriété TEXT. Avec la proriété value, cela ne pose pas de soucis, il suffit de déclarer un tableau 2D sur le variant mais cela ne fonctionne pas pour la fonction text. Merci de votre aide.
    J'utiise une version 6.1

    Bonjour,
    Je ne peux que te conseiller d'aller voir dans l'aide d'Excel ou sur le site de Microsoft afin d'obtenir plus d'aide sur cette propriété. Excel possède de nombreuses propriétés et méthodes et nous ne les connaissons pas toutes chez National Instruments, en revanche si tu as des questions sur l'utilisation des fonction ActiveX de LabVIEW, pas de soucis, on pourra t'aider.
    Cordialement,
    ClémentG

  • Using vlookup btwn worksheets when using ActiveX Excel

    I am having problems using the vlookup function in Excel.  It works fine if I have the lookup table on the same worksheet that's already open in LabVIEW.  I first open an excel file that I use as a template.  I copy the header and formula information from that file into an activeX container containing an Excel worksheet.  I then allow the analyst to enter data into the ActiveX Excel spreadsheet.  Meanwhile, I create a log template by creating a text file with headers.  When the analyst is done entering data on the front panel, they click on the Update/Print Label button.  This appends their data (a range of cells) to the text file (which is then formatted and saved using report generation tools) and it's printed to a label.  The problem is on the front panel ActiveX Excel sheet.  The original excel sheet used as a template has many formulas, all of which work well in Excel, as well as in the LabVIEW app, with one notable exception.  One of the cells contains a formula that uses a vlookup function.    The problem is when I place that lookup table on a different worksheet.  It works great if I place the lookup table on the same sheet as the template, but when I try to reference a different sheet, I get an error.  I'm assuming that I just need to add code to open the second Excel spreadsheet (or better yet - a separate workBOOK).  I was confused at first, because the vlookup function worked fine in Excel, but not in LabVIEW.  Then I realized that Excel already had all the worksheets in the workbook open, but LabVIEW does not.  Am I correct?  If I want to use a vlookup to look on another worksheet or another workbook, do I just have to open that second workbook/sheet in LabVIEW?

    Hi Dan,
    You are right.  LabVIEW does not have the other worksheets open.  I think that you are on the right track.  I recommend opening another worksheet and testing it out.  LabVIEW should stop giving you an error when you do.
    Nick Keel
    Applications Engineering
    National Instruments 
    Nick Keel
    Product Manager - NI VeriStand and Model Interface Toolkit
    National Instruments

  • Sous vista je ne peux pas installer le logiciel adobe downloader messCette application ne peut pas être installée car le programme d'installation n'a pas été configuré correctement. Veuillez contacter l'éditeur de l'application pour obtenir de l'aide ?

    Sous Vista je ne peux pas installer le logiciel Adobe Downloader , mon but est de télécharger premier élément 13 Le message d'erreru est :"Cette application ne peut pas être installée car le programme d'installation n'a pas été configuré correctement. Veuillez contacter l'éditeur de l'application pour obtenir de l'aide"?

    nanette01
    Premiere Elements 13 does not support Windows XP, Windows Vista, and Mac OSX 10.7.
    I have tried to push the Adobe ReadMe directive, using Windows XP as my test case. I could download
    Premiere Elements 13 tryout from Adobe to my Windows XP SP3 32 bit computer, but I could not install it.
    Please review and consider. Do you have Windows 7, 8, or 8.1 64 bit computer available to you for Premiere Elements 13?
    ATR

  • ITUNES A CESSE DE FONCTIONNER SOUS VISTA

    Bonjour,
    Nous avons un pc portable qui tourne sous vista. Nous synchronisons nos deux iphone sur le meme pc, j'ai donc créé 2 cessions d'utilisateur. Pour moi aucun probleme, mon iphone 4 se synchronise. Pour ma femme qui a aussi un iphone 4 c'est plus compliqué, Itunes plante à chaque fois de manière aléatoire pendant la synchronisation en indiquant "itunes a cessé de fonctionner" windows me propose alors de fermer. J'ai désinstallé puis ré installé itunes mais rien n'y fait. Merci pour votre aide.

    Bonjour,
    J'ai exactement le même souci .
    Exception sur sur matériel. Je possède un Iphone 3GS et mon pc tourne sous un Windows XP Pro.
    Idem rien y fait, même la manipulation indiquant de "retirer l'autorisation d'accès de cet ordinateur".
    Merci pour vos réponses.
    Cordialement.

  • Equivelent Solver Excel sous LabView 2009

    Bonjour,
    Je souhaite reproduire le comportement du Solver Excel sous LabView 2009 ?
    Mon objectif est de tracer un Fit Super Gaussien d'odre N avec 4 paramétres à optimiser et un à minimiser.
    Merci d'avance pour vos retour.
    Cordialement
    Jean,

    Bonojur,
    J'ai fait plusieurs recherches sur les différents outils disponible dans la palette mathematics=>fitting mais cependant je ne trouve pas de fonction permettant de gérer 4 paramètres à contraindre avec un fit  d'ordre >2..
    La fonction qui me semble s'appocher le plus de mon besoin est:"Nonlinear_Curve_Fit.vi" cependant j'ai plusieurs erreur liée au paramètre d'entrée.
    Ci-joint un exemple de ma test.
    Cordialement
    Pièces jointes :
    TU_Piste_3_Nonlinear_Curve_Fit.zip ‏107 KB

  • ActiveX Excel Prevent Open File While Writting

    I'm having some of the same problems with Excel and ActiveX found here:
    http://forums.ni.com/ni/board/message?board.id=170​&message.id=254019&view=by_date_ascending&page=1
    The last post from the above link gives an acceptable workaround (not ideal, but hey, what can you do?) to preventing the user from closing Excel when files are being written to with ActiveX through LabVIEW (since a user can open an Excel file while LV is writting to Excel files with ActiveX and all the files will share the same Excel application, instead of Excel opening a seperate application like one would hope).
    My question for this post: In the previous post Ben had a problem with the user opening a different Excel file than those being written to. My VI opens an exisiting Excel file (test.xls) and writes to it. If the user opens test.xls while LV is still writting test.xls, it will throw an error. Note that the error is not thrown if test.xls is open before the VI starts writting to it, only if the user opens it while its being written to by LV.
    Any ideas on how to lock the file so the user can't open it while it is being used by LV?
    Michael

    Thanks thols. Thats a great solution, I actually had tried it but gave it up since the user could close out of "their" Excel (closing the reference), then open a new spreadsheet which would open in "my" Excel (if done while my subVI was still writing to Excel). At the time, this was a possible scenario for my program, and since I was writing so slowly had happened. I just sped up the writing of the Excel file (I had all the data to write, but was writing with "Set Cell Value.vi", which wrote one cell at a time; instead I wrote whole ranges of data). If Excel was already open, I would set interactive to false and have my spreadsheet minimized while writing to it. If Excel wasn't open, I would just make it invisible. Since I cut the time down to about a second, this worked for my application.
    Michael

  • Activex Excel Automation: the Missing Handle

    Once upon a time there was a piece of legacy code, working well.  It would open Excel workbooks, add data, and make it look nice.
    Then one fateful day, the old code creaked and groaned, and it doesn't work the same way it used to when it was fresher and younger.
    Now when the code runs, an excel 2007 reference is not closed somewhere, causing the excel.exe process to remain open after the code has finished execution.
    With great care, I have extracted all the extraneous code from the process, so that only a few base functions remain; yet the problem persists!  For your convenience, I have flattened it all onto the same vi pane (the old code is rather modular)!  Apologies for any extraneous wire bends =)
    My questions are threefold:
    What changed that caused this code to stop working? 
    Is there a better way to find and close activex references than staring intently at the wires?
    Is there, dear reader, perhaps a blatent error in the old code?
    Attachments:
    Fun with references.png ‏59 KB

    I"ve moved all the CR's to the end of the VI.  The problem persists.  Look at the examples? Are you toying with me?
    Attachments:
    test.vi ‏16 KB

  • SmartView disables the "Save As" Function in MS Excel 2007 / Vista

    Does anyone know how to get around this issue? I have Vista and Office 2007. When SmartView is installed, it does not allow me to use the "Save As" Function in Excel. SmartView has now rendered my Excel to be useless. Thank you Oracle.
    Does anyone have any thoughts?
    Thanks,

    Hi,
    Could this be related to this thread:
    Smartview Office Error (Unable to Save)
    Seb

  • Impossible d'ouvrir des fichiers excel sous Numbers 09

    Bonjour, je viens d'installer Numbers 09 sur mon Imac sous OS 10.8.4. Impossible de lire un fichier excel, il plante tout de suite, suite à un souci SF Compatibility. Comment faire ? Merci.

    Totane,
    Try running Software Update to make sure you have the latest version of Numbers.
    Jerry

  • LIRE UN TABLEAU à 2 DIMENSIONS DEPUIS UN FICHIER EXCEL SOUS LABVIEW

    SVP, je suis débutante en labview
    et je cherche à importer des données (real et string) d'un tableau sous un fichier excel vers labview, je souhaite afficher ce tableau dans labview (le nombre des colonnes est 7 par contre le nombre des lignes est variable) et ensuite plus tard utiliser ces donnees
    svp aidez moi, donnez moi un exemple

    Si vous avez le Report Generation Toolkit, puis il ya des exemples disponibles via le finder par exempleLabVIEW. Il suffit de rechercher l'excellence.
    Sinon, voici quelques exemples sur la façon d'accéder et d'importer votre tableau Exceldans LabVIEW:https://decibel.ni.com/content/docs/DOC-12287 and http://zone.ni.com/devzone/cda/epd/p/id/3409
    (en utilisant Google Translate)

  • ActiveX- Excel- Adding top and bottom border

    Hi,
    I'm trying to add a border to a range of cells in excel by the mean of activeX. I need to add only the top border and the bottom one.
    I have tried using the selection property contained in Globals. I have also tried creating a style in the current excel Workbook but I do not know how to make it work.
    I can only create a border arround all the range using AroundBorder.
    Thanks by forehand
    Attachments:
    Open_New_WorkSheet.vi ‏44 KB
    Set_cell_border.vi ‏52 KB

    You do not need to use the style or the selection property to apply the borders to specific edges of the range. Just use the Item Method to specify which one you want to modify.
    Method Worksheet->Range
    Property Range->Borders
    Method Borders->Item(xlEdgeTop)
    Property Border->Weight = xlThin
    Attached is you VI modified as described.
    Michael Munroe
    Certified LabVIEW Developer
    www.abcdef.biz
    Michael Munroe, ABCDEF
    Certified LabVIEW Developer, MCP
    Find and fix bad VI Properties with Property Inspector
    Attachments:
    Set_cell_border_abcdef.vi ‏51 KB

  • ActiveX Excel Workbook Close won't save

    I am using ActiveX with Excel and trying to save and close a workbook, but not close the application.
    My question is two fold:
    First, I can't get a workbook to close when save is wired up to it and set as True. But, when save is set to False, the workbook closes fine (except it doesn't save obviously). I figured this could be related to the following sentence from MSDN
    If there are changes to the workbook and the workbook appears in other open windows, this argument is ignored.
    To verify this is not the case, I closed completely out of Excel and tried again. Still the same issue. 
    So, my next step was to try a workaround like using the saveas method, then I can close the workbook without saving after this (i.e. false constant wired up).
    From MSDN: xlLocalSessionChanges = 2       The local user's changes are always accepted.
    But, when I wire "2" to the conflict resolution variant for the saveas method, I still get a dialog popping up asking the user if it's ok to overwrite the file. 
    Has anyone run into this before? I have pasted useful links to MSDN below.
    http://msdn.microsoft.com/en-us/library/bb241584(v=office.12).aspx
    http://msdn.microsoft.com/en-us/library/microsoft.office.tools.excel.workbook.close(v=vs.80).aspx
    http://msdn.microsoft.com/en-us/library/microsoft.office.tools.excel.workbook.saveas(v=vs.80).aspx
    CLA, LabVIEW Versions 2010-2013
    Solved!
    Go to Solution.

    Workbook was corrupt. Solution was to recreate.
    CLA, LabVIEW Versions 2010-2013

  • C4580 will only print 2 inches of a page in Excel 2007, Vista 64-bit OS

    My C4580 will only print 2 inches of a pages, (the left 2 inches) from Excel & Microsoft works. I've tried updating driver and reinstalling.  It work fine for my other computer which has Windows XP.  Please help.

    Hey Glenn,
    I've encountered this at a client. It caused some issues in that the client was having an un-related problem. I chalked it up to an incompatibility since it was on the server and 64-bit so didn't really pay too much mind to it personally.
    Regards,
    John

Maybe you are looking for

  • BASIC PRICE OF SALE ORDER

    Hi All, I have a requirement , i have a report which shows all pending sale order, i want to display basic price of sale ordrer ,from which table would i get the basic price against sale order. Thanks & Regards Lalith

  • 2011 mac mini admin problem

    i have bought a mac mini 2011 and have all my passwords from previous  owner but after rebooting it ive lost all my permissions,my system preferences wont open ,it trys to but immediately shuts down,i cant sign in to my apple id or i tunes.i have a i

  • Create PDFs from Word mail merges

    This question was posted in response to the following article: http://help.adobe.com/en_US/acrobat/X/pro/using/WSA2131EF1-0620-46e0-9A0C-74F28724D97E.w.h tml

  • Impdp hangs at definig state

    Hi Gurus, I am trying to do full import for APPS R12.1.1 db 11202, but it hangs at defining state for more than 72 hrs, v$session_wait and v$session_longops show 100% done for worker. There is no error in alert log. Please help.

  • First page of PDF is blank

    PDF's that I create look fine in all readers except Adobe Reader for Android where the first page is blank. I can't figure out why though for the life of me. Anyone have an idea why something like this would occur?