Pasting in JTextPane adds the text in the next line not the cursor positon

Hi,
I have a problem with pasting the text in a JTextPane. The content type is text/html and the document is HTMLDocument. When I paste the text, it goes to the next line instead of inserting at the current cursor position. The problem is when pasting, the html writer adds a paragraph tag with the selected text. Can any one please help me with this issue for pasting a selected text in the position where I want, without loosing the character attributes and other html tags, but only the paragaraph tags?
Thanks
siju

Hi Tariq,
If you are specifying some .prt files(printer definition files) in the desformat, please examine them if you have set the width and height to proper values.
Otherwise look at $ORACLE_HOME/reports/printers/dflt.prt (default file) and see if the width and height are set to proper values.
Thanks,
Siva B

Similar Messages

  • Is there a script that it can make Overflow text automatically routed Next?(Not the main text frame)

    Is there a script that it can make Overflow text automatically routed Next?(Not the main text frame)
    when I run the scrip,Overflow text can auto Typesetting to the next page?
    thankS Supreme~

    Here's the script I use. Notice the complications getting the live area when other than rulers per spread is employed. The script automatically selects the final selection point in the story and moves to that page in the active window.
    //DESCRIPTION: Autoflow selected overset story
    (function(){
              if (app.documents.length > 0
                                  && app.selection.length == 1
                                  && app.selection[0].hasOwnProperty("parentStory")
                                  && app.selection[0].parentStory.overflows) {
                        app.doScript(fixOverset, undefined, app.selection[0].parentStory, UndoModes.entireScript, "Fix Overset");
              } else {
                        alert("There must be a selection that identifies the overset story.");
              function fixOverset(story) {
                        while (story.overflows) {
                                  var aDoc = story.parent;
                                  var lastTF = story.textContainers.pop();
                                  var lastPage = lastTF.parentPage;
                                  if (lastPage instanceof Page == false) {
                                            alert("Story ends on pasteboard; no action taken.");
                                            return;
                                  var master = lastPage.appliedMaster;
                                  var newPage = aDoc.pages.add(LocationOptions.after, lastPage);
                                  newPage.appliedMaster = master; // may not be necessary
                                  var liveArea = getLiveBounds(newPage);
                                  var newTF = newPage.textFrames.add({geometricBounds : liveArea, layer : lastTF.itemLayer});
                                  newTF.previousTextFrame = lastTF;
                                  if (newTF.insertionPoints.length == 0
                                                      && lastTF.insertionPoints.length == 0) {
                                            // allows for paragraph style with startParagraph on specific page side
                                            alert("Story is permanently overset.");
                                            return;
                        selectIt(story.insertionPoints[-1]);
              function getLiveBounds(page) {
                        var rO = page.parent.parent.viewPreferences.rulerOrigin;
                        var bounds = page.bounds;
                        if (rO == RulerOrigin.spreadOrigin) return returnBounds(page, bounds);
                        var width = bounds[3] - bounds[1];
                        if (rO == RulerOrigin.spineOrigin &&
                                            (page.side == PageSideOptions.leftHand ||
                                                      (page.side == PageSideOptions.rightHand &&
                                                                page.parent.pages.length > 1)) ||
                                  (rO == RulerOrigin.pageOrigin &&
                                            page.side == PageSideOptions.rightHand &&
                                                      page.parent.pages.length > 1)) {
                                            bounds[1] = bounds[1] - width;
                                            bounds[3] = bounds[3] - width;
                        return returnBounds(page, bounds);
                        function returnBounds(page, bounds) {
                                  return [
                                            page.marginPreferences.top,
                                            page.side == PageSideOptions.leftHand ?
                                                      bounds[1] + page.marginPreferences.right :
                                                      bounds[1] + page.marginPreferences.left,
                                            bounds[2] - page.marginPreferences.bottom,
                                            page.side == PageSideOptions.leftHand ?
                                                      bounds[3] - page.marginPreferences.left :
                                                      bounds[3] - page.marginPreferences.right
               function selectIt(theObj) {
                        var myZoom = app.activeWindow.zoomPercentage;
                        app.select(theObj);
                        app.activeWindow.zoom(ZoomOptions.fitPage);
                        app.activeWindow.zoomPercentage = myZoom;

  • I have made a webpage in HTML with several links to JPGs / GIFs. The text matter opens perfectly but not the images. Please help me

    I have made a web page in HTML with several links to JPGs / GIFs. While text matter opens up perfectly, but not the images. Please help me.
    == This happened ==
    Every time Firefox opened
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; CTS Version; .NET CLR 1.1.4322; .NET CLR 2.0.50727)

    URL of that web page?

  • When I copy and paste text in facebook, the text looks fine until I hit 'share' or 'comment' to submit it. Firefox then adds indiscriminate line-feeds within the text and it looks nothing like the original text. This does not happen in Safari. (Mac OSX 10

    When I copy and paste text in facebook, the text looks fine until I hit 'share' or 'comment' to submit it. Firefox then adds indiscriminate line-feeds within the text and it looks nothing like the original text. It makes it very difficult to read and awful to look at.
    This does not happen in Safari.
    (Mac OSX 10.6.4 with Firefox 3.6.6).
    == URL of affected sites ==
    http://

    Same problem, 3.6.8 and previous recent versions. I never thought to try another browser but I just pasted into IE and it worked fine. I copied from Firefox to IE and it worked as well. It's just when you paste into Firefox that you get the weird line breaks.

  • How do i change the text in a submenu diffrent than the page name? I want it wrap into two lines

    How do i change the text in a submenu diffrent than the page name? I want it wrap into two lines or be a diffrent title but i can't figure out how to make any changes to the text.

    Hello,
    Text in Menu/Submenu canno tbe changed while using menu widget. However, if you use the Manual Menu option, then you can create your own Menu and add the hyperlinks according to your requirement.
    To create Manual Menu, please follow the steps below :
    1) In the Widget palette, go to "Menus" click and drag "Vertical/Hrizontal" into your artboard/workspace
    2) Click on the widget itself to a blue arrow appears to the right
    3) There is a drop down called "Menu Type" set it to "Manual" (as shown in screenshot) :
    4) Now You can create your own Menu and add your own text and hyperlink to  this Menu.
    Hope this helps.
    Regards,
    Sachin

  • Overset text will not go into the text box that is part of the master for the next page

    I am trying to (first time user) set up a simple trade-paperback sized book with some photos.  Have set up several masters for chapter title pages, chapter inner pages, etc.  When I copy text out of Word into InDesign, (copy/paste) the text overset box appears.  I load it, then go to the next page, which I have already formatted using one of the masters.  But when I select the desired text box ((Ctrl/shft) and click, the overset text forms a new text box, What am I doing wrong? thanks

    I have done, this did work right for at least the left side of the spread, but never for the right side -
    Make sure the left and right page master page text frames are threaded View>Extras>Show Text Threads. Here I have left and right page text boxes threaded on my A-master spread:
    Checking Smart Text Reflow can make adding long text to master frames easier:
    With Smart Text Reflow enabled I've released the  master page text box on page 1, note the released frame has a solid border, while the unreleased master page frames on subsequent pages are dotted indicating they are still master page items and not page items.
    The result of the paste:

  • In ICal is there a way to see all of the text in all day events on the month view of the calendar.  Seems to wrap text only if there is a time on the event

    In ICal is there a way to see all of the text in all day events on the month view of the calendar?  Seems to wrap text only if there is a time on the event

    The paths won't agree on the two OSs so a simple XML import isn't likely to work.
    See Sync iPod/iPad/iPhone with two computers and, if needed, Make a split library portable. The techniques in the first link will work when moving the library between Windows and OS X as long as the library is "portable", but iTunes takes quite some time checking the database when the library is opened under a different OS.
    tt2

  • How can i remove the phone number from the text messages that i receive in the notification center

    how can i remove the phone number from the text messages that i receive in the notification center?

    You choose whether to see text messages in Notification Center or not.  If you elect to see them, they will display the phone number (unless they are from a contact in your contacts list).
    You can choose not to see them at Settings > Notification Center > Messages.

  • The icons in the bookmark tool bar are blank and the text that use to be below the icon is gone. I now have to cursor over the blank icons to see the text and the one I want. Can the icon/text customization be returned?

    In the Navigation Toolbar, the icons "Back", "Forward" etc. show the small icon and the descriptive text below the Icon. My Bookmark Toolbar use to have the same icon/text format but at some point, possibly a browser update, that changed. Currently, I do have a visible Bookmark Toolbar BUT the icons do not show the website icon, as previously, and the text below each icon is gone. I an cursor over each icon and the text becomes visible next to the icon. This is a bit of a pain to find a bookmark. Can I do a customization to return to the icon/text format.
    Was this changed because browser users requested this option, or was it an internal decision.? If the later why make such changes when not requested?
    Ed Sander

    That wasn't a change in Firefox. It sounds like something is broken in your Firefox installation, or you are misunderstanding the different between the Bookmarks Toolbar and the other Toolbars.
    In the Bookmarks Toolbar the text appears next to the website icon, not below the icon as with the other two Toolbars, and it's not switchable between text and no text as with the other Toolbars. With both the bookmark icon and the Bookmark name missing, something is broken in your installation. You need to do a little troubleshooting.
    Do you have that problem when running in the Firefox SafeMode? <br />
    [http://support.mozilla.com/en-US/kb/Safe+Mode] <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    If not, see this: <br />
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]
    If your problem isn't related to an extension, your bookmarks data base file (places.sqlite) is probably corrupt. <br />
    http://kb.mozillazine.org/Locked_or_damaged_places.sqlite <br />
    Be aware that if you delete the "places.sqlite" and similar files, your bookmark website icons won't automatically appear (the JSON backups don't have that icon data) when you restart Firefox and the places.sqlite is rebuilt using the backup data file, but the icons should be saved the first time each bookmark is used for the first time.

  • How to influence the text display of key figures in the interarctive DP

    Hello all,
    Does anyone know if there is a possibility (BADI, etc.) to change the text display of key figures (not characteristics!) in a planning book/data view?
    I know that you can define a free text in the data view but still, this is only one fixed text and it cannot be changed.
    Reason for the request: We would like to use the same key figure (and hence, indicate 2 different texts) for two different purposes (in different selections) without having to create a new data view.
    Kind regards,
    Klemens

    if you dont want a new data view and might even go to the extent of creating a user exit for this ... here is an idea
    - just create auxillary KF ( or use spare Temp KF depending on what you want to do with the data in the view) for each of these KF with the text
    lets say you have KF1 and KF2 - create KF1A and KF2A
    Make sure KF1A = KF1 and KF2a = KF2
    Now depending on user you can display KF 1 and KF2 or KF1a and KF2a depending on the user by using macros USER() and ROW_VISIBLE(0)

  • When printing to Adobe PDF from Microsoft Publisher, the text on page 2 is not 100% black

    Hi there
    I'm using Microsoft Publisher 2013 to print to an Adobe PDF file (I have a trial version of Adobe Acrobat Pro DC.)
    I sent the PDF to my printing house but they can't print it because the text on page 2 is not 100% black. In Publisher, the text colour on both pages is CMYK 0/0/0/100.
    I created a test file in which I copied the text from page 1 onto page 2 so both pages are identical. However, the PDF created from that file, when I click Print Production, Output Preview and de-select Process Black, all the text on page 1 disappears (as expected) but none of the text on page 2 disappears! It seems that Publisher and/or Acrobat is printing the text on page 1 correctly but not page 2. Does anyone know why? Am I doing something wrong?
    Here's a link to the two files: Dropbox - ShareAdobeComm
    Would much appreciate some help if anybody can please point me in the right direction. Thank you.
    (I'm seriously evaluating upgrading from my current 3rd party PDF writer to Adobe.)

    Do not use the PDF Maker, but print to the Adobe PDF printer and see if that meets you need. If you need some of the tools of PDF Maker, then turn on only those you need, not them all. Check to be sure that the graphics are indeed being downsampled and possibly go back and reduce the graphics you have in the WORD file so that you are at least not using millions of colors, 256 max. Also consider using straight B&W if color is not needed, or at least gray-scale.

  • How to change the text of item's displaying in the folowing ALV.

    Hi Experts,
    I want to change the text of item's displaying in the folowing ALV.
    Go to ME23N->Click 'Messages'->Click 'Further Data' -> Click 'Displ.Originals'.
    Here one small ALV grid is appearing.
    Currently it is showing same name's under the 'Title' column of that ALV. My requirement is to change the text coming under the column 'Title' in that display.
    Can any one throw some light in the issue.
    Thanks&Regards,
    Anversha

    Hi Anversha ,
    i think you need to use Enhancement point for it.
    check the program DV70AF0A-->ARCHIV_ANZEIGE(Subtoutine).
    i had similar kind of requirement ,while attaching the supporting documents to FI document , i need to update title field with File name , so i used EP and BADI to do so.
    regards
    Prabhu

  • Hello, I have an iPad Mini WiFi Cellular white 16Gb and I puted my sim inside it but, I cant read the text message that I recieve in the Sim. What can i do? And I can't put the sim in a cellphone coz it doesn't recognize it. Please help me! Thank you.

    Hello, I have an iPad Mini WiFi Cellular white 16Gb and I puted my sim inside it but, I cant read the text message that I recieve in the Sim. What can i do? And I can't put the sim in a cellphone coz it doesn't recognize it. Please help me! Thank you.

    iPads do not do SMS.

  • Why can't I save text I've entered into a PDF file?  When I hit "Save As", only the PDF document is saved, but not the text i typed into the document.  I'm using Windows 8.

    Why can't I save text I've entered into a PDF file?  When I hit "Save As", only the PDF document is saved, but not the text i typed into the document.  I'm using Windows 8.

    THANK YOU!
    Jan Whitfield
    The College Planning Center
    250 Palladio Parkway, Suite 1311
    Folsom, CA 95630
    (916) 985-0453
    www.TheCollegePlanningCenter.com

  • After placing a new text box in my document, typing new text, clicking away, then coming back to edit the text, I am unable to get my cursor to reappear within that text box. I can only select the box itself. I cannot select the text. Where is my cursor?

    After placing a new text box in my document, typing new text, clicking away, then coming back to edit the text, I am unable to get my cursor to reappear within that text box. I can only select the box itself. I cannot select the text. Where is my cursor?

    Even simpler than that.
    Clicking once in a text box selects it.
    Clicking once in a selected text box places the insertion point in the box.
    The clicks do not need to be close enough in time to be read as a double click.
    The same behaviour applies to table cells in Pages and in Numbers.
    Regards,
    Barry

Maybe you are looking for