Report using Binary file

Hi All , can anyone help me here ...
I used “Write to Binary” to  write my report , at first stage this file is writing headers , including column  headings . at 2nd writing stage it is writing  data in columns.  This file can be viewed in .doc or .xls format. I have three issues
1.         If I want to print this file from Front Panel  , what I should do?
2.         other thing is if I stop logging and then start for another span , it starts writing from the first line instead of from last line  , because of this problem it is causing over-writing .
3          another thing  , lets say if for 2nd or 3rd logging , I want to display sub-headings (test-1 , test-2) , how to insert , for example :
MAIN HEADING (COMPANY NAME , REPORT TITLE )
DATE , PRODUCT INFO , OPERATOR NAME
COL1              COL2              COL3              COL4
Subheading (test-1)
Value1             Value2             Value3             Valye4
Value1             Value2             Value3             Valye4
Value1             Value2             Value3             Valye4
Subheading (Test-2)
Value1             Value2             Value3             Valye4
Value1             Value2             Value3             Valye4
Value1             Value2             Value3             Valye4
Any help in this regard will be highly appreciated.
Regards
Faiyaz
Attachments:
report-writing-binaryfile.vi ‏68 KB
02-display-subVI.vi ‏12 KB

Hi Faiyaz,
1. How Do I Print a File Programmatically From LabVIEW?
2. Please the Programming >> File I/O >> Advanced File Functions >> Set File Position function on the block diagram after the Open/Create/Replace File function and set the from input to "end." This will append new data to the end of the file.
3. You can simply add that information to the Format into String you are writing to the second Write to Binary file.
Michael K.
| Michael K | Project Manager | LabVIEW R&D | National Instruments |

