Remove Address Space in Crystal Layout

Hello Experts,
One of our customers are using Crsytal Report Layouts for Invoice. The layout currently grabs Address, Address2 fields from Logistics Tab of Invoice Document. Here in this case ShipTo and BillToAddress can contain a space in the lines.
Say
ShipToAdress:
580 Broadway Fl 8
New York NY  10012
USA
BillTo Address:
445 E 65th St
Apt 1A
New York NY  10065
USA
Since an empty space exsits in ShipToAddress , i need to remove that and it should like the following:
ShipToAdress:
580 Broadway Fl 8
New York NY  10012
USA
If there is no space between the lines ( like BillToAddress) then i need to print as it is.
I have used the following function and works fine when an empty line exists.
replace(replace(replace({OINV.Address2},chr(13)," "),"  "," "),"  "," ")
How ever when a line exists it does not prints the following way:
BillTo Address:
445 E 65th St Apt
1A New York NY  10065
USA
Can anyone help me how to achieve my requirement in Crystal Reports.

We have used something like the following to bring through the address from the BP. You do have to take into account the address type & Name for linking, and the name can be updated which will cause issues. The address can also be overwritten in the document so there is quite a bit of logic required to get it running
UpperCase ((if {CRD1.Street} = '' then '' else ({CRD1.Street} + Chr(10) + Chr(13))) +
(if{CRD1.Block} = '' then '' else ({CRD1.Block} & Chr(10) + Chr(13))) +
(if {CRD1.City} = '' then '' else ({CRD1.City})) +
(if isnull({CRD1.ZipCode}) then '' else (' ' + {CRD1.ZipCode}))+
(if {CRD1.Country} = 'NZ' then '' else ({CRD1.City})))
Hope it helps

