Crystal and Delimited text data

Need to import delimited text data into Crystal Reports 2008. What is the best method?

David,
Use MS Access instead. 
If it's something you do on a regular basis, add the .txt file as a "Linked Table". That way, when you get a new file, you can simply overwrite the old file with the new.  Because the new .txt file has the same name and location as the one it replaced Access will never know that anything has changed and will simply provide the new data.
Access is a MUCH better product than Excel for this type of operation.
Jason

Similar Messages

  • PLEASE HELP!!!  Problem with Java and SQLServer Text data type

    Hi there,
    I have a java app. that reads from an MS SQLServer database. Originally, all long text fields were declared as NVARCHAR(200). The program worked fine.
    Someone then advised that I change all long text fields to the TEXT data type. The program now crashes out with the following Exception:
    "java.sql.SQLException: [JRun][SQLServer JDBC Driver]This ResultSet can not re-read row data for column 25."
    Basically, I have a method that retrieves a resulset and iterates through it. The resultset is passed to another method during each iteration. In the example below, the 'specialNote' field used to be NVARCHAR(200). The code worked fine. Then when it was changed to TEXT, the program no longer works with the above Exception thrown.
    Anyone know any special way SQLServer TEXT data types need to be handled?
    Thanks for any advice!
    The code looks something like this in functionality:
    <CODE>
    public void method1 (Connection conn)
    Resultset rs = conn.createStatement().executeQuery("SELECT * FROM ProductBB");
    while (rs.next())
    method2(rs);
    public void method2 (ResultSet rs)
    String str = rs.getString("specialNote");
    </CODE>

    Hi JWoods,
    Thanks for the suggestion. I originally had the code do what you suggested, ie, get the resultset then retrieve the data all within the same method. The data is then used to set properties in an object.
    When I had to create another method that also retrieved a resultset but using a different primary key, then also use the returned data to set the properties in the same type of object, I didn't want to repeat the setter code. That's why I decided to pass the resultsets to the same method that did the property setting.
    Unfortunately, it stopped working with the data type change.
    Any other thoughts?

  • Importing '|' delimited text data in a db

    Hi
    I am a new newbie to the Oracle world, and would like some help on the following;
    I have a 1,2Mb text file of data that I was to import into an oracle database. basically
    what I need, is a block that does this.
    Lets say there are 5 columns in the text file
    separated by |'s containing both alpha-num and number chars.
    Anyone ??
    Thanks
    null

    Dear Mike,
    What you need to do is use an Oracle utility called SQL*Loader that comes with the database software.
    Let us assume that your text data is stored in a file called 'C:\TEXTFILE.DAT' and the data from this file is to be stored in a table called NEW_TABLE which is defined as follows:
    create table NEW_TABLE
    FIELD1 NUMBER(10),
    FIELD2 VARCHAR2(10),
    FIELD3 VARCHAR2(50),
    FIELD4 VARCHAR2(30),
    FIELD5 NUMBER(10)
    Now you have to create the following SQL*Loader control file called, say TEXTFILE.CTL and place it in the "C" drive:
    load data
    INFILE 'c:\textfile.dat'
    BADFILE 'c:\textfile.bad'
    DISCARDFILE 'c:\textfile.dsc'
    INSERT
    into table NEW_TABLE
    fields terminated by '|'
    (FIELD1, FIELD2, FIELD3, FIELD4, FIELD5)
    Finally you have to invoke the SQL*Loader utility from the command line as follows:
    sqlldr userid=<YOUR_NAME>/<YOUR_PWD> control='c:\textfile.ctl'
    where <YOUR_NAME> and <YOUR_PWD> are the ORACLE username and password respectively for the schema in which NEW_TABLE exists.
    Ciao!
    null

  • Z-Report for PR using ES language not getting the Header and Item text deta

    Hi,
    We have developed Z report for PR report and we ahve used ES and EN language, but when i select language ES and execute the report then we are not getting the Header and Item text data,
    Secondly when We select language EN and execute the report then we are getting the Header and Item text details.
    Please guide me.
    Thanks
    Shital

    Have you maintained Tetexxt in ES language or is it that you are expecting  on selecting ES the text from En will get coverted to ES and display in your report?

  • 0CUSTOMER  text data

    Hi All,
    In my 0CUSTOMER i have attr called KATR1,KATR2,3,4,5,6,7,89,9.
    For these attr i have text data in my source.
    I have checked in XD03 transaction for attr.and the text data for the mentioned attr are lying in the following tables.
    KATR3 : TVK3T-VTEXT
    KATR4 : TVK4T-VTEXT
    etc.........
    When we extract the text data using 0CUSTOMER_TEXT weare getting only Customer Decription.
    But I need attr description also.
    How i can achieve this.
    One Solution: We can create sepaarte DS for each attr to pick the Text data.But the concern how we can mainatain the Delta.Be coz 0customer_text is delta enabled.
    Regards
    Ramakanth.
    Edited by: Ramakanth Deepak Gandepalli on Mar 3, 2010 6:29 AM

    Hello,
    If its an old flow that is of 3.x then just create update rules from the data source to the new target and delete the old init and do the init with data transfer to both the targets...so that inits are in sync.
    once init is finished then schedule the normal delta to both the targets.
    If its a new flow then create new tranformation to the new target and then schedule the Full DTP for the new target....this will bring all the historical records from the source system....you need not schedule the infopackage since all the records are already in the PSA of the data source...
    If not and if the PSA is deleted regularly then you will have to load all the data first to PSA through an infopackage full repair load and then schedule a delta DTP as said above....
    Once completed you can schedule the normal delta DTP again to both the targets.
    Thanks
    Ajeet

  • Crystal Report with text(csv) data file, can we set it as input parameter?

    Hi,
    I am a new user of Crystal Reports 2008.
    I have created a report with charts in it. The input data comes from a csv text file.
    Can I set the name of this text file as an input parameter?
    as I need to generate 44 similar reports with different text filenames(and data)?
    Thank you.
    Regards

    Brian,
    Thanks much.
    I did exactly what you said.
    Just to see any change, I first gave a bad report file name just to see if I am accidentally pointing to a different file,
    but I got an error saying report not found.
    Then I renamed my original datafile name and generated a report and it still generated one without giving an error.
    Then I also gave a junk name to the logoninfo and printed that name, the new name was assigned to logoninfo, but the code did not error out.
    It ended up generating the report.
    Now here is what I think is happening,
    1) The save data in report option seems to be still on even though I have turned it off in 2 locations
    a) file -> Report Options
    b) file -> Options -> Reporting tab.
    2) For some reason the logoninfo is getting ignored as well.
    Since I did not see any answers yesterday I posted a link to this thread on the .Net forum
    Crystal Report with text(csv) data file, can we set it as input param? C#
    and Ludek Uher says that I am connecting to the text file via a DAO database engine and so need to use the same code for changing the text file as for changing an Access database.
    But the link he gave me tells me to try the same thing that we have been trying..
    Here is my plan,
    1) I will first try and find out why my save data with report option is still on ( but it shows off in Crystal ).
    2) why is LogonInfo getting ignored.
    Meanwhile any suggestions from anyone are welcome.

  • Crystal Report with text(csv) data file, can we set it as input param? C#

    Hi,
    I am new to the forums and posted a question which belonged to the .net - SAP Crystal reports group.
    Can someone help me with my problem? following is the thread that I have started.
    Crystal Report with text(csv) data file, can we set it as input parameter?
    Thank you in advance.

    Looking at the original thread, you are connecting to the text file via the DAO database engine:
    "I added the text file as follow, new connection -> Access/Excell (DAO) -> select the file and the database type as text"
    Thus I would use the same code for changing the text file as for changing an Access database. See Kbase [1218178 - Error: "Logon failed" when connecting to Access database in .NET application|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%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313338333133373338%7D.do] for more information. If that does not work, you may want to consider connecting via ODBC or feeding the data from the text file to and ADO .NET dataset and pointing the report at the dataset.
    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]

  • Crystal Report with text(csv) data file, unable to connect on deployment.

    Hi
    I have a crystal report that connects to a text file using (Access/Excel DAO).
    Now I wrote a C# .net code that loads this report and change the file name to the text file to a different file
    using table.TableName and  table.Location to the new file and location,
    then I do applyLogonInfo.
    This worked perfectly on the machine where I developed my report and code but when I put the
    files to a different machine where I need to deploy the reports, I get the following error.
    Unable to connect: incorrect log on parameters.
       at CrystalDecisions.ReportAppServer.Controllers.DatabaseControllerClass.SetTa
    bleLocation(ISCRTable CurTable, ISCRTable NewTable)
       at CrystalDecisions.CrystalReports.Engine.Table.set_Location(String value)
       at ComponentCalcsReport.GenerateCrystalReport.getReportInPdf(String reportfil
    e, String fileName)
    I have done the following on the deployment machine.
    1) I have installed the CR_runtime libraries required to be able to run crystal report applications.
    2) I have put my .rpt file and the .csv database files in the correct folder.
    3) I have put my exe file on the machine.
    I run it from the command line.
    Am I missing something like registering the DAO or creating a DSN explicitly?

    Hi,
    After searching through the forums I found this nice document
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0225775-88c4-2c10-bd80-8298769293de?quicklink=index&overridelayout=true
    Using it's steps, I found out that when I created the report file using CR, I had the data connection set as a path
    on the D drive. But the client/deployment machine did not have a D drive and hence the path to which the database was
    pointing to. Therefore, the error "cannot connect to database" since the database name was pointing to D:pathToData
    When I created a report that was on the C drive and it's data connection was also made from C drive then the same report worked fine on the client machine. I had to make sure that on the client machine I set up the exact same folder structure as the development machine's (i.e. C:pathToMyDataandReportFolder).
    I tried using the setConnection function to change this path at run-time but did not succeed.

  • Efficent method to sort data from tab delimited text file

    I am currently writing a program to sort through data that was acquired and display it on a graph and some other indicators.  The file is a tab delimited text file with possibly 100,000s of data points.  the current method that I have tried using was that if I wanted all of the data from Oct, I would parse out the month from the timestamp, compare that to the desired month, and add it to the array if it is the same.  Other possible options of sorting are yearly and daily, possibly even hourly.
    The method does work, however it does take some time (up to a minute on a P4 3.6 GHz with 2 gb ram), and most of the other computers are not nearly as fast or with as much memory.  Is there a more efficent method to sorting the data??
    I attached my sorting vi as well as a sample data file.
    thanks for the advice.  It is saved in LV8.0.1
    Kenny
    Kenny
    Attachments:
    data sort.zip ‏84 KB
    oven1.txt ‏21 KB

    First of all, "sorting" has usually a different meaning (Sorting and numeric array ascending or descending, a string array aphabetically, etc.). Your data already seems sorted by date and time, you just want to pick a subset having certain characteristics.
    The main problem that is slowing you down is your constant growing of large arrays. This causes constant memory reallocations.
    Since your data is already sorted by date and time, all you need is to place your data in a sutable data structure, find the start and end point of your selection, then use "array subset" for example.
    Your code also seems to have a lot of unecessary complexity. See for example your "test for sort data" (see image below).
    the four cases only differ by filename --> only the file name belongs into the case and the file operation outside the inner case. Even better, just use autoindexing.
    that shift register does not do anything, because it always contains the same data. Using "index array" with index wired to [i] is equivalent to an autoindexing tunnel.
    You have a case structure to select which files to read, skipped files give you an empty array. Do you really need to do all these operations on an empty array. Why not place all code inside the TRUE case??
    Below is an image of one possible code alternative that addresses some of these points.
    Message Edited by altenbach on 10-26-2006 09:32 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    testForSortData.png ‏33 KB

  • Iphone 4s-when wifi is off and I am away from my home connection can I receive and send texts and text messages?  I want to keep my wifi off to limit data (email etc) to when I want to check it.  Cellular is roaming"voice only" it says.Can I get texts?

    When my wifi is off and I'm away from my home connection - it shows wifi off (unless I turn it on to check my email etc.) - and in the settings cellular it shows "voice only". Will I be able to receive and send texts in those settings?  Or check voicemail.  I had wanted to keep my email from coming in all the time and only want to check it periodically - so I turn ON my wifi when I want to check my email.  But when my wifi was off away from home- I hadn't seemed to be getting my texts.  So- do I need to keep wifi roaming connected when away from home to receive and send my texts in real time.  (which is what I want) or am I still able to send and receive texts with my wifi off when I'm away from home.  (When I'm home I am connected to my home data plan automatically through wifi and I get texts when I'm home - but I'm thinking I'm not getting texts in real time - is it because my wifi is off when I'm away from home?  My cellular shows voice only when my wifi is off away from home.  Am I doing it right to receive and send texts away from home?  Or do I need to open up the wifi in order to receive and send text messages.  I know that I would need to turn on wifi roaming - which will use data - for email checking or sending - as well as to use browsing apps and now I'm guessing to receive voice messages I may have missed?  So do I need wifi on to receive texts too?  Thank you - GregorySC

    Hello GregorySC,
    In order to send and receive SMS or MMS messages, you will need to have an active cellular data or Wi-Fi connection.
    You will need these to send and receive iMessages:
    An iPhone, iPad, or iPod touch
    iOS 5.0 or later
    A cellular data connection or a Wi-Fi connection
    A phone number or Apple ID registered with iMessage in Settings > Messages
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Cheers,
    Allen

  • What is my best option for a family plan. We have 1 smartphone that uses very little data a usually wifi is avaiable and 3 basic phones. Currently we have 700 shared minutes and unlimited texting. And 30 data. I don't think he needs that much as wifi is e

    What is the best family plan option. Currently have one smart phone with 30gb of data and 3 basic phones. Also have home phone for $20/month. Current plan is 700 shared minutes and unlimited texting. My bill is close to $200/month, looking to lower if possible.

    On a tablet- pse forgive typos....
    Great Advice given earlier by SuzyQ   - I believe the question not asked of you is ---what do you want to pay for the services that you need.  I think that it would narrow the groups suggestions if you could narrow your needs.
    For example: I need talk and text on 4 phones and some data say, 2 Gig, on only one of the phones. what plan is the best cost for me? You may also need to ask what the cost may be to switch to a different plan. I suspect that there will be no cost within Verizon-but ask anyway.
    I do not think that you can have a smart phone on any Verizon plan unless you agree to buy data for that phone. Also, you said that wifi is often available-however, I do not believe that Verizon allows talking over wifi without consuming airtime minutes-only data over wifi avoids your allowance to be impacted.
    As most here already know, several other service providers offer wifi-friendly service (talk/text/data) that will provide  home/business/restaurant service without impacting your allowance- just not here.
    After getting some suggestions here, call 611 and confirm availibility and price.    
    Best of luck in your research.

  • How do I write a vi that will save graph data and text data (related to the graph) so the next time I want to view the graph data the text data is included in the read vi?

    I am new at writing vi's and hope you may be able to help. I would like to create a vi that will graph measurements taken from a daq device. I would like to include text data that a user can choose from (example: machine number, test circuit, load cell type) that will stay with the graph so when the graph is viewed at a later time the text data (explaining parts of the graph) will display with the graph data. I have included a vi I am using to capture and display a force value. Any help would be greatly appreicated.
    Attachments:
    force.vi ‏500 KB

    What you want is a DATALOG file:
    When you save a file, use the BUNDLE function to bundle your machine number, test circuit, whatever (include a few spare fields), plus your graph data. Get the graph data from the source, or use a local variable of the graph itself.
    Wire the bundle output to the DATALOG TYPE of a NEW FILE function. (I presume you'll use a FILE DIALOG set to SAVE FILE to choose a file path).
    Write the same bundle output to the DATA input of a WRITE FILE function.
    Use a CLOSE FILE function to (ahem) close the file.
    When you want to read a file, use a FILE DIALOG set to EXISTING FILE (or some other means) to specify what file to read. Wire the same cluster type to the DATALOG TYPE of the FILE DIALOG, so that it will only
    offer files of the correct type.
    When you have a file path chosen, wire the bundle to the DATALOG TYPE input of a FILE OPEN operation.
    Use a FILE READ to read a single cluster - the output of FILE READ will be a cluster of the right type.
    Use a CLOSE FILE function to....
    Out of the FILE READ function, you can UNBUNDLE BY NAME the data and send to the graph and the other fields, or, if you're clever, you can use a cluster on the screen, and not unbundle it. That's harder though, since you probably want the text fields to be controls (inputs) and the graph to be an indicator (output).
    Hope that helps.
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

  • How can i read the text files and buffer the data in Vector?

    hi. I have been running into this problem for days, but with no luck and losing right direction.
    The problem is : I am trying to read a text file and buffer the data into a
    Queue for each user.
    the sample text file is as below:( 1st column is timestamp, 2nd is user_id, 3rd is packet_id, 4th is packet_seqno, 5th is packet_size)
    0 1 1 1 512
    1 2 1 2 512
    2 3 1 3 512
    3 4 1 4 512
    4 5 1 5 512
    5 6 1 6 512
    6 7 1 7 512
    7 8 1 8 512
    8 9 1 9 512
    9 10 1 10 512
    10 1 2 11 512
    11 2 2 12 512
    12 3 2 13 512
    13 4 2 14 512
    14 5 2 15 512
    15 6 2 16 512
    16 7 2 17 512
    17 8 2 18 512
    18 9 2 19 512
    19 10 2 20 512
    20 1 3 21 512
    21 2 3 22 512
    22 3 3 23 512
    23 4 3 24 512
    24 5 3 25 512
    25 6 3 26 512
    26 7 3 27 512
    27 8 3 28 512
    28 9 3 29 512
    29 10 3 30 512
    30 1 4 31 512
    31 2 4 32 512
    32 3 4 33 512
    33 4 4 34 512
    34 5 4 35 512
    35 6 4 36 512
    36 7 4 37 512
    37 8 4 38 512
    38 9 4 39 512
    39 10 4 40 512
    40 1 5 41 512
    41 2 5 42 512
    42 3 5 43 512
    43 4 5 44 512
    44 5 5 45 512
    45 6 5 46 512
    46 7 5 47 512
    47 8 5 48 512
    48 9 5 49 512
    49 10 5 50 512
    50 1 6 51 512
    51 2 6 52 512
    52 3 6 53 512
    53 4 6 54 512
    54 5 6 55 512
    55 6 6 56 512
    56 7 6 57 512
    57 8 6 58 512
    58 9 6 59 512
    59 10 6 60 512
    60 1 7 61 512
    61 2 7 62 512
    62 3 7 63 512
    63 4 7 64 512
    64 5 7 65 512
    65 6 7 66 512
    66 7 7 67 512
    67 8 7 68 512
    68 9 7 69 512
    69 10 7 70 512
    70 1 8 71 512
    71 2 8 72 512
    What I wanna do is to read all the data above and buffer them in a queue for each user( there are only 10 users in total).
    I already created a class called Class packet:
    public class packet {
        private int timestamp;
        private int user_id;
        private int packet_id;
        private int packet_seqno;
        private int packet_size;
        /** Creates a new instance of packet */
        public packet(int timestamp,int user_id, int packet_id,int packet_seqno, int packet_size)
            this.timestamp = timestamp;
            this.user_id=user_id;
            this.packet_id=packet_id;
            this.packet_seqno=packet_seqno;
            this.packet_size=packet_size;
    }then I wanna to create another Class called Class user which I can create a queue for each user (10 users in total) to store type packet information. the queue for each user will be in the order by timestamp.
    any idea and sample code will be appreciated.

    Doesn't sound too hard to me. Your class User (the convention says to capitalize class names) will have an ArrayList or Vector in it to represent the queue, and a method to store a Packet object into the List. An array or ArrayList or Vector will hold the 10 user objects. You will find the right user object from packet.user_id and call the method.
    Please try to write some code yourself. You won't learn anything from having someone else write it for you. Look at sample code using ArrayList and Vector, there's plenty out there. Post in the forum again if your code turns out not to behave.

  • Why does my signal drops and takes a long time to search and connect when I turn on or off my cellular data? And normal text messages are not getting delivered properly. It shows sent but later it will show try again, Is it just me?

    I do not know what the problem is, but after the latest update it is really hard to send text messages. It is taking alot of time to send the messages, it is not the problem with the carrier because sending text messages with the same number in the same area is really easy on my normal nokia 1100. Please suggest me what I should check. Second problem I am facing is the carrier signal drops to nothing when I turn on the cellular data. It has to then search for the network and connect again the same happens when I turn the data off again. Please tell a solution. I do not think it is the problem with the hardware because the phone is hardly 2weeks old and everything was working properly with ios 6. It initaly had problem with the battery on updating to ios7 but that was rectified with the new update but again these are the new issues am facing.

    This may sound stupid, but I'm gonna throw it out there anyway. Is it possible, that if I have enough junk on my desktop it might disrupt the signal? It seems odd, but it kind of looks like my signal is strong and relatively steady now that I've cleaned my desktop. I do tend to get very cluttered. I use a lot of reference images and save text clippings to use later... it just piles up very quickly.
    So, I wonder if all that extra effort my system has to do keeping up with the junk might have something to do with the drop outs?

  • JSF - Read a text file and diplay lines of text data on the web page

    Hello,
    For one of my projects, I need to display lines of text data on the web page using Java Server Faces Technology. The raw data could be from simple text files or sockets or anything. (Getting the data is not my issue but displaying is). Could anybody send answers with sample code. In servlet, one could do this by -
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws IOException, ServletException{
    PrintWriter out = response.getWriter();
    out.println("<html>");
    out.println(DATA);
    out.println(DATA);
    out.println("</html>");
    I am looking for similar solution.
    Thanks in advance
    DK

    Thanks mjolinor.  Works great!
    Two questions.
    1. Could you plz suggest how this could be modified so this code would read the file in or accept it from the pipeline instead of wrapping the (@' around the data?
    2. Could you plz briefly describe some of the details of the code so I can further research and understand.
    Thanks for your help.
    Thanks for your help! SdeDot
    1. It already reads in the file.  The (@' .. '@) bits are just there to create a file using your test data to demonstrate that it works.
    2.  Not user what kind of "details" you want.  There really isn't much there, and get-help on the cmdlets used should provide information on what's going on with them in that script.
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

Maybe you are looking for

  • Call Web Browser for WebService..

    Hi all. I have a problem. There are a communication between SAP and WebService. In background, SAP must call WebService periodically. It calls the function 'CALL_BROWSER' with WebService URL in background and then raises a exception. The Job log is 2

  • Current xserve raid speed rate not fast enough

    guys, my xserve raid having problem when i edit HD project 1920*1080, its ok when i edit, but when i view all 30 mins movie, its hang when play till 5 mins of the movie, and keep on hanging after that, why is that? is it because the setting of my xse

  • Automatically delete text when clicking (Acrobat Pro)

    Hello, I've been struggling with a problem for 3 hours now and I can't find any solution in this forum, youtube, google or where ever. I'm busy making a fillable form in Adobe Pro X and I'm trying to add text in an object which disappears the moment

  • HT201303 i lost my ipod touch but how can i block them??

    how can i lock my ipod touch, i lost them and i cant find hem back plz help me

  • MIGO - Split Valuation in Goods Receipt accoding to Goods Issue

    Dear All,    I am working in SAP 4.7 Implementation Project. I got one Requirement from MM Consultants.It is quite Puzzling me.But it is Very Urgent. Here I am Giving the Steps. 1. In <b>MB1C</b> (Movement type (501)) Transaction i will upload the St