Regarding printing of a address

I have Address format in this way
               ASTER TELE SERVICES PVT. LTD.                         Flat no.4 to 7, C/o Krishna Plaza,                         Opp.Water Tanks, Near TATA Garden Busstop,                          Chandan Nagar, PUNE-14
But I need the output as a
ASTER TELE SERVICES PVT. LTD.Flat no.4 to 7, C/o Krishna Plaza,Opp.Water Tanks,Near TATA GardenBusstop,Chandan Nagar, PUNE-14
i tried in the following way but unable to succeed
linesp=((linesp.replace(" ", "")));
System.out.println(" "+linesp);
Any suggestions please
Regards
Praveen

Perhaps use a regular expression and replaceAll().
If you are going to do this, first figure out exactly which spaces are supposed to be removed.
Edited by: pbrockway2 on Apr 25, 2008 8:26 PM
@Others: As posted, the string to be altered has tabs in it.
@OP: Perhaps you could explain the input and output formats.
Perhaps try:
linesp = linesp.replace("\t", "");(that will replace the tabs, but not a few of the spaces.)

Similar Messages

  • My printer's IP address isn't showing up on my config report!

    I have quite an annoying problem:
    I've been trying to connect my printer wirelessly for a while now, but the same problem keeps coming up: I can't seem to find my printer's IP address! I've printed out many config reports through my printer, and I've scoured the Web looking for a solution to my problem. There's no firewall up on my router, it's just the bloody  IP address that won't reveal itself! I have about had it, so if anybody could propose a solution to this problem, that would be tremendous.
    Thank you!

    Hello, 
    May i have the printer model# to assist you better ?
    Meanwhile you may perform the below steps ...
    To configure the new wireless settings on a printer that features a Wireless Setup Wizard:
    From the printer’s control panel, open the Wireless Settings menu. Many products provide access to the Wireless Settings by pressing the Wireless Button or touching the Wireless icon on the printer’s control panel. Consult the printer’s help documentation if you do not know how to access the Wireless Settings menu.
    From the Wireless Settings menu select Wireless Setup Wizard. The Wireless Setup Wizard will guide you through the process of configuring your printer with the new wireless settings. Input your Wireless Network Name and Wireless Password when prompted.
    You can print a Wireless Network Test report from the Wireless settings menu to confirm the printer was successfully connected to your network.
    Regards,
    Jabzi
    Give Kudos to say "thanks" by clicking on the "thumps Up icon" .
    Click "Accept as Solution" if it solved your problem, so others can find it.
    Although I am an HP employee, I am speaking for myself and not for HP.

  • How to print the changed address in delivery output

    Dear Gurus,
    As all we know the customer address comes in sales order from customer master table or address table and further get copied into delivery also in case of same SP and SH.
    My issue is that we do not maintain different SH for a sold to party so SP = SH and there addresses will also be same.
    In output we are getting address from ADRC table.
    Now if we change the ship to party address in delivery manually and get the output the printed address is unchanged.
    But I want to print  the changed address in delivery output without changing the masters and maintaining diiferent ship to party.
    Please help me how to determine it in print out???
    Thanks,
    Sanjay

    Hi,
    I think the logic you have written is wrongly on output.
    The logic is like this:
    Pass the document number into "VBPA" table.
    Execute.
    Fetch the address number against "WE(ship-to-party)".
    Pass the same address number into "ADRC" table to get the address.
    Here you will get the new address which is different from the maaster data.
    Regards,
    Krishna.

  • Changed network name and now e-print e-mail address doesn't work

    I have a 6500A Plus Deskjet.  I have an hpconnected account and changed my e-print e-mail address to something I would remember.  Then I changed the name of my network.  I have to get a new claim code ..... I enter it and when I try to choose my e-print addrss, it says that it is already been taken.  I was on the hp site within a half an hour of changing my network name.

    Hi rfmal1,
    Thank you for joining the HP Support Forums.  I understand that you needed to set up the ePrint feature of your Officejet 6500A after changing the name of your network.
    Your previous ePrint email address will not be available, once an ePrint email address has been used it is no longer available to be claimed again. I am sorry if this has caused any inconvenience.
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • Print the user address in print layout

    hi
    i need the print the user address in print layout.the address store in OUDG. but i call this field in pld. But its not print anything..please any one give the suggestion
    We have the three branches.but using one pld. So the user default address show in pld in automatically changes as per user enter.
    Edited by: Isayah.I on Nov 6, 2008 9:53 AM

    Hi there,
    So you have three branches using only one PLD? If the address is not showing. please try to create a three PLD's for the three company branches, every time the user print a PLD they must choose a PLD assign from them.
    Regards,
    Clint

  • Printing sender's address only on small envelope

    I'm trying to help my Mom send many Thank You cards out. I've succeeded in printing the message on the cards however I'm having problems printing address on the small envelope. The people whom she's trying to send the cards out are not people who we need to keep in our address book. So we are trying to speed up the process by printing her/senders address only on the envelope and hand writing the send-to addresses instead of entering some 200 entires into my address book.
    I didn't know about the Address app's print function so first I tried it with TextEdit. I've done some acrobatics moves to make it print my/sender's address somewhat close but I couldn't make it to print it any closer than 1" margin from the top left corner edges. Now I'm trying from the Mac's Address app but I ran into problem of not being able to print only the sender address; it seems I can only choose both addresses or none at all. I'm thinking probably there is a way but since I'm trying to do this for the first time I can't figure out. Anyone know how?

    Hi George,
    From your description, here is my understanding about your issue:
    You create a rule on user1's mailbox: If messages come from external, forward them to user2's mailbox. In user1's mailbox, message from external doesn't show the sender's email address. If I have misunderstood your concern, please let me know.
    Based on my knowledge, if a message from external, it should show the sender's email address. Also, I have a test in my environment using Exchange 2010 with Outlook 2013, it works. In your case, I recommend you check if OWA has the same issue. Also, please
    send a message from external without forward and check if this external sender's email address will be displayed.
    What's more, I would like to clarify the following thing:
    User1([email protected]) create a rule that forwards messages from userA(external user,
    [email protected]) to user2([email protected]). If userA sends a message to user1, in user1's Inbox, this message from "userA <[email protected]>"; in user2'a Inbox,
    this message from "user1" not "userA <[email protected]>".
    Besides, forward and redirect are two different things.
    Hope my clarification is helpful.
    Best regards,
    If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Amy Wang
    TechNet Community Support

  • Trouble adding printer to HP ePrint Home and Biz iPhone app - can't find printer's email address

    I'm trying to connect my HP Photosmart c6380 to my iPhone. I already downloaded the app and my printer is connected to my wireless network, as is my iPhone, but I can't add my printer to the app.
    When I go to "Manage ePrinters" and try to add a printer with the + button I see 3 choices:
    Add ePrinter from list: "No ePrinters available"
    Add Manually: I can't find the printer's email address even using the instructions found at the ePrint center.
    Add from WiFi Network: My printer isn't shown in this list so it does not support auto discovery.
    So I'm guessing that if I could just find my printer's email address that would connect it to my iPhone for wireless printing, but I can't for the life of me find it. 
    Any help is greatly appreciated.
    Thanks.
    This question was solved.
    View Solution.

    Hello amybett,
    I have bad news and good news. The bad news is that your printer is not Airprint/ePrint capable. However, the good news is that with the HP ePrint Home and Biz iPhone app it does not need to be Airprint/Eprint capable, as long as it is connected to the same network as your phone.
    Here are the steps you will want to take to print something:
    1. Setup the app by completing the email registration and entering the code (which I believe you have).
    2. Select the item you wish to print using the menu in the app (Photo Albums, Saved Files, Web Browser, etc.).
    3. Once you select the item you should see the item and a large "Print" button under it.
    4. If the printer you want to print to is not listed above the "Print" button, select the icon on the right (wrench/computer) and select the printer you wish to use (along with other settings). 
    5. Tap on the "Back" button in the top left corner, then tap "Done" (blue button in the top right corner), and then tap the "Print" button to print your item.
    Let me know if you are still having trouble after following the guide above.
    If I have helped in any way, just click the Kudos star on the left. Also, if your issue has been resolved, don't forget to select Accept as Solution

  • HP ePrint old printer e-mail address

    I had to reinstall wireless configuration to my printer and reenable HP ePrint services. That unfortunately also meant new unique printer e-mail address.
    I am aware that the old e-mail address is obviously locked out for security reasons for 6 months. How can I retrieve the old e-mail printer address sooner? I am using the same ePrint account as before, the same printer, from the same location. The old e-mail addresses should be enabled for the same accounts. It causes a lot of inconvenience to others using my printer.
    Thank you very much for your answer.
    I am using HP LaserJet Pro P 1102w mono Printer, Windows 7 64-bit.

    You must wait 6 months for it to be release again.   Just pick another email name for your adddress.
    Say thanks by clicking the Kudos Thumbs Up to the right in the post.
    If my post resolved your problem, please mark it as an Accepted Solution ...
    I worked for HP but now I'm retired!

  • Printing a report directly to an printer via the printer's IP Address.

    I am looking for how to print a report (either text or pdf) from a PL/SQL procedure, directly to a known IP Address of a printer.
    We have a report that is generated through forms as a pdf. The user can then obviously read it and print it to a printer from their machine.
    We are trying to implement a Stored procedure that will print that report directly to a know printer's IP Address.
    How can this be done?

    Check out the orarrp utility (Oracle Reports Remote Printing Utility) on Metalink, note 277431.1.
    It may be easier in the end to set up printers on the OAS. I guess that client PC's are using network printers, or are the really using printers connected directly to the PC?

  • How do I change a printer's IP address, !again! :(

    O Great, Knowledgeable and Kind printer gurus,
    I'm in a similar situation to Peter Minter's old archived thread at
    http://discussions.apple.com/thread.jspa?messageID=2188292?
    ... So I'm sorry to be the next confused person Sorry to be asking ask a question that has probably already been answered multiple times, in which case blush, and a pointer to the answer would be great.
    I have a Linksys Ethernet switch into which I've plugged
    1. RJ45 carrying signal to/from an Apple Airport Router's Ethernet LAN output plug (Router gets its input from my Cable Modem)
    2. RJ45 carrying signal to/from Mac Mini
    3. RJ45 carrying signal to/from Mac Al-PowerBook G4
    4. RJ45 carrying signal to/from HP LaserJet 5M
    1, 2, and 3 are networking just fine to one another and out to the Internet, and have been fine for months.
    It's the LaserJet 5M that I've just gotten that I can't figure out how to configure so's I can print to it.
    Via its test page output, the printer reports its current IP addr to be 0.0.0.0 , subnet mask NOT SPECIFIED, def gateway 0.0.0.0 , config by RARP/BOOTP
    Via its network status panel, the mini reports:
    IP: 10.0.1.2
    Subnet Mask: 255.255.255.0
    Router: 10.0.1.1
    Via its network status panel, the PowerBook G4 reports:
    IP: 10.0.1.4
    Subnet Mask: 255.255.255.0
    Router: 10.0.1.1
    In slot 4 of the Linksys switch, I used to have an HP Print Server that made a network printer out of an old HP LaserWriter 4ML's parallel port. Damned if I remember how I changed the HP Print Server's IP addr., but I did somehow!
    The newer HP LaserJet 5M has an RJ45 input so it's networkable directly, but I think I need to be able to reach into it (I think via Telnet from TERMINAL running in either of the two Macs) and change its IP addr to something in the local subnet. Maybe it "should" be 10.0.1.3.
    However, try as I might, I cannot open a TELNET connection to 0.0.0.0 or any machine:
    ==============
    DrDans-AL-PbG4:~ DrDan$ date
    Sat Jul 29 09:52:43 EDT 2006
    DrDans-AL-PbG4:~ DrDan$ telnet
    telnet> open 0.0.0.0
    Trying 0.0.0.0...
    telnet: connect to address 0.0.0.0: Connection refused
    telnet: Unable to connect to remote host
    telnet> open 10.0.1.2
    Trying 10.0.1.2...
    telnet: connect to address 10.0.1.2: Connection refused
    telnet: Unable to connect to remote host
    telnet> open 10.0.1.1
    Trying 10.0.1.1...
    telnet: connect to address 10.0.1.1: Connection refused
    telnet: Unable to connect to remote host
    telnet> quit
    DrDans-AL-PbG4:~ DrDan$ date
    Sat Jul 29 09:53:34 EDT 2006
    DrDans-AL-PbG4:~ DrDan$
    ==============
    So, from the AL-PbG4 (10.0.1.4) I can't OPEN connections to all the IP addresses I "should" be able to see. Hmm. I must be doing something wrong.
    Even if I could contact the HP printer, how would I change its IP addr, and what should I change it to? 10.0.1.3 or maybe 10.0.1.200 ?
    MacOSX 10.4.7, Printer Setup Utility Version 4.6(161.9)
    Given that the HP printer's directly on the LAN thru the switch -- should I use "HP Jet Direct - Socket" protocol, or Internet Printing Protocol (IPP) or Line Printer Daemon (LPD) protocol? Simply baldly getting in there and assigning the addresses 10.0.1.3 or 10.0.1.200 on HP Jet Direct - Socket" protocol doesn't seem to produce a working queue. I also select Print Using HP LaserJet 5M. No soap.
    Any hints? Should I d/l a better/higher functionality configuration tool from HP? I'm about Googled out on this, and what I think to be an exhaustive search in this HELP area doesn't give me the info I think I need. Wot am I doing wrong, pls? Any more info I can provide? Happy 2 do it. TIA for any cycles you can spare.

    I appreciate the feedback VERY much, Kappy, and at the beginning of my most recent (and successful!) hacking session, I thought that you were helping me "fail forward" ... but it all turned out OK, thanx to you!
    When I get the printout of the "MENU MAP" the HP MIO menu shows only
    CFG NETWORK = NO
    so with your welcome hint, I just found that if I go into the HP MIO menu and change NO to YES*, I can keep going... and I can even get to where I can change the TCP/IP addr!
    As (I believe) befits an important setting area like CFG NETWORK, setting it to YES* holds only for ONE application. When you come back from READY status, HP MIO's CFG NETWORK is set back to NO.
    But if I've just arrived and have set CFG NETWORK to YES* and keep going, I see choices like
    NOVELL = OFF*/ON (I left that at OFF*, no Novell hereabouts)
    DLC/LLC = OFF*/ON (not understanding what that is, I left it at OFF*)
    TCP/IP = ON*/OFF (I can set it ON* and it will "stick" from entry-from-READY to future entry-from-READY -- like I've turned it ON and it stays on)
    ETALK = ON/OFF*
    Encouragingly next, I see
    CONFIG TCP/IP = YES*/NO
    BOOTP* = YES/NO*
    Then I get to a place where I can enter
    TCP BYTE 1 = 0*
    and I can move that byte up until it reads
    TCP BYTE 1 = 10*
    and the same through the rest of the TCP BYTES:
    TCP BYTE 2 = 0*
    TCP BYTE 3 = 1*
    TCP BYTE 4 = 3*
    These settings persist from CONFIG TCP/IP to the next CONFIG TCP/IP session, so that's good...
    Next in the menu options, I see
    SM BYTE 1 = 0* which I assume means Subnet Mask, so I alter that to be the same as the other members of my LAN (correct me if these settings are wrong, please?)
    SM BYTE 1 = 255*
    SM BYTE 2 = 255*
    SM BYTE 3 = 255*
    SM BYTE 1 = 0*
    These settings persist from CONFIG TCP/IP to the next CONFIG TCP/IP session, so that's also good...
    Next the menu offers me
    LG BYTE 1 = 0*
    LG BYTE 2 = 0*
    LG BYTE 3 = 0*
    LG BYTE 4 = 0*
    I have no idea whatever what LG means, so I didn't change that. Same for the next choice:
    GW BYTE 1 = 0*
    GW BYTE 2 = 0*
    GW BYTE 3 = 0*
    GW BYTE 4 = 0*
    Finally, the CONFIG TCP/IP = YES* menu offers
    TIMEOUT = 90*
    and the possible values range from 0 through 3600. Having no idea whatever what this is, I left it alone.
    When my printer's TCP/IP addr was set at 10.0.1.3 I could PING it successfully. When I changed its addr to 10.0.1.200 I could no longer PING 10.0.1.3, but could successfully PING 10.0.1.200 .
    However, in neither case can I add a printer whose IP address is 10.0.1.200 or 10.0.1.3, whose queue-name I leave blank for the default queue, using IPP, and where I specify the HP Laserjet 5M device.
    Sooooh close I wondered what my dain bramage was...
    I next wondered whether it perchance had something to do with the LG or the GW 4-octet strings, which I could set to anything but which I've left 0.0.0.0 out of ignorance?
    But then I got a brainstorm -- it seems as if what is built into this printer is like the JetDirect I used previously -- so when I changed from IPP to JetDirect SOCKET protocol, everything worked!
    So a great big THANKS FOR THE CRUCIAL HINT!! goes to you, [B}Kappy!! :)
    ... might be nice to know what LG, GW, and TIMEOUT have to do with anything, but right now I'm a Happy Camper.
    ... and strangely enuf, the .PDF file I cite above has no occurrences of CFG, much less TCP. Foo upon all HP Documentation 'droids.

  • How do I print envelopes using Address Book?

    I am having trouble getting envelopes to print properly from Address Book in Lion.  I have specified size #10 envelpes.  When I print them, the text printed on successive envelopes moves further and further down the page until the address drops off of one envelop and is then printed at the top of the next envelope.  If I print to PDF, I see the same behavior.  I have an HP OfficeJet 7600 printer.
    Also, when I switched to size #9 envelopes without making any other changes, the envelopes were printed as though I had switched from portrait to landscape.
    Can anyone tell me how to fix these problems?  I am so disappointed because what looked like a really quick and easy way to print envelopes has now taken hours and I only have 3 remotely satisfactory envelopes printed and no hope of getting more other then to do them one by one.

    I have a similar problem too. I might be mistaken, but I think it creeped in when I "upgraded" to Lion and the foobarred the addressbook and who knows what else. It used to work just fine.
    I have had luck printing envelopes with the Ambrosia widget. Very nice and free, Give it a try.

  • How to hide or rename the HP Printer's Mac address from Lion Finder Sidebar

    I have an HP d100a all in one printer, and since upgrading to OSX 10.7 (Lion), my printer's mac address shows up in the Finder Sidebar under Shared devices. I understand this is for the printers SD card slot to be shared over my network, however the name is not user friendly.
    Is there a way to rename what is displayed in the Finder window, from the devices mac address to a friendlier name?
    If not, is there a way to disable the sharing of the SD card slot so it is hidden from the sidebar completely?
    I have found several posts from people not knowing what this entry is, but I have not managed to find any posts that explain how to rename or hide the entry.
    Any help would be greatly appreciated. 

    I have also registered to this forum to inform that the problem with showing the MAC-address in the sidebar of the finder is still not solved.
    The strange thing is that the Embedded Web Server says:
    "This specifies the Bonjour domain name assigned to the device, in the form <host name>.local. If a user-specified host name has not been assigned, the default host name HPxxxxxx is used, where xxxxxx are the last 6 digits of the LAN hardware (MAC) address. This option cannot be modified."
    But I did assign a user-specified host name and that name does show-up everywere (also within Bonjour), except in the sidebar of the finder (hp###xx##x####). Lots of people have the same issue, when searching on the interet, but not one has found the solution.
    Please help with solving this issues?

  • AP Check not printing all of address on Vendor Master

    Hello SAP Guru's,
    I have an issue where when we execute F110 for check run, it is not printing the complete address as we have under Vendor Master.  For example, the check print is not showing the following from Vendor Master record:
    Building Code
    Street 2  STR_SUPPL1
    Street 3  STR_SUPPL2
    District (not sure if this is necessary)  CITY2
    What is the problem?  How do I fix it so that we capture the complete address on the check?
    Thanks a million!

    Thank you Dianne but I don't see anything under SE71.
    Perhaps I am unfamiliar with the transaction.
    Is this something I can do or should I seek ABAP support?  I am not sure if this is a functional issue or ABAP.
    Thank you.

  • Finding printer's IP address on Appletalk Network

    I'm trying to install RIP software for my Fuji Pictrography printer which is on a wired ethernet appletalk network with a switch. in order for the RIP sofware to work I need to find the printer's IP address. How do I find this information?
    david

    This is description of the Network Adaptor;
    The Fuji Pictrography Network Adapter (PNA) connects Pictrography 3500, 4000-II and 4500 printers to an Ethernet Network to provide network-wide photo printing. Compact Multi-protocol adapter supports TCP/IP and Apple Talk Protocols. Connections: 10/100Base-T/X - auto negotiation. Supports Windows 95/98/2000/NTv4, XP and Mac OS9 and 10.3x. (Not compatible with Fuji Print Suite or Fuji 3000).
    david

  • HT2486 how can I print all my address book?

    How can I print all my address book?

    There is a bug with printing Contacts in ML. If you print from iCloud, I'm told it works.
    You can file feedback here.

Maybe you are looking for