Similar Messages

  • Remove Blank Space from Crystal report

    Hello,
    i am new in crystal report work.
    recently, i have created one crystal report which display item and remaining other detail like tax detail,item grand total, Some extra remark,etc.
    But my scenario is that if i take three or more item then it take two page that's ok. on that case i have no problem,
    but if i  take only single item it will take two pages.
    how can i remove unnecessary area.
    i attached below image for better understanding.
    i also provide crystal report if required.
    if there is image not visible then i also attach below.
    Plz... Help me ASAP.
    Thanks,

    It seems like your tax detail section is another sub report please compact the subreport if attached.
    Right click on the object and select Format Object > checkbox "Supress Embedded Field Blank Lines"
    Right Click on the section and click "Fit Section"

  • Removing Blank Space (line) Accompanying Layout Breaks

    I've used a layout break to make a portion of text two-column after a one-column section. Whatever I do, whereever I put it, the layout break takes space. It's a farily tight document, in a 10pt. font, and the line the layout break takes screws up the layout of the whole page. How can I get it to not put a whole blank line between the one-column section and the two-column section?

    I might not fully understand the problem but take the paragraph break off the end of the line on the first section:
    vs

  • Import csv file in Address Spaces in an Exchange 2007 Send Connector

    hello , i must put more than 300 domains in the addres space of a Send connector.
    is possible have a csv file with the 300 domains and a powershell script to import this file in the address space of one send connector?
    example csv file :
    cepsa.es
    repsol.com
    parsi.es
    Regards
    Thansk in advance
    mcse 200x + mesaging 2000 2003 2007 2010

    Hi
    At First, you CSV should be set as the format like
    Name
    cepsa.es
    repsol.com
    parsi.es
    If you would like to set a new Send Connector. you can simply do
    New-SendConnector -Name ConnectName -AddressSpace ((Import-CSV <PathOfCSV>) | ForEach {$_.Name})
    If you would like to add to a Send Connector that already existed, Please run
    $al = (Get-SendConnector -Identity <ConnectName>).AddressSpaces
    $al += (Import-CSV <PathOfCSV>) | ForEach {$_.Name})
    Set-SendConnector -Name ConnectName -AddressSpace $al
    Cheers
    Zi Feng
    Zi Feng
    TechNet Community Support
    The first script is still working as it should under Exchange 2013 when a send connector is created for the first time.
    The second part of adding (or removing)  address spaces from an existing send connector was a little bit trickier.
    the following script did it:
    Get-SendConnector "ConnectorName" | Set-SendConnector  -AddressSpace ((Import-CSV <PathOfCSV>) | ForEach {$_.Name})
    Watch out! this command also removes domains which are not present in the csv file!

  • Export to text removes trailing spaces in XI R2

    I've found an article that talks about the problem of the export to text removing trailing spaces, but the article mentions that this is fixed in Crystal Reports XI with a newer version of u2ftext.dll to version 11.0.0.941.
    [1218375 - Trailing spaces ignored when exporting to Text format|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313338333333373335%7D.do]
    I'm using Crystal Reports XI R2 and my u2ftext.dll version is already 11.5.11.1470.
    I'm I missing something or is there another solution to the issue in XI R2?
    Thanks,
    Jeff

    2 Years, multiple people are asking this question.......Does anyone in support have a response for keeping the trailing spaces intact during export?

  • User defined fields in Crystal layout

    Hi All,
    I want to add user defined field values in crystal  layout for Sales order, but its not listed in RDR1 tables there but it's available in SAP query manager view. How can i get that in Crystal reports. please suggest on this.
    Regards
    Sree

    You can then remove the key and the fields in the database will keep their correct definitions rather than varchar(max) which is causing the initial problems.
    Adding extra keys may uause performance issues if you leave them there for a large table.
    I have also had issues of varchar(max) fields causing database connection issues when running the reports in 8.81 PL07.
    Rob

  • Removing extra spaces from a long document

    Hello
    I have seen a number of find/change and GREP formulas to do similar things. I have NO scripting or coding experience and have labored to understand GREP.
    So I am a little afraid to use it as I don't know what all the modifiers refer to (I do have a printout of some neat GREP cheatsheets like Mike Witherell's that I can absorb until I obtain a good reference )
    I need something I can copy and paste into either find/change or GREP dialog that will do the following in less than 12 steps (hopefully) without doing something catastrophic like removing all of my paragraph marks (which I almost did using someones GREP expression)
    No spaces before any comma, period, exclamation mark, question mark, colon, semicolon
    One space only after any of those
    One Space before any opening parenthesis and one space after the closing parenthesis
    No space after the opening parenthesis or before the closing parenthesis
    Remove any double or extra spaces ( en, em etc.)
    Remove any commas before parentheses
    Remove any spaces after a paragraph mark
    I think that's it
    I did find this one recently (Maybe Jongware?)
    [~m~>~f~|~S~s<~/~,~3~4%]{2
    Which from my dim understanding addresses em, en, flush and hair space ,  nonbreaking space ,figure space,third space--not sure of the rest. Really this is way over my head.
    I know this will be a piece of cake for you guys
    Thanks

A: Removing extra spaces from a long document

Peter is too modest, he's doing just great.
No space BEFORE-One Space after ---period,semicolon,colon, exclamation, question mark,CLOSING Parenth,Bracket,Brace, single & Dbl. quotation marks
Find (\s)([.,;:!\)\]\}~}~]])
Replace with $2
No space AFTER-One Space Before----OPENING bracket,brace,parenthesis,Dbl & single quotes
Find ([\[\{\(~{~[])(\s)
Replace with $1
These remove the space before/after but do not automatically add a space after/before.
In the first case, you could add a space right after the '$2' in the Replace With string, but it already may have a space, in which case you suddenly have two. One alternative is to optionally remove it with the Find string (add it as an optional match) and always add it with the Replace string, but remember that this string will only be found if there is a space preceding it. That way you'd only check the space after in cases where there was a bad space before.
So I propose you add another two find/changes to add the space, only when necessary.
One Space After: find
([.,;:!\)\]\}~}~]])(?!\s)
replace:
$0 [followed by one single space]
One Space Before: find
(?<!\s)([\[\{\(~{~[])
replace:
[one single space] $0
Color-coding with my WhatTheGrep might make it just a tad clearer what's going on in that jumble of codes:
(1 [ .,;:! \) \] \} ~} ~] ] 1) (?!! \s !)
and
(?<!<! \s <!) (1 [ \[ \{ \( ~{ ~[ ] 1)
(Orange is lookahead/lookbehind, blue is a regular escaped character, pink is an InDesign special character, green is normal grouping parentheses, and lavender is a character group.)

Peter is too modest, he's doing just great.
No space BEFORE-One Space after ---period,semicolon,colon, exclamation, question mark,CLOSING Parenth,Bracket,Brace, single & Dbl. quotation marks
Find (\s)([.,;:!\)\]\}~}~]])
Replace with $2
No space AFTER-One Space Before----OPENING bracket,brace,parenthesis,Dbl & single quotes
Find ([\[\{\(~{~[])(\s)
Replace with $1
These remove the space before/after but do not automatically add a space after/before.
In the first case, you could add a space right after the '$2' in the Replace With string, but it already may have a space, in which case you suddenly have two. One alternative is to optionally remove it with the Find string (add it as an optional match) and always add it with the Replace string, but remember that this string will only be found if there is a space preceding it. That way you'd only check the space after in cases where there was a bad space before.
So I propose you add another two find/changes to add the space, only when necessary.
One Space After: find
([.,;:!\)\]\}~}~]])(?!\s)
replace:
$0 [followed by one single space]
One Space Before: find
(?<!\s)([\[\{\(~{~[])
replace:
[one single space] $0
Color-coding with my WhatTheGrep might make it just a tad clearer what's going on in that jumble of codes:
(1 [ .,;:! \) \] \} ~} ~] ] 1) (?!! \s !)
and
(?<!<! \s <!) (1 [ \[ \{ \( ~{ ~[ ] 1)
(Orange is lookahead/lookbehind, blue is a regular escaped character, pink is an InDesign special character, green is normal grouping parentheses, and lavender is a character group.)

  • How can you create a paragraph style that removes all spaces and forces everything to lower case?

    Hi,
    Is there anyway of using GREP (or some other magical wizardry) to create a paragraph style that automatically removes all spaces and forces words into lower case?
    Strange request i know....I'm wanting to use it for datamerged email addresses.
    Thanks

    so doing it through InDesign is a work around I'm exploring.
    Excel has the 'LOWER' function and the ability to record macros for a quick find/replace on the spaces - so that's definitely a good option if it can't be solved purely in InDesign.
    You can change case via scripting in InDesign. This AppleScript (OSX only) will set the case of the selected paragraph style to lower. It would be possible to add some code that would strip spaces as well:
    tell application "Adobe InDesign CS6"
        activate
            set StyleList to name of every paragraph style of active document
        set myDialog to make dialog with properties {name:"Document Paragraph Styles"}
        tell myDialog
            tell (make dialog column)
                tell (make border panel)
                    tell (make dialog column)
                        make static text with properties {static label:"Choose a Style", min width:150}
                    end tell
                    tell (make dialog column)
                        set myPresetsDropdown to make dropdown with properties {string list:StyleList, selected index:0, min width:150}
                    end tell
                end tell
            end tell
        end tell
        set myResult to show myDialog
        if myResult = true then
            --+1 gets the correct name because list starts at 0
            set myStyle to item ((selected index of myPresetsDropdown) + 1) of StyleList
        else
            return
        end if
        destroy myDialog
        tell active document
            set myStyle to paragraph style myStyle
            repeat with j from 1 to (count stories)
                repeat with i from 1 to (count paragraphs in story j)
                    if applied paragraph style of paragraph i of story j is myStyle then
                        --defines a variable to replace the generic this_text parameter in the handler
                        set SCText to the contents of paragraph i of story j
                        set contents of paragraph i of story j to my change_case_of(SCText)
                    end if
                end repeat
            end repeat
        end tell
    end tell
    on change_case_of(this_text)
        set the_comparison_string to "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
        set the_source_string to "abcdefghijklmnopqrstuvwxyz"
        set the_new_text to ""
        repeat with thisChar in this_text
            set x to the offset of thisChar in the_comparison_string
            if x is not 0 then
                set the_new_text to (the_new_text & character x of the_source_string) as string
            else
                set the_new_text to (the_new_text & thisChar) as string
            end if
        end repeat
        return the_new_text
    end change_case_of

  • Need to remove the space between  af:panelGrouplayout & af:panelBox

    Hi All,
    I am using JDeveloper 11.1.1.6.
    My Scenario is I need to stretch some fields for all the browsers so I am using Panel box inside the panelStretchLayout<f:facet  name=center>.
    It's working fine.But Some Scenarios need to show header items  above panel box .So I try to add panelGroupLayout in <f:facet name=top> .It's stretching fine but always it's showing space between <af:panelBox>.
    How can I remove the Space between <af:panelGroupLayout > & <af:panelBox>?
    My Codes like this ,,
      <af:panelStretchLayout id="psl1" inlineStyle="margin-top:30px;">
                  <f:facet name="top">
                    <af:panelGroupLayout id="pgl4" layout="vertical"
                                         inlineStyle="background-color:red;">
                      <af:panelGroupLayout layout="horizontal" id="pgl1">
                        <af:outputText value="Day" id="ot1"/>
                        <af:outputText value="Week" id="ot2"/>
                        <af:outputText value="Month" id="ot3"/>
                        <af:outputText value="Year" id="ot4"/>
                      </af:panelGroupLayout>
                    </af:panelGroupLayout>
                  </f:facet>
                  <f:facet name="center">
                    <af:panelDashboard columns="1" rowHeight="100%" id="pd1">
                      <af:panelBox id="pb1" showDisclosure="false"
                                   showHeader="never"></af:panelBox>
                    </af:panelDashboard>
                  </f:facet>
                </af:panelStretchLayout>
    Thanks...

    You have not specified explicit height for the top facet, so its height is 50px (which is the default height for "top" and "bottom" facets if they exist). You can specify an exact height for the top facet using the "topHeight" property of the <af:panelStretchLayout> tag:
    <af:panelStretchLayout ... topHeight="25px">
    Alternatively, you can specify height "auto" in order to instruct the component to calculate the height automatically depending on the content within the facet:
    <af:panelStretchLayout ... topHeight="auto">
    Note, that specifying an "auto" height puts little overhead to the layout manager which has to calculate the height first and to render the panel after that.
    Dimitar

  • Removing Blank Spaces caused by Supressed data

    Hi All,
    How we can remove the balank spaces caused by supressed data in crystal reports.for eg
    Item Code:I0002
                   Timer
                   For Time Info
                   100
    ItemCode:I00003
                   Pen
                   20
    if there is txt added against pen as for Timer(For Time Info)
    it will leave blank space.How to remove blank space.
    Thanks,
    Neetu

    Hi Neetu
    I have tried replicating your requirement at my end using Xtreme Sample database below are the steps which I have followed.
    1)I have customer Id field,Customer name field field placed in details section.
    2)Click on Section Expert
    3)Click on Details.
    4)Check the second option as "Suppress(No Drill Down)".In front of that there is one icon as "X-2".Double click on that icon.
    5) Type the below formula
         if {Customer.Customer ID}=157 and {Customer.Customer Name} ="Aruba    
         Sport" then true
        else if {Customer.Customer ID}=148 and {Customer.Customer Name}
         ="Koala Road Bikes" then true
         else false
    6)Save and close.
    With this formula where condition matches the specific criteria it will suppress the section and there will be no blank spaces.The rest of the data will be shown.
    Hope it will help you.
    Regards
    Asha

  • How to increase usable address space for 9.2 Oracle on RHEL4

    9.2 (on RHEL4):
    The customer is using huge pages and also used VLM until switching the CPUs from Dual-Core to Quad-Core architecture
    In his research he has found the following supported procedures:
    - 10gR2 has already increased SGA limit for 32bit Linux 3,42 GB without VLM option.
    - 10gR1 has an option to increase it by changing the address space and relinking the libraries.
    - 9iR2 has the same option. But all that i have found in Metalink/Google is for RHEL 2.1 release.
    The customer has removed VLM and now has the SGA within 32-bit Linux limit for 9i - 2.7 GB. They are considering moving to 64-bit architecture, but before that they are looking for a way to achieve in 9.2 the increasing of the SGA on RHEL4.
    They are looking for a similar procedure as the one described in 200266.1. In this note they only mention RHEL 2.1. Is there a supported way to do this on RHEL 4 release?

    There are all kinds of optimisations listed here, which are not all directly related to each other:
    -Huge Pages: huge pages is the page size of the memory allocation done on the operating system layer. the reason for using hugepages is because the PTE table decreases because the number of PTE entries decreases when the size is larger.
    -VLM: vlm is actually an oracle naming of using PAE, physical address extention. Using PAE means using addressable space beyond the normal 32-bit addressing is used, which is usable because of a trick on the processor level.
    -switching from dual core to quad core: this switching means the operating system sees more processors (which is also a trick, because the number of CPU's is not increases, only the number of core's on the processor), which means the system is most likely able to do more processing in the same time.
    -using 3.42GB: this can mean two things
    -a) it means the oracle executable base address is lowered (which is already done for 10g by default)
    -b) the hugemem kernel is used which has a 4:4 kernel split, instead of a 3:1 kernel split.
    so the real question is: what is it you are looking for to use this? and are you sure you achieve that by increasing the SGA?
    to be able to help your customer, please diagnose what you want to achieve, instead of just apply all kinds of technique which seem to be doing something with performance.

  • How can we remove the space after changing look and feel to generic

    Hi
    I want to remove the space which left blank after changing look and feel to generic in formsweb.cfg file.
    Can anybody help me to remove this blank space.

    Hi,
    can you be more specific on teh space you mean?
    Frank

  • Can't remove address from autofill

    I've got a macbook air Version 10.7.5   (Safari Version 6.1.6 (7537.78.2)  And I can't delete the auto fill addresses. In fact, the name doesn't show in "previous recipiets" but shows up when I begin to type her name when composing an email...
    What I've tried:
    Start typing the recipient's address or name in a new message.
    Select the desired address from the auto-complete list as if you'd compose an email to them.
    Click the small down arrow in the recipient.
    Select Remove from Previous Recipients List from the menu.
    You can also search for the unwanted address directly in the previous recipients list:
    Select Window | Previous Recipients from the menu in Mac OS X Mail.
    Highlight the address you want to remove.You can highlight multiple addresses by holding down the Command key.
    Click Remove from List.
    The problem is in step 3.  When I click the down arrow of the recipient in the address box, there is no "remove previous recipients" option I only get:
    Edit address
    Remove address (which only removes it from THAT particular email I'm composing NOT permanently
    Copy
    Show contact card
    create smart mailbox
    spotlight_________(person's name I typed)
    Or when I type recipient's name, then go up to "window" and hit "previous recipients" the little box opens up but her name is not in there to delete. 
    So I've closed down mail, rebooted.  But still when I type this particular  name, the old email address shows up in the auto fill options. 
    I've even tried hitting dropping down the little arrow in her name, hitting "edit" and backspacing until it's empty, but no luck.  Why is this so hard to do???

    The dirve makes no noise or motion when I try to eject it using the suggestions listed above.  I am using Snow Lepord and the iMac is about two years old.  The DVD I put in was made on a PC using Adobie Encore.  It worked in two TV DVD drives without any problems before I put it in the iMac.  The computer just doesn't recognize that there is a disk in the drive.   I have run other DVDs in this computer using DVD Player without problems.  I don't use the iMac very much becase I am a PC man.  I think this is about the stupidest problem I have ever encountered.
    It looks like the only way to get the disk out it to open the computer.  Anyone have any suggestions on how to go about this?  I am an Electrical Engineer with some computer design and programming experience so I have been inside computers before. 

  • How to remove footer space in Table

    I have created a table in main window. after creating main area section, the footer section is appearing as an empty at the bottom. I tried to remove this space by giving zero height to the footer height, but the value is not accepted by the system. How can I remove the space created by the footer?
    rajan

    Hi Rajan,
    Can you please tell me how did you solve this problem ?
    I am facing the same issue in smartforms.
    Regards,
    Nitin.

  • How do I remove a space before the first word in a sentence using find and replace or GREP?

    Right, so I am laying out a document in inDesign from a word document and it has a space before every first word in a sentence. It is really annoying and I need a quick way to get rid of them. I wasn't too sure how to do it with find/change but I am sure there is a way in GREP if someone can help me. I have included an image so that people can see exactly what I mean.

    The ^ location works for all paragraphs.
    But a note to the OP, there is a sample script called FindChangeByList that removes leading and trailing spaces as well as extra spaces after punctuation, all in one go. But if you want to continue to use a GREP find/change to remove leading space, I'd modify Joel's suggestion to ^\s+ to get those cases where the user typed multiple spaces as well.
    And don't forget there are actually legitimate places for leading tabs, which both the script and this GREP will find and remove, so be careful.

  • Maybe you are looking for