VbCrLf in expressions cause loss of data on export to Excel

I have a report where it is necessary to embed 3 text boxes in a rectangle, which then lives in a Tablix cell:
Within the highlighted cell lives an expression.  It was necessary in this case to use commas to separate the values and then manipulate these in Excel to put them on new lines.  VbCrLf, VbLf, VbCr were all tried to no avail.  There can be
4 of these but only the first 2 would display.  The point of the post is to engage discussion really.  This is the work around in this case.
What's funny is all other instances of using rectangles to house text boxes works.  And of course, it's not string length because there are other parts of the report that work.
Was not able to rapidly find this on Google so got with a consultant here where I work.  It has something to do with the ASCII values returned by VbCrLf, VbCr or VbLf that cause truncation to happen in some cases.
It was hard for me to find so I'm passing the knowledge along.  Having a handy consultant saved a lot of spinning wheels on dead-end google searches.
"Fed Phase(s): "
+ IIF(Microsoft.VisualBasic.Strings.Trim(Fields!ENV.Value) =
"", Fields!ENV.Value +
+ IIF(Microsoft.VisualBasic.Strings.Trim(Fields!DTL.Value) =
"", Fields!DTL.Value +
+ IIF(Microsoft.VisualBasic.Strings.Trim(Fields!ACQ.Value) =
"", Fields!ACQ.Value +
+ IIF(Microsoft.VisualBasic.Strings.Trim(Fields!CO.Value) =
"", Fields!CO.Value)
Michael Durthaler

Hi SACSgtMike,
According to your description, you have add VbCrLf in an expression to make four values display on different lines within a textbox. But when exporting the report to Excel, only first two values can display, right?
As we tested in our environment, the VbCrLf can work fine both in preview results and Excel. We have specified the expression like below:
=Fields!SalesTerritoryGroup.Value + "," + vbcrlf + Fields!SalesTerritoryCountry.Value + "," + vbcrlf + Fields!SalesTerritoryCountry.Value + "," + vbcrlf + Fields!SalesTerritoryCountry.Value
The report both in preview mode and Excel work fine. In your scenario, since you mentioned the VbCrLf doesn’t work fine after exporting to Excel, would you please provide some screenshots about results both in preview and Excel for our analysis. Also please
share some sample data and report design.
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu
Qiuyun Yu
TechNet Community Support

Similar Messages

  • Operating system causes loss of data during writing to file continuously

    Within a while loop I read data from serial port (9,5KByte/sec, bluetooth dongle via serial port protocol) and writes them to a file (text-file) continuously. The operating system interrupts the while loop periodically which causes a loss of data. If I read data from serial port without saving them no data get lost.
    E.g. on my PC the OS (W2K) wakes up a second hard disk exactly once per hour which freezes the data saving process to the 'saving' hard disk (and therefore also the while loop, data reading) for about 5-6 sec. On a Laptop the OS (XP, one single hard disk) interrupts the data saving process every 10 minutes for about 1 sec. during the first hour and not any longer afterwards.
    I have al
    so tried to use the 'deny read/write' option of the 'Open File.vi' to prevent other file sweeping applications (backup, anti-virus, Fast Find) to open the file simultaneously which could temporarily deny you write access to the file - no success.
    BTW, this concerns also the compiled version of my LV7.1-program.
    Any suggestions?
    Thanks,
    Tobi

    Use two loops, one for reading the serial data and a separate one for writng to the file. The first loop reads the serial port and writes the data to a queue. The second one reads the queue and writes to the file. Put a delay in each loop, perhaps zero milliseconds in the serial loop and 10 ms in the file loop (try various values). This causes the LV scheduler to share CPU time between the two loops.
    Now the serial loop will acquire the data and store it in the queue which also serves as a buffer. If the file loop gets blocked by the OS, the data just stacks up in the queue.
    Lynn

  • Every time isync resets causes loss of data

    I have two computers. 1 running 10.4.11, 1 runnin 10.5.5
    I frequently sync the PB with 10.5.5. However when I sinc my PB running 10.4.11 the message appeared that .mac was reset and I am asked to replace the data on my computer or on .mac
    The same will occur tonight, when I go home and will try to sync again the PB running 10.5.5.
    In the past these resets have caused me a lot of grief and loss of data, as the two computers have different contacts and bookmarks.
    Of course this never occurred when both computers were running 10.4.11
    How can I sync both computers without these random "resets"
    Regards

    If you're syncing between Macs via .Mac/MobileMe, then you are using *MobileMe Sync*, not iSync.
    The *MobileMe Sync* forum is here: http://discussions.apple.com/forum.jspa?forumID=957

  • SSRS 2008 R2 - Missing Data when Exporting to Excel or CSV (Row Count is 500)

    Hey Folks,
    When exporting SSRS 2008 R2 report  to an csv or excel file not all the rows are being exported. Any suggestions on why this is occurring. The number of rows is less then 500 and it seems to be a pretty straight forward export. Any help is
    greatly appreciated.  Inherited this and not sure if this would be configuration issues or something else. It is happening on a number of reports.
    Thanks.

    Hi Humbly,
    According to your description, when you export report into CSV or Excel format, some rows are missing.
    In your scenario, since you are missing data “rows” in your exported file, we are guessing if you have any visibility setting like toggle which hide those records. It’s possible that you have set toggle or visibility in your report. After exporting
    Excel/CSV, some data might not appear properly. In SSRS 2008 R2, it has reported this kind of issue about data missing after exporting. However, those scenarios are not exactly same as your issue. It mostly turns out be conflict between data and “layout render”
    and related to DataElementOutput property. DataElementOutput property controls export behavior, it indicates which report item data should appear in Excel/CSV render. For more information, please refer to this article: Reporting Services:
    Why aren’t all my report columns exporting to CSV and/or XML?.
    As we tested in our environment(SSRS 2008 R2), no matter what we export into CSV or Excel, we get same results as in BIDS . So I would like to know your report design structure. If possible, please provide some screenshots about results in BIDS and Excel/CSV
    render extension results. It may help us find out the root cause of your issue. Thank you.
    Best regards,
    Qiuyun Yu

  • SubReport Data not Exported to Excel Crystal Version10

    Hi,
    I have a main report and subreport in page header which displays Company Name ,
    When I export the report data to excel only the main report data is exported no subreport data is exported.
    Please can anyone let me know if this is a bug ... or am I missing out anything.
    I am using crystl reports version 10
    Cheers
    Rahul

    Hi Rahul
    As the subreport is placed in the page header, it will not export the data of the subreport to MS Excel Data only. This is an export limitation.
    In order to display the data of the subreport you can either use MS Excel (not Data only) or place the subreport in other sections of the main report.
    Thanks
    Poonam Thorat

  • Issue sorting dates in export to excel

    After exporting to excel, the end-user wants to sort on a date characteristic (posting date), using excel functionalities. This gives an incorrect result:
    01.01.2006
    01.01.2007
    01.02.2006
    01.02.2007
    If we sort on a time characteristic (calendar day), the list is sorted correctly.
    If we run the report via the BEx and then sort (using excel functionalities), it is also correct :
    01.01.2006
    01.02.2006
    01.01.2007
    01.02.2007
    How can we enable the correct sort?
    Thanks for your help!

    Dear Karthikeyan,
    I was also facing the same issue, and the reason was the diifferrence in the protocol of the J2EE WAS and that of Diapatcher.
    check whether J2EE WAS and that of Diapatcher are both on http or on https. If they both are not same, that's the issue.
    Hope it helps!!
    Warm Regards,
    Upendra Agrawal

  • CR cut the data when exporting to excel

    Hi all,
    I ve a formula field in crystal report to extract string data from database. Due to some issues, the length of this formula is fixed to display 20 characters. This is ok as the report is exported to excel and excel can display all data no matter this field exceeds 20 characters or not.
    However, after I enable the Top border formula editor (Format Field->Format Editor->Border tab->click the button "X-2" button besides Top"), CR can only export 20 characters for this field and cut the rest data. Anyone can help to check?
    Best regards,
    Grace

    Try service Pack 3 and if that does n ot rtesolve it you can work with a support engineer by purchasing a case:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551

  • Updating N90 to V 5.0607.73 causes loss of date an...

    I have just successfully updated my N90 to 5.0607.73, and now whenever it is turned off it loses the time and date and asks for a new time and date whenever the unit is turned back on!
    It worked perfectly before I updated!!
    Help!
    Cheers Douglas Pearless.

    I updated from 3.0545.5.1 to 5.0607.7.3 and my clock stays on.
    Couple of things to try...
    1. Never switch off :-)
    Just switch to Offline profile at night.
    2. Format the device
    Set the time. Make a fresh backup of your data onto MMC. Format device by switching off > press & hold GRN, 3, * while switching on (until inner display lights up). Restore data.

  • Update iOS 5.1 caused loss of Data

    I just updated my iphone 4s to the new OS and now all of my Calendar data is gone! Then i check the icloud that's empty too! What can i do to get it back. this is very aggravating and I do not have a back up anywhere all my appointments are gone! HELP PLEASE!!!!

    Why don't you start by defining "not working".

  • SSRS Report is missing data when exported to Excel via a subscription

    I have an SSRS report on a daily subscription that creates an Excel attachment and emails it  to a number of users. Some of the users are reporting that they cannot see all
    of the data in the Excel attachment.
    The report has a date column and 6 numeric columns, and the affected users cannot see the numerical columns - the fields are empty. The date column is displaying
    correctly along with all of the column headers.
    If however I change the format to XHTML, all data is displayed for all users.
    What's weird is that it is not affecting all users - for the affected users, the file size of the attachment is considerably smaller so it doesn't look like the
    issue is with their PC's - the data is not there to begin with.
    I've tried setting the DataElementOutput property on each of the fields to Output but no luck.
    I am using SQL Server 2008R2.

    Hi Wolfmeister,
    Glad to heard that the issue had been solved and thanks for your sharing.
    It will be very beneficial for other community members who have similar questions.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • Showing the Data and exporting to Excel Sheet!!!

    I've one jsp page displaying the data from the database using jdbc connection. Now, i want to export all these data to the Excel Sheet. Could anyone tell me that , how to achieve this in JSP.
    in advance thanks....

    please go through the following links
    1)http://jakarta.apache.org/poi/
    2)http://www.rgagnon.com/javadetails/java-0516.html

  • Overlapping rows and data when exporting to Excel

    Hi All,
    I have developed a crystal report with 20 rows and 30 columns in Crystal Reports designer and when i run the crystal reports designer 10 and down load it to excel, every thing looks good, when i publish the report in Crystal Management console and run it and down load it to the Excel format  the some of the rows are overlapping as show below.
    Expected Results .
    SNACKS           10           20            30          40        50             60
    DISPENS           50           60            70          80        90             30
    ASPERTE            50           60            70          80        90             30
    CARSRD             50           60            70          80        90             30
    Result that i am getting
    SNACKS           10          20            30          40        50             60
    DISPENS       ASPERTE               50           60            70          80        90             30
    CARSRD              50           60            70          80        90             30
    Regards,
    Abraham

    Post your question to the Business Objects Forum

  • Anybody experienced loss of data when switching service providers?

    I recently transferred my two IMAP accounts to a new hosting service, but since I used the same names for the new accounts in Mail, all the mailboxes under the previous accounts, with hundreds of messages dating back to over two years, were deleted or overwritten!
    Luckily, because they were IMAP I can still access them through webmail, but users should be warned that re-using the same name for mail accounts when switching causes loss of data, and as far as I know there is no warning during the creation of the new accounts that existing mailboxes will be overwritten.

    Nothing has been over-written (the messages live on the server): it's simply that you've changed the settings for the accounts to the new provider, so of course Mail is displaying the messages there, not the originals. Just set up the original accounts again with the appropriate server settings and username/password - you can give them new names in Mail to distinguish them from the new ones (you can call a mail account anything you like for display purposes).

  • Problem in ALV Data Exported to Excel

    Dear all,
    When an ALV data is exported to Excel i see that the data is shown in 2 lines
    and a blank line is inserted between each data.
    Can any body please help.
    with rgds
    Ranjith Singh

    Hi Ranjith,
    How many columns that you extracted to excel from ALV?
    Would you give more specific to your case?
    As I remember, ALV has its limits for extracting number length of column to excel.
    Regards,
    Dondi.

  • Exporting to Excel data only using sub reports in Crytal 9

    Post Author: pmstar
    CA Forum: Exporting
    I am using Crystal 9 verision.
    I have .rpt file that used 4 sub reports .In the main report I placed all the sub reports in the(detail section) row  and using the data for some caluculation in the main report to generate report fields.I placed the main report fields in next row( in detail section).However when i export the report .Its generating 5 empty rows  and 3 rows with 0. I have pretty much followed the solution from the article "c2017620" published in BO.
    Since i used the sub reports only to get some value for main report calculations .Is there any workaround for the following issue
    1.I do not want to print the subreport data when exported to excel data only.
    2.how can i get rid of the blank rows
    We have a lot of reports which has the same issue and we need to get the reports to work in Excel Data only .The reports works perfect when used in PDF format but its mandatory that we need to give the reports to the client using Data only.
    If possible, when responding with your recommendations, please include detailed steps.  It would be very helpful.Thanks in advance,
    PM

    Post Author: swat
    CA Forum: Exporting
    Hi,
    Of what i gather from ur scenario...this is what i did in one of my reports.
    I had to use two subreports and they had to occupy one cell each, in line with other fields.
    To obtain that,all the fields required in the subreport i put them into a text box.Therein restricting the fields to the txt box only...
    Then import that sub-report as it is.
    It worked for me....
    try out...
    All this only if've understood u right...

Maybe you are looking for

  • Why did Mail randomly start sending emails to junk folder?

    My mail app suddenly started sending important emails to my junk folder. I have been using mail on all of my devices for some time and have never changed any settings since I started. With the exception of some emails here and there, I have never had

  • ALC-DSC-005-000: Not Serializable

    What does the message "ALC-DSC-005-000: Not Serializable" mean? I am trying the simple "Sending an email with an attachment" walkthrough in the training manual and I receive this error when trying to invoke the process. Does this mean that a configur

  • ITunes 7 Hates my Video Podcasts

    Hoping someone can help. iTunes 7 won't play my old movies, music videos or video podcasts, either on the computer or on the ipod. It recognizes that I have them, but won't play them on the computer, and though I've selected all podcasts (also tried

  • Triggering BO from Change document object..

    Hi Experts, I had a problem triggering custom Business object from custom Changed document object.. The scenario is like this...   ' I had created a simple business object with key field as MATNR..   and a changed document in SCDO transaction.. I had

  • Writer can't see projects in Robo Version Control - no error messages

    Background: Robo Version Control 3.1 RoboHelp 8 (same issue happened with 7) Issue: We are having trouble with our source control, and I wasn't able to find an answer on this forum or on Google. From time to time, when a writer opens RoboSource Contr