Similar Messages

  • Crystal Report using XML file

    Hi,
    I want to create dynamic crystal report using below mention xml file.
    Example:--
    <?xml version="1.0" encoding="utf-8"?>
    <root xmlns:inl="http://inline">
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://inline" xmlns="http://inline" elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xs:element name="Person">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="First_Name" type="xs:string"/>
    <xs:element name="Last_Name" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    <inl:Person>
    <inl:First_Name>Anna</inl:First_Name>
    <inl:Last_Name>Ant</inl:Last_Name>
    </inl:Person>
    <inl:Person>
    <inl:First_Name>Betty</inl:First_Name>
    <inl:Last_Name>Boop</inl:Last_Name>
    </inl:Person>
    </root>
    Crystal report column will be generated using this xml file.
    my report look like--
    First Name Last Name
    Anna Ant
    Betty Boop
    Thanks
    Praveen

    can you please be more detailed on what you mean automatically
    like put the xml file together and have the report generated without actually attaching the dataset to the rpt file and placing the fields in the report?
    if that is the case i dont believe crystal functions that way, been working with it for many years. i know you can create webi files through business objects where an end user can talk an dataset and build there own queries and rpt files on a dashboard type screen.

  • Javax.mail.internet.ParseException while busrting report using control file

    Hi everyone...
    I am trying to run a concurrent program that will burst emails using a control file.
    In the data definition i want to use few parameters whose values will be passed from concurrent program.In the data definition i am calling an after report trigger function which will fire the seeded email bursting program.
    My data definition file sample:
    ?xml version="1.0" encoding="UTF-8" ?>
    <dataTemplate name="dataTemplateName" description="Template description" defaultPackage="BIREPORTBURSTINGAK_PKG" version="1.0">
    <parameters>
    <parameter name="P_NAME" dataType="varchar"/>
    </parameters>
    <dataQuery>
    <sqlStatement name="Q1">
    <![CDATA[
    select
         emp_Id "EmployeeId"
         ,emp_Name "EmployeeName"
         ,emp_Dept "Department"
         ,emp_Org "Organization"
         ,emp_Email "Email"
         ,emp_salary "Salary"
         --,emp_Phone "Phone"
         from reportSample_AK
         where emp_name=:P_NAME
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataTrigger name="afterReportTrigger" source="BIREPORTBURSTINGAK_PKG.afterReportTrigger(:P_NAME)" />
    <dataStructure>
    <group name="G_EMPLOYEE" source="Q1">
    <element name = "EMPID" value="EmployeeId"/>
    <element name = "ENAME" value="EmployeeName"/>
    <element name = "DEPT" value="Department"/>
    <element name = "ORG" value="Organization"/>
    <element name = "EMAIL" value="Email"/>
    <element name = "SAL" value="Salary"/>
    --<element name = "PHONE" value="Phone"/>
    </group>
    </dataStructure>
    </dataTemplate>
    my control file:
    <xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi" type="bursting">
    <xapi:request select="/DATATEMPLATENAME/LIST_G_EMPLOYEE/G_EMPLOYEE">
    <xapi:delivery>
    <xapi:email id="123" server="agni.bangalore.bedford.local" port="25" from="[email protected]" reply-to="[email protected]">
    <xapi:message id="123" to="${EMAIL}" attachment="true" subject=" Dear: ${ENAME}">
    Please review the attachment .
    Regards,Anupama karote
    </xapi:message>
    </xapi:email>
    </xapi:delivery>
    <xapi:document output-type="pdf " delivery="123">
    <xapi:template type="rtf" location="/usr/tmp/TESTMAIL_AK.rtf" filter=".//LIST_G_EMPLOYEE">
    </xapi:template>
    </xapi:document>
    </xapi:request>
    </xapi:requestset>
    my package deatils:
    create or replace package BIREPORTBURSTINGAK_PKG
    As
    P_NAME varchar2(16);
    Function Afterreporttrigger(P_NAME varchar2) Return Boolean;
    end biReportBurstingAK_pkg;
    create or replace package body BIREPORTBURSTINGAK_PKG AS
    Function Afterreporttrigger(P_NAME varchar2) Return Boolean
    is
    v_request_id NUMBER;
    BEGIN
    v_request_id := fnd_request.submit_request('XDO'
    ,'XDOBURSTREP'
    ,NULL
    ,NULL
    ,FALSE
    ,'N'
    ,TO_CHAR(fnd_global.conc_request_id)
    ,'Yes'
    return true;
    End Afterreporttrigger;
    end biReportBurstingAK_pkg;
    i have created data definition and template and attched it to the concurrent program via bi publisher.
    While running the main concurrent program i am getting the following error:
    create or replace package BIREPORTBURSTINGAK_PKG
    As
    P_NAME varchar2(16);
    Function Afterreporttrigger(P_NAME varchar2) Return Boolean;
    end biReportBurstingAK_pkg;
    create or replace package body BIREPORTBURSTINGAK_PKG AS
    Function Afterreporttrigger(P_NAME varchar2) Return Boolean
    is
    v_request_id NUMBER;
    BEGIN
    v_request_id := fnd_request.submit_request('XDO'
    ,'XDOBURSTREP'
    ,NULL
    ,NULL
    ,FALSE
    ,'N'
    ,TO_CHAR(fnd_global.conc_request_id)
    ,'Yes'
    return true;
    End Afterreporttrigger;
    end biReportBurstingAK_pkg;
    Any help is greatly appreciated.
    Regards,

    Am also facing the same issue. Did anyone find a resolution for this problem?
    Regards
    Anoop

  • Creating a report using ttx file format

    <font size="2"><p>Hello All </p><p>I have downloaded the professional version of the Crystal Reports for Eclipse. I wanted to know if a report template can be created using a ttx file format and passing recordsets at run time to the reports. If an example can be provided it will be great. </p><p>I tried to look for the ttx file format in crystal but could not locate the same. Is it available with the professional edition..</p><p>Any help is highly appreciated.</p><p>thanks </p></font>

    Hi,
    In CR4E you can mimic the TTX design process using a Java class file and our POJO implementation. Essentially you can make an empty class with a number of publicly defined variables. For example if I created a new class as such:
    public classTTX_POJO {
    Â Â
    public int customer_id;
          <font color="#660000">public </font>String customer_name;
    Now, I can use this class to design a Crystal Report. In the report designer you will see a new table (in this cased called TTX_POJO) with 2 Fields (int and String). This will serve the same purpose as a TTX which is to get the meta-data into the report.
    Now at runtime, I can pass in a Resultset which returns the same meta-data, as in the following SQL query:
    *"SELECT CUSTOMER_ID,CUSTOMER_NAME FROM APP.CUSTOMER WHERE COUNTRY = 'Australia'" *
    Anyway, if you need more information on creating reports off of POJOs you can watch the following video tutorial:
    *http://diamond.businessobjects.com/node/426*
    Regards,
    Sean Johnson (CR4E Product Manager)
    Rate this plugin @ Eclipse Plugin Central          </p>

  • Calling report using Mapping File with user parameters

    Please provide an example of Key mapping file that provides user parameters to an Oracle Reports report, where paramform=no.
    I call an Oracle Reports report via APEX, and can't get the URL to work. If I don't use the mapping file, the call works. But I can't seem to get it to work using the mapping file to hide all the other params like userid etc.

    Please provide an example of Key mapping file that provides user parameters to an Oracle Reports report, where paramform=no.
    I call an Oracle Reports report via APEX, and can't get the URL to work. If I don't use the mapping file, the call works. But I can't seem to get it to work using the mapping file to hide all the other params like userid etc.

  • How to create reports using excel files In OBIEE

    I have data in only one excel file,how to create reports in OBIEE..I need to Prompt aslo in this report .
    I have requirements prompt also , Prompt name :Year, Month ,Day , how to create reports
    Thanks

    Hi,
    Create similar kind of joins which you make after importing physical tables from db.
    There is no difference in making joins in the excel. (both physical and BMM layers).
    But always remember there are many limitations for having excel as database.
    Also refer
    http://obiee-blog.info/bugs-and-issues/obiee-not-supporting-excel/
    Regards,
    MuRam

  • Fast processing of mixed representation binary files

    Hi Everyone,
    I see multiple ways of tackling this but I'm looking for the fastest approach as my data set is very large....
    The issue:
    I have a binary data file holding 2D data.
    It encodes 200+ differnet "columns" that are repeated in time (sampled)
    The data contains mixed data representaitons: a mxiture of  U8, I8, U16, I16 etc.
    They are all regullarly repeated in a known file structure (660 bytes per "line")
    I'd like to gnereate the 200+ differnet 1-D arrays form the file each using the correct data representaiton (or a sub-set of the columns).
    I can load the file in using binary file read and I specify U8 as the data type . I can then rediension to the correct 2D array.
    I'm now stuck on the fastest method to process the columns of data (1-2 bytes wide) into the corect numeric representaiton 1-D arrays (2x U8 to i16 etc.).
    Scanning byte by byte would be very slow.
    any suggesitons?
    Solved!
    Go to Solution.

    Taking wrote:
    Your sequence structures are unnecessary.
    I'd bet on Join Number being faster than any string functions.
    What sort of mechanism are you going to use for column definitions?
    Do you care if 8 bit datatypes get upcast to 16 bit?
    Agreed, the sequence structures only present to aid illustration.
    I'm not sure flatten to string is a "true" (slow) string function. I'm viewing it more as a container of bytes. I'm going to run some speed tests. The array massaging that has to go on to use the join function may be a large overhead.
    Column definitions will be sourced from a secondary text file that describes the file structure. The example conversion of 2 x  u8 to i16 would be replaced by a for loop (over all columns of 1-N bytes) and case structure (representation of the column) that processes the data. Ultimately each 1D array of correctly converted data will be saved off to it's own binary data file in a appropriate numeric representation within the case statement.
    Next I will be looking what for loop paralization I can achieve vs. source array memory copies. (again it is a very big source data file).

  • Code coverage using command line always produces a binary file nearly full of zeros, not workable by Visual

    I'm using Professional Edition 2013. I try to generate a coverage report for a C project, using the command line interface.
    In Visual, configuration of the Linker : Configuration Properties -> Linker -> Advanced -> Profile.
    Then:
    vsinstr.exe my.exe /COVERAGE
    I've got messages from Visual that the instrumentation went well.
    VSPerfCmd.exe /START:COVERAGE /OUTPUT:my.coverage
    my.exe
    VSPerfCmd.exe /SHUTDOWN
    The my.coverage file is created. But it's a binary file, more or less full of zeros. Dropping it into Visual just opens it as a binary file. Full stop.
    I've tried the same commands on very different .exe files and it seems like the my.coverage file has always the same content.
    What am I doing wrong ?
    Thx

    Hi Fred35,
    If you test it with other language project, how about the result? For example, a console app or winform app.
    Reference:
    http://www.codeproject.com/Articles/590346/CodeplusCoverageplusforplusRegressionplusTestsplus
    Based on your description, I think the steps have no issue like this blog here:
    http://blogs.msdn.com/b/cellfish/archive/2008/11/16/native-c-code-coverage-reports-using-visual-studio-2008-team-system.aspx
    So I'm afraid that we would think about others. Maybe it is the dependent dll file issue.
    http://stackoverflow.com/questions/17867591/code-coverage-in-visual-studio-2010-for-native-c-exe-dll
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Help needed  while exporting crystal reports to HTML file format using java

    Help needed  while exporting crystal reports to HTML file format using java api(not using crystalviewer).i want to download the
    html file of the report
    thanks

    the ReportExportFormat class does not have HTML format, it has got to be XML. Export to HTML is available from CR Designer only.
    Edited by: Aasavari Bhave on Jan 24, 2012 11:37 AM

  • Read an avi file using "Read from binary file" vi

    My question is how to read an avi file using "Read from binary file" vi .
    My objective is to create a series of small avi files by using IMAQ AVI write frame with mpeg-4 codec of 2 second long (so 40 frames in each file with 20 fps ) and then send them one by one so as to create a stream of video. The image are grabbed from USB camera. If I read those frames using IMAQ AVI read frame then compression advantage would be lost so I want to read the whole file itself.
    I read the avi file using "Read from binary file" with unsigned 8 bit data format and then sent to remote end and save it and then display it, however it didnt work. I later found that if I read an image file using "Read from binary file" with unsigned 8 bit data format and save it in local computer itself , the format would be changed and it would be unrecognizable. Am I doing wrong by reading the file in unsined 8 bit integer format or should I have used any other data types.
    I am using Labview 8.5 and Labview vision development module and vision acquisition module 8.5
    Your help would be highly appreciated.
    Thank you.
    Solved!
    Go to Solution.
    Attachments:
    read avi file in other data format.JPG ‏26 KB

    Hello,
    Check out the (full) help message for "write to binary file"
    The "prepend array or string size" input defaults to true, so in your example the data written to the file will have array size information added at the beginning and your output file will be (four bytes) longer than your input file. Wire a False constant to "prepend array or string size" to prevent this happening.
    Rod.
    Message Edited by Rod on 10-14-2008 02:43 PM

  • Use css file in oracle 10g report builder

    hi every one
    i am using oracle 10g report buidler. i want control paramform by usign css file.
    any body have idea how can i use css file in oracle report builder 10g and how can i modify it's path and i how can i manage any css class on a perticular field.

    Thanks Billy.
    Yes you are right.
    Here why I discarded that option is,
    I may get the source files with changing layouts.
    My Actual scenario is as follows.
    Initially we developped all the things using PL/SQL packages. Its working fine.
    But as per the inputs we received from requirements group, the file structure changes dynamically. and we would able to consider those new columns also. We should be able to changes the rules dynamically.
    Lets say, we doing fullouter join on Src_A and Src_B. on columns col1_A and col1_B.
    Now the requirement changes in a way that, the join should be done on Src_A and Src_C. on columns col1_A and col_C.
    For this I need to define a new package.
    Instead of that, I would like to do everything dynamically based on configuration parameters given as input.
    Thank you,
    Regards,
    Gowtham Sen

  • CR 2010 Report using "File System Data" as source fails in production

    Hello, I've recently upgraded my website from VS 2008 with full CR 2008 to VS 2010 using CR 2010 SP1 runtime (x32).  Everything went fine except for one report that uses as a source the "file system data".  It points to a share on a samba drive and it worked great before the upgrade.  After upgrading my development box the report runs fine, but when I deployed it, it fails with the message:
    Failed to load database information. Error in File {report name} {D5D84E7F-54DB-4BCA-B3C3-0A169CDC36D7}.rpt: Failed to load database information.
    I made sure the websiteu2019s Application Pool identity was set to use credentials of a user who has access to the share. 
    The data source has the following properties:
    Database DLL:   crbd_filesystem.dll
    File Mask: .
    Include Empty Directories: False
    Max Number of Subdirectory Levels: -1
    Starting Directory:
    {FreeBSD server name}\{share name}
    This report uses a sub-report which has the same source.  This report works fine from (full) CR 2008 and from the designer inside of VS 2010 works too.  I can run it on my development box (in release and debug modes) which is Windows 7 (x64) using IIS 7. 
    In production, we donu2019t include the runtime in our application deployment, since we run multiple sites and do updates frequently, so we pre-install (one time) the runtime separately on the server.  We installed the CR 2010 SP1 x32 runtime on our test and development boxes which both are Windows 2003 with IIS6 and made sure they are setup to use .Net 4 and have the Application Pool identity setup to have access to the share.  All my other reports which use ODBC work fine.  Just this one report doesnu2019t and Iu2019m at a loss on how to even begin troubleshooting this.
    Is CR 2010 still capable of using u201Cfile system datau201D as a source?  I couldnu2019t find anything on u201Cfile system datau201D with CR 2010.  Though I have seen under Other Sources, it still exist when I created a new report, just to try it out.

    Looks like you've found a bug with the CRVS2010 runtime. I looked for the crbd_filesystem.dll in the CRVS2010 install directory (C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86) and it is there. I then opened up the 32 bit MSI and MSM with the MS Orca utility to see if the file is included and it is not.
    Two things we can do:
    1) Add the crdb_filesystem.dll to your install and make sure it installs to the above directory on the runtime computer
    2) I will created a fix request for the issue, however next fix will be Service Pack 2 (ETA, sometime after October) and I doubt this will make it there. So we'd be looking at SP 3 - if there will be one (ETA would be in 2012).
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • I have written a binary file with a specific header format in LABVIEW 8.6 and tried to Read the same Data File, Using LABVIEW 7.1.Here i Found some difficulty.Is there any way to Read the Data File(of LABVIEW 8.6), Using LABVIEW 7.1?

    I have written a binary file with a specific header format in LABVIEW 8.6 and tried  to Read the same Data File, Using LABVIEW 7.1.Here i Found some difficulty.Is there any way to Read the Data File(of LABVIEW 8.6), Using LABVIEW 7.1?

    I can think of two possible stumbling blocks:
    What are your 8.6 options for "byte order" and "prepend array or string size"?
    Overall, many file IO functions have changed with LabVIEW 8.0, so there might not be an exact 1:1 code conversion. You might need to make some modifications. For example, in 7.1, you should use "write file", the "binary file VIs" are special purpose (I16 or SGL). What is your data type?
    LabVIEW Champion . Do more with less code and in less time .

  • How to read a binary file written in LabVIEW 6.1 using VB ?

    How to read a file saved in binay forrmat in LabVIEW 6.1 platform through VB.
    Is there any code ?
    Thanks

    Hello,
    LabVIEW files stored in binary can take on just about any format that
    you choose, so there will not be a single piece of code that will give
    you what you are looking for.  You can use VB's standard file
    operation functions to read in a binary file created by LabVIEW, just
    as you would read in any other binary file.  See this page
    on Microsoft's web site for more information on the binary file read
    operation.  How you stored the data in the binary file will
    determine how you need to extract it from the byte array.  So, if
    the first element stored in the file was a 32-bit integer, you could
    extract an int from the byte stream to recover that piece of your
    data.  You would need to know in advance how the file was
    formatted in order to successfully retrieve the information.  If
    you need a reference for the VB functions, the microsoft link above
    will get you to some good information.
    Cheers,
    Matt Pollock
    National Instruments

  • BINARY FILE loading using ODI

    Hi ,
    is it possible to load a binary file using  ODI ?
    Basically i'm looking for file to table and file to file conversion .
    Regards.

    DBMS_LOB.LOADBLOBFROMFILE (
      dest_lob IN OUT NOCOPY BLOB,
      src_bfile IN BFILE,
      amount IN INTEGER,
      dest_offset IN OUT INTEGER,
      src_offset IN OUT INTEGER);
    you can specify the src. Also, you can ftp the file using ODI sftp tool and then load.
    There are other ways to load as well,
    1. Sql loader aslo supports loading BLOBs. Odi has got IKM Sql loader however I have never tried with BLOB and need to check if it supports. The below link might be helpful,
         ORACLE-BASE - Loading LOB Data Using SQL*Loader
    2. External tables could be used.
    3. Java program could be called in ODI proc.

Maybe you are looking for

  • Warning message in VT01 or 02n Shipment completion

    II am trying to create a warning message when Pressing the Shipment completion button in VT01 or 02n Transaction. Standard Activity profile does not have any area to enter a custom Formula or Routine that will help the developer to enter the logic. A

  • Backup restoring

    HI, I am looking for help, I restored my phone to factory settings, as I wanted to restore the data from my imac. My problem is that when I try to restore th latest backup, it requests a password, I am assuming the password is the one that goes with

  • Could not complete the Crop command because of a program error - Win 7

    So I use PS CC everyday for cropping out images from design mockups for websites. Yesterday (1 April 2014) I got a new comp from the designer with some updated images. So I opend the comp, and began to setup the cropped area with my guides. I then gr

  • Compatibility ssd sata III and macbook pro 13 december 2009

    Hello I have a macbook pro 13 that I bouhgt in December 2009 i wanted to know what SSD is compatible, is sata III ok?

  • Magic mouse problems

    Magic Mouse will not zoom even when set to zoom in system preference