CR XI R3:  Issue exporting shared variable to Excel - with workaround

Hi,
I have a report that uses a subreport to calculate a field based on the existance (or not) of data in a database other than the main report database.  When I use a shared variable to pass this field back to the main report and display it on a detail line (in the main report), it works fine - until I try to export the report to Excel.  When exported, the value that gets exported on all detail lines of the report is the final non-blank value of the shared variable, not the value that it contained when the detail line was initially generated.  I am using a shared variable because there are multiple values that I want to pass back to the main report. 
Luckily, only one of the shared variables are being printed, so the workaround that I am using is to use the subreport to print the field instead of passing the value back in a shared variable and displaying that (and hiding the subreport on a separate format).
Is this a known issue with R3 exporting to Excel?  (It was happening in R2 as well...)
HTH,
Carl

Simplified somewhat, what this report is doing is looking up open orders in one database and checking to see if something specific happened to it in another database.  If so, it generates the XML that needs to be applied to the first database to update it.  The XML references the order number and line number.  What I mean is that instead of the data coming out as
Order Line  XML Snippet
12345 1234 ...<order>12345</order><line>1234</line><status>received</status>...
22345 2234 ...<order>22345</order><line>2234</line><status>received</status>...
32345 3234 ...<order>32345</order><line>3234</line><status>received</status>...
42345 4234 ...<order>42345</order><line>4234</line><status>received</status>...
I get
Order Line  XML Snippet
12345 1234 ...<order>42345</order><line>4234</line><status>received</status>...
22345 2234 ...<order>42345</order><line>4234</line><status>received</status>...
32345 3234 ...<order>42345</order><line>4234</line><status>received</status>...
42345 4234 ...<order>42345</order><line>4234</line><status>received</status>...
I have Base Column Widths on Details, so there should be no merging attempted, but I'll check and make sure.
It seems to me, though, that the DLL is being told the wrong value to export...
Carl

Similar Messages

  • Vestigial fields when exporting shared variables

    Hello,
    Is this a bug? I have a network-published shared variable that used to have aliasing enabled. After I cleared the "Bind to:" field and disabled aliasing, I exported its library into CSV mode. However, it still contained the columns (among others):
    NetworkrojectBinding = TRUE
    NetworkrojectPath = <old variable that it was bound to>
    The extra columns messed up my CSV parser. The only way I could find to prevent their appearance was to delete all the variables that used to have project binding, and re-create them

    JKSH,
    I was able to reproduce the same issue here.  I'll look into this a little more and see if this may in fact be a bug.  
    James K.
    National Instruments
    Applications Engineer

  • Exporting Shared Variables to csv

    When I try and export SV information to csv, LV (2009, DSC) doesn't seem to recognize any variables that are located within virtual folders in the library. Does anyone know a work-around to get that data tabulated short of cycling through the whole library writing values from SharedVariableIO property nodes to file?
    Thanks,
    Kyle
    CLD using LV, DSC 8.5-2009, RT 8.5
    Ghoti!

    muks wrote:
    Have you seen this?
    Yep. That's the problem. The shared variable library I'm working with contains well over 1000 variables that are organized into a few dozen virtual folders within the library. When I use the Export Variables function you linked to, it doesn't "see" any variables in folders, only those in the library root.
    CLD using LV, DSC 8.5-2009, RT 8.5
    Ghoti!

  • Bug? Cannot export shared variable, if it's in a virtual folder within an .lvlib

    Hello,
    I was trying to keep my libary of shared variables organized by categorizing the variables into different virtual folders. However, it turns out that variables in virtual folders are excluded from exports, even though they (and their folders) are visible in the Multiple Variable Editor.
    Is this by design (in LabVIEW 2012)? If so, what's the rationale?
    Thanks!

    Hi,
    When there are variables inside nested virtual folders within a Library, the multiple variable editor does not work. If you select several variables in a virtual folder and right-click and select Multiple variable editor, the editor opens but you cannot change anything.
    Workaround: Convert folders to libraries or move variables under a single folder.
    Regards,

  • Exporting Shared Inbox to Excel

    Hello-
    I manage a team that has a shared inbox in Outlook 2010. We use the inbox to keep track of issues that are occurring in our regional offices. Right now, we manually type and log each issue into an excel sheet. I would like be able to export the
    shared inbox to excel. However, when I attempt to export the inbox to excel, I'm not able to select the shared inbox as an option. I'm able to export the inbox to a pst file, but then I can't open that file in excel. 
    Is there a way to export a shared inbox to excel? I can't seem to find an answer.
    Thanks. 

    However, when I attempt to export the inbox to excel, I'm not able to select the shared inbox as an option. I'm able to export the inbox to a pst file, but then I can't open that file in excel. 
    Is there a way to export a shared inbox to excel? I can't seem to find an answer.
    The Outlook import/export wizard doesn't support selection of Shared folders.
    All you need to do is
    - export the folder to a PST file as you've already indicated,
    - open the newly exported PST file in Outlook (File --> Open --> Outlook Data File
    - export the folder located in the PST file you just opened to Excel
    Karl Timmermans [Outlook MVP] "Outlook Contact Import/Export/Data Mgmt" http://www.contactgenie.com

  • Network-Shared Variable - read string with CVI

    I need to read an NSV string with CVI.  I have been digging into accessing and writing NSV with CVI, but they are all scalar value.  What should I do with strings, clusters and arrays?

    'm an employee at National Instruments and I wanted to make sure you didn't miss the Network Variable API that is provided with LabWindows/CVI, the National Instruments C development environment. The the Network Variable API will allow you to easily communicate with the LabVIEW program over Shared Variables (http://zone.ni.com/devzone/cda/tut/p/id/4679). While reading these links, note that a Network Variable and a Shared Variable are the same thing - the different names are unfortunate...
    The nice thing about the Network Variable API is that it allows easy interoperability with LabVIEW, it provides a strongly typed communication mechanism, and it provides a callback model for notification when the Network/Shared variable's properties (such as value) change.
    You can obtain this API by installing LabWindows/CVI, but it is not necessary to use the LabWindows/CVI environment. The header file is available at C:\Program Files\National Instruments\CVI2010\include\cvinetv.h, and the .lib file located at C:\Program Files\National Instruments\CVI2010\extlib\msvc\cvinetv.lib can be linked in with whatever C development tools you are using.
    Thomas N.
    Applications Engineer
    National Instruments

  • Exporting Crystal report into Excel with code

    I have written the following code to export crysal reports to excel. My problem is, when it exports number it adds the thousand seperator (,), but if I export the report from Crystal designer, it works fine. So I believe I am missing something in my code. Could some one help me with this? Any help is greatly appreciated.
           Dim xlApp As Microsoft.Office.Interop.Excel.Application
            Dim xlBook As Workbook
            Dim myReport1 As New ReportDocument
            Dim reportPath1 As String = ""
            reportPath1 = "C:\test\su.rpt"
            myReport1 = New ReportDocument
            myReport1.Load(reportPath1)
            Dim tmpExcelFile As String = ""
            tmpExcelFile = "C:\test\test.xls"
            myReport1.ExportToDisk(ExportFormatType.Excel, tmpExcelFile)

    Hi Don,
    Please provide
    - Crystal Reprots version
    - Visual Studio version
    - Win or web app?
    Try using 'ExportToStream' see if it reproduces the issue.
    [1198587 - How to export a report to stream in C Sharp (C#) for Visual Studio .NET |http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333133393338333533383337%7D.do]
    - Bhushan.

  • Export crystal report to excel with subreport

    I have a report with two subreport, and the question is when I export the main report to excel ( data only ) there is no data in the excel file, but when I just export the subreport to excel ( data only ), the excel file shows all data correctly. Does anybody know a solution can resolve this problem? Thanks.

    1. Add one more Report Footer by right clicking on the Report Footer and selecting insert section below
    2. Put Subreport 1 in the Report Footer a i.e. RFa
    3.Put Subreport 2 in the Report Footer b i.e. RFb
    4.Export the report to Excel Data Only.
    5. You should be able to see the data for both the subreports

  • Export Crystal Report to Excel with Grids

    Can anyone tell me how or if it's possible to include the grid lines when exporting from Crystal Reports (version 10) to Excel?   I am exporting as "data only" because I need to include field properties (color, bold, etc.).  Because of this, I don't see a "Show Gridlines" option on the export.   On the Crystal report, I have selected both single line and double line borders for each field on the report, but it's not transferring over to Excel.
    Thanks for any help you can provide.

    I did adjust the col. widths, but on larger col. headings, the text was chopped off.   I could get around this by making the field wider on the Crystal report.  With having so many cols., this was an issue.   And if the detail wasn't the same width as it's corresponding header, the report was not pretty.  
    This report was an evolution with me trying different things to get everything to fit in the designer until I finally discovered the Image Writer.   By exporting as Data Only, it doesn't matter how wide the heading/field is in the designer because the entire text exports.   Then I just select the entire worksheet and adjust the col. alignment so that everything shows.   I had to play around with things to get my colors and fonts to export - but the grids were the only remaining piece to the puzzle.  
    As it turns out, the users are happy with the end result without the grids.   They can add them manually if they so choose.
    Thanks

  • How to export an ALV to Excel with its Header and Logo?

    Hi guys,
    I need to download to excel an ALV to excel. I already know how to download the ALV part, with its propertys, fonts, colors, etc. But I don't have a clue about how to download the header and the logo.
    Any suggestion?.
    Regards,
    Eric

    Hi Eric,
    Please check this link for sample code regarding LOGO to Excel
    How to Download ALV Output LOGO to Excel ?
    For Header to Excel check this link
    Export header of alv-oo into excel
    Hope this would help you.
    Good luck
    Narin

  • Unspecified error when writing variant shared variable

    Hi everybody,
    I'm getting an unspecified error (-2147467259) when trying to write a variant to a shared variable hosted on my cRIO device.
    I'm using a cRIO chassis as a headless controller that dynamically finds remote ScanIO chassis at startup. Similar to the LabVIEW example, the cRIO finds the chassis and generates clusters containing the IO container refnums as well as other information about the modules. I generate two arrays (local and remote) of these clusters, turn them into a variant, and publish it as a network published shared variable so they can be used in a remote PC to add or remove remote channels as needed.
    Has anyone had this sort of issue before? I'm new to real-time so I'm not sure if I have violated some canon here or not Thank you for your help
    -Jordan

    Jnelson,
    There appear to be a few Corrective Action Requests (CARs) associated with using shared variables of the variant data type.  The closest one I could find related to your issue was CAR #291679 where Wiring FieldPoint IO Point into shared variable throws error -2147467259.  All CARs that I could find about using shared variables of the variant type threw the same error you are seeing and are feeding into it less standard datatypes (FieldPoint IO, LVClasses, IMAQ references).
    To get a more general overview of your problem, does this error come up the first time you try to write to this shared variable or does it come up somewhat randomly?  It would help if you could tell us exactly what hardware you are doing and if you can recreate this issue by simply deploying a program that writes a constant cluster with the same data types into that shared variable.
    A possible workaround for you to try would be using the Flatten to String and Unflatten from String functions and pass that through a string shared variable.  This has seemed to work for others in the past.
    Matt J
    Professional Googler and Kudo Addict
    National Instruments

  • Dynamic shared variable node

    Hello, i'd like something like a Shared Variable Node, but with ability to choose at runtime which variable to read/write, for example passing a variable name. Is it possible?
    I have the DSC module and it supports "Shared Variable Costant", which can be passed to a Property Node and allows to dinamically access a SV's properties, but apparently not its value and error status.
    I tried to retrieve the DataSocketURL property and pass it to "Datasocket Read"; it kinda works, but i'm not sure if it's equivalent to a SV Node... it's slower and error status is not easily detected. May it be the right way?

    Greetings and Merry Christmas,
    I guess I’m a little confused about your application. An idea for choosing a variable to read/write from your front panel would be with a state diagram. This could be placed in a stacked sequence to occur first. Is that what you are trying to accomplish? Would you please elaborate on your application as well as what you mean about “choosing a variable”
    For the Shared Variable Constant, I’m not sure why you would want to pass the value or error status when you could just deploy the shared variable?
    Let me know of any head way and good luck!
    Jordan Randall
    National Instruments Italy

  • Simple tcp messaging vs. shared variable

    I am getting ready to deploy a project which will have one HMI and three sbRIOs on a closed local network with static IP addresses. Of course these devices will need to comminucate certain information to each other in order to advance the process each is responsible for. I have used shared variables back in LabVIEW 7.1 but not since. As I remember it was pretty straight forward and simple to implement. The data I will be sending will either be boolean or string. I was recently introducted to simple TCP messaging and was curious, based on experience, what will be the best option for reliable communication. i know this is potentially a vague question, but thanks anyway.
    Doug Ferguson
    www.southerndaqsolutions.com

    Hi Doug,
    Shared variables where introduced with LV8.0 so I don't think you used them with 7.1
    If you need to pass big amounts of data and lots of different types I would suggest to use STM, which is btw very easy to implement and allready gives a good example on communicating between more cRIOs and a Host.
    The advantage of Shared Variables is that they are very easy to implement, but for large data TCP/IP and so STM has a better performance.
    Christian

  • Hyperion IR 11 -Export to Excel with formatting

    Hi,
    we have problem in exporting pivot sections to excel with the format intact.
    Is there really an option in Hyperion IR 11, to use this as such?
    I have a script that creates excel, by creating a MHTML And converting it to excel.
    But I need to know other options as well.
    Thanks in advance.

    Hi~
    I get the same question.
    I export pivot sections to excel with the format intact, but it did not work.
    When export pivot sections to excel can not with the format intact
    My script below:
    ActiveDocument.Sections["sectionname"].Export('C:\\test.xls',bqExportFormatOfficeMHTML,true,true);
    What is it wrong? Thanks~

  • Exporting Asset Informations to Excel

    Hello,
    transaction : S_ALR_87011963 (Asset balances)
    User want to export asset information on excel with the icone "Microsoft Excel" (Ctrl + F7), but when the user click on the excel file icon he has a report concerning programs.
    I know that there is another way to export to excel (List -> export ...), but i want to understand why it doesn't work for that user ?
    Thank you in advance for your help
    Ferdaws

    Hi Ferdaws,
    Have a look at following SAP note:
                                                                                    696069  No data when view Excel Inplace on ALV with Office 2003/XP.
    Please ensure that security settings/options for Visual Basic project      
    and Macros are set according to note 696069 attached.            
    696069    No data when view Excel Inplace on ALV with Office         
    Othere notes that may provide some helpful information in addition:
    635011     ALV: Excel inplace - large datasets                        
    567053     ALV view: Message 0K 413 for ALV print and backgrou        
    552915     Empty worksheet when using Office XP in ALV                
    550563     ALV View: Inc. message 0K 407 with missing authorization                                                                               
    548409     ALV view: Consulting note on Excel Inplace/Template        
    534624     ALV view: Consulting                                                                               
    I hope this helps.                                                                               
    Kind regards,
    Brigitte

Maybe you are looking for