Font not changing after a CR in a text box

I have some vb.net code that fills in a report, including text boxes. Some of the text boxes are used like a header and have a fixed size. When the desired text is entered, sometimes there will be a character indicating a carriage return/line feed goes in that spot to make the text more readable, and is replaced when found.  This works fine.
What does not work is after the text is set up, the user can change the font. The code then goes through all the objects on the report and changes the font. The problem is that when it tries to change the font on the text boxes where the CRLF is, the font change is applied up to the CRLF, but is not applied to the text after it. I end up with mixed fonts in a text box.
Is there a special character or method to get the font to be applied correctly? I have tried all combinations (chr(10), chr(13, chr(10) & chr(13), etc) but so far nothing has worked.
Here is the code I am using to apply the font change:
Dim objText As ReportAppServer.ReportDefModel.TextObject = CType rcd.ReportDefController.ReportObjectController.GetAllReportObjects().Item(obj.Name), CrystalDecisions.ReportAppServer.ReportDefModel.TextObject)
objText.FontColor.Font.Name = myFont.Name
If myFont.SizeAdjustment <> 0 Then objText.FontColor.Font.Size += myFont.SizeAdjustment
rcd.ReportDefController.ReportObjectController.Modify(CType rcd.ReportDefController.ReportObjectController.GetAllReportObjects().Item(obj.Name), CrystalDecisions.ReportAppServer.ReportDefModel.TextObject), objText)
One more note - this appears to work fine for formula fields. I just can't seem to get it to work for text objects. I have many reports and I would prefer not to change them all to formulas.
Edited by: cotsjadixon on Oct 27, 2011 9:32 AM

I am new to crystal report objects (I inherited the code I am working with), so I need a bit of help. I tried the following code:
              Dim objText As ReportAppServer.ReportDefModel.TextObject = CType(rcd.ReportDefController.ReportObjectController.GetAllReportObjects().Item(obj.Name), CrystalDecisions.ReportAppServer.ReportDefModel.TextObject)
              For Each pobj As ReportAppServer.ReportDefModel.Paragraph In objText.Paragraphs
                pobj.FontColor.Font.Name = myFont.Name
                If myFont.SizeAdjustment <> 0 Then pobj.FontColor.Font.Size += myFont.SizeAdjustment
                rcd.ReportDefController.ReportObjectController.Modify(CType(rcd.ReportDefController.ReportObjectController.GetAllReportObjects().Item(pobj.Name), CrystalDecisions.ReportAppServer.ReportDefModel.Paragraph), pobj)
              Next
but I get the following error: Public member 'Name' on type 'ISCRParagraph' not found. I am having trouble finding where the proper paragraphs collection is.
What am I doing wrong?

Similar Messages

  • How do I stop fonts from changing when I drag/copy a text box to a new document?

    I am using Mac OS X version 10.7.5 with CS6 version 8.0. When I create an ad in indesign and copy it or drag it onto another page (the finished layout page for a newspaper) Some of the fonts that are enabled in my suitcase, show as if they are not found when dragged to the new document. When i use "find font" and replace the "missing" font with the exact same one it was built with (in the other document) it comes in slightly different, and needs some adjusting. I deal with many ads and bringing them together to build many collective pages. How can I transfer my individual ad pages to my collective layout pages without having issues with font? I would like to still be able to edit the ad on the (collective) page, so placing a PDF or ID doc is not an option.
    Please help! this is slowing down production and proving very frustrating!
    Thanks in advance.

    Do you use styles in these ads? Same named styles inthe receiving document with different definitions (or same named styles with differnt defintions used as the basis for other styles) can cause this. Another possibility is moving an element from a file saved in a previous version of ID into a newer version document. Legacy text frames are not recomposed until you try to edit them.

  • PO Release Strategy not changed after deletion of few line items with less

    Subject : PO Release Strategy not changed after deletion of few line items with less Total PO
    Dear Friends
    We have issue with PO Release strategy. We have created the PO. with release strategy  with multiple approvers.  After approval of first approval manager , one of the PO line item got deleted and Total PO value is reduced . The new PO value should have changed the PO release strategy. But it is not changed. Old release strategy only showing in the PO which is wrong. 
    Details of the PO
    PO no 4500000123 with 5 line items Total PO value : 100,000 USD Release strategy : AB
    PO line item 5 deleted. Now total PO value changed to 50,000 USD and the PO release strategy should have been changed to AA but not changed. Still showing PO release strategy AB only.
    Are there any OSS notes available to correct his bug.
    Please let me know if you need more details
    Thanks in Advance
    Thanks
    MVS

    Hi,
    release indicators  change it to 4.It may works. Please explore to all 6 indicators..........
    i.e,
    1-cannot be changed
    2-changable,no new determination of strategy
    3-changable,new release in case of strategy
    4-changable,new release in case of strategy or value change
    5-changable,new release if new strategy/outputted
    6-changable,new release if new strategy or value changed/ outputted......
    And check   Characteristic description and value in Classification  of Release strategies ........
    I hope this will help you. Thanking you.
    Regards,
    Venkat.

  • Firefox/Thunderbird Font Rendering changed after upgrade of xulrunner

    Hi guys,
    I experienced a problem with font rendering in the mentioned applications after upgrading xulrunner from 1.9.2.10-1 to 1.9.2.10-2 today. It seems like font smoothing/subpixel rendering does not work as before. After downgrading to 1.9.2.10-1, it worked as expected again.
    To make it more clearly, here is a comparison shot of the two different renderings. The top one is before, the bottom one after the upgrade. You can see that the font at the top is rendered more smoothly.
    And here is a difference image:
    Is anything known about changes which could cause this?
    <edit>I have to correct this. The rendering in thunderbird was obviously not changed by the xulrunner upgrade, but by a separate thunderbird upgrade from 3.1.4-1 to 3.1.4-2.
    <edit2>Additional information: I have the cleartype versions of freetype2, cairo and libxft installed, if that matters.
    Last edited by Singul (2010-09-28 16:40:18)

    Although I am empathetic to the hard (and really great) job the arch devs do, I want to voice my overall agreement with softtower on this issue. Fonts have been an off and on problem for me with arch since the beginning. I understand the devs are doing the best they can, especially when the actual problem is with the moz. devs. But fonts are the major way most users interact with the system, and I can tell you that almost nothing is more aggravating, to me at least, to suddenly "upgrade" and get presented with those really crappy fonts out of the blue. Just saying I understand the frustration, and I think he makes some good points about shipping broken packages and "blaming" it on upstream. If they're broken - don't use them! if possible. "Progress" that breaks stuff isn't really progress, imo.
    hokasch wrote:
    Don't quite get what the fuzz is all about, my fonts look as crisp as ever (on a laptop lcd), the update changed absolutely nothing for me. I never used "fixed" versions of anything, can't really remember how I set up the fonts when I did this installation though (font config advice on the wiki I guess).
    It is not the repo's maintainers job to keep packages synced up with any "fixed" packages in AUR, that is your own responsibility, and bitching about it won't help you any.
    Just pointing out that comments like these aren't really helpful, imho. So you didn't have the problem - that's good to know, but the "fuzz" is about the fact that some of us *DO* have the problem.
    It typically doesn't show up on laptops, btw, only standalone LCDs for some reason (has always been the case for me, at least, with both LCDs and laptops, where the laptop never had the problem). So again, the fuss is that a major usability function got broken from an upgrade that shouldn't get broken, and imo it raises some good, if admittedly difficult to resolve, points, philosophical points, etc. about the packaging and upgrade process,

  • [SOLVED] Console Font Not Retained After Reboot

    Hi, again.  Happy to report that I successfully installed Arch Linux last night, with no problems whatsoever.  Thanks to those who addressed my concerns.  Still reading up on the package manager, user and group management, etc.
    Anyway, one of the first things I noticed is that the console font gets reset after every reboot.  I need to manually type "setfont Lat2-Terminus16" - which works just fine, except for the annoyance in having to do that each time I boot up.  My /etc/vconsole.conf has the following:
    KEYMAP=us
    FONT=Lat2-Terminus16
    Following the solution described here:
    https://bbs.archlinux.org/viewtopic.php?id=155876
    I added 'consolefont' (without quotes) to the beginning (first item) of the HOOKS line in /etc/mkinitcpio.conf.  Then I rebuilt the initramfs by typing "mkinitcpio -p linux".  Again, no errors during the rebuild.
    I've rebooted several times, but there's no change...  my selected console font is not retained.
    Can anyone point what I'm doing wrong, or offer ideas?  Thanks.
    Last edited by R0b0ty (2013-03-06 16:52:42)

    Have you tried
    If the fonts seems to not change on boot, or change only temporarily, it is most likely that they got reset when graphics driver was initialized and console was switched to framebuffer. To avoid this, load your graphics driver earlier. See for example KMS#Early_KMS_start or other ways to setup your framebuffer before /etc/vconsole.conf gets applied.
    https://wiki.archlinux.org/index.php/Fonts#Examples_2

  • URL is not change after successful authenticate with ISE 1.1.1

    Hi,
    I have setup Cisco Identity Service Engine (1.1.1) with Wireless LAN Controller (7.2.110)
    Everything is complete unless the URL redirect. My guest client can join the Guest SSID and also can authenticate to ISE.
    But after they success to authenticate with ISE, the URL in the browser doesn't change to the pre-configure. It still be something like https://ise-ip:8443/guestportal/redir.html . Anyway the content in the browser is changed to the URL that being configured such as http://www.google.com/
    How can I do with this situation cause everything is working fine but only the browser URL that is not change to the preconfigure one.
    Thanks,
    Pongsatorn

    Hi,
    This is the user experience when using central web authentication:
    http://www.cisco.com/en/US/products/ps11640/products_configuration_example09186a0080ba6514.shtml#final
    Here is the process when you use local web authentication:
    http://www.cisco.com/en/US/docs/security/ise/1.1/user_guide/ise_guest_pol.html#wp1295223
    Hope this helps,
    Tarik Admani
    *Please rate helpful posts*

  • Height of a Tile (or orther container) not changed after inserting nodes

    Hi,
    I am a javafx beginner and I'm struggeling with the size of the containers. Here is what I try to do:
    I am making a photo gallery in which an Album can contain subalbums and photos through which a user can scroll. The Album objects are stored in a Tile, the Photo objects in another Tile. These Tiles I want to display vertically in a VBox, which is in turn placed on a Clipview. Now my problem is: the height of the Tile is not changing when I insert Photos or Albums in the Tiles. And I need these heights (or that of the VBox) to do calculations for my scrollbar. When I print the bounds for the album Tile before inserting Album objects everything is 0, which is correct. But when I print the bounds after insertion of 10 Albums the height is given as the height of only 1 Album, even without hgap and vgap. The height of the VBox is also equal to this height of 1 node.
    What am I missing here? How can I get the correct height to use for my scrollbar calculations?
    I hope you can help me out, because it's hunting me for days now :-)
    Thanx,
    RedMary

    Well, that's one of the mysteries of JavaFX: the initialization order... :-)
    When you create the custom node, it is not yet in layout, so the tile isn't laid out either, and its dimensions aren't final.
    If I add a button to the scene to dump the data, you can see the final dimensions.
    I also tried a trick this week-end, to override doLayout to know when a node have been laid out. A quick test shown mixed results, but perhaps it can be a starting point.
    class Gallery extends CustomNode {
        var albumList = Tile {
            width: 1000
            vgap: 25
            hgap:25
            content: []
        var photoList = Tile {
            width: 1000
            vgap: 25
            hgap:25
            content: []
        var box = VBox {
            spacing: 50
            content: [albumList,photoList]
            override function doLayout(): Void
                super.doLayout();
                ShowData("After B layout");
        public override function create(): Node {
            ShowData("Before insertion:");
            for (i in [1..10]) {
                 var rect = Rectangle {
                     width: 100;
                     height: 100;
                     fill: Color.RED;
                 insert rect into albumList.content;
             for (i in [1..15]) {
                 var rect = Rectangle {
                     width: 100;
                     height: 100;
                     fill: Color.WHITE;
                 insert rect into photoList.content;
            ShowData("After insertion:");
            var group = Group {
                content:[box]
                override function doLayout(): Void
                    super.doLayout();
                    ShowData("After G layout");
            return(group)
        function ShowData(msg: String): Void {
            println("==> {msg}");
            println("albumList LayoutBounds:{albumList.layoutBounds}");
            println("albumList BoundsInLocal:{albumList.boundsInLocal}");
            println("albumList BoundsInParent:{albumList.boundsInParent}");
            println("box LayoutBounds:{box.layoutBounds}");
            println("box BoundsInLocal:{box.boundsInLocal}");
            println("box BoundsInParent:{box.boundsInParent}");
    Stage {
        title: "Application title"
        width: 1000
        height: 800
        var gallery = Gallery {}
        scene: Scene {
            width: 1000
            height: 800
            fill: Color.BLACK;
            content: [
                gallery,
                Button {
                    text: "D"
                    action: function (): Void {
                        gallery.ShowData("On button click");
    }

  • Font not working after loading snow leopard.

    My font named Smash is not working after loading snow leopard.  Is there any way to fix this?

    I suspect you're talking about a free font called Smash. Read Kurt Lang's paper on font management
    <http://www.jklstudios.com/misc/osxfonts.html>
    and especially his strictures on free Windows fonts. The free Smash is a good example of what his talking about. It's a bad, poorly made font. Trash it ASAP.
    If you want to check it with Font Book, use  File > Validate File…, then locate smash.ttf and proceed. You cannot use File > Valide Font, because that command works only with installed, 'working' fonts.
    For the real font, go to
    <http://www.cool-fonts.com/>

  • HU status not changing after GR

    Hi All,
    For a stock transfer order we create outbound delivery and create HU and then do PGI and at the receiving site we do GR via HU in MIGO transaction.
    however the status of the HU changes after it is created and after it is PGI ,,, but after doin GR the status does not change.
    Please help me with this ,,,
    Regards,
    Samuel

    hi,
    I am doing GR in MIGO transaction with respect to outbound delivery via HU, I am not creating inbound delivery.
    Regards,
    Samuel

  • Images not changing after upload ?

    Has anyone ever had this happen ? I have a site like a
    myspace type social community site and well some people have been
    having a problem where they upload the picture and it does not
    change for them ? When I refresh on my end it shows up just fine
    but on there end its showing up as the old picture, this is of
    cource after they have hit reload, cleared out the chache etc .. I
    am not sure what could be causeing it, could there be some odd
    server cacheing going on ?
    Anyhow any help would be awsome thanks !
    Mike.

    Try reloading the page once with code like this:
    <head>
    <script>
    function reloadItOnce(){
    if (self.name != 'xrefreshedx')
    self.name = 'xrefreshedx';
    self.location.reload(true);
    else self.name = '';
    </script>
    </head>
    <body onLoad="reloadItOnce()".........

  • External Hyperlinks Will Not Change after Publishing

    Hi - I'm running the most up to date iWeb and trying to publish external hyperlinks that will not change no matter what I do. They do not overlap, there is no image blocking them, and I have checked and rechecked that they work on iWeb perfectly. I have tried saving each update individually with the inspector, publishing each update individually, re-entering each url then tab or enter - basically everthing suggested on these forums. The site is scullyfilm.com and the external links are to my pages on my squarespace site.
    Any ideas?

    It's very simple to do and it's virtually impossible to do it wrong.
    Here's how I did it.
    Went to Squarespace :
    http://scullyfilm.squarespace.com/
    Right-clicked a link and copied it :
    In iWeb, selected a button and made it a hyperlink. iWeb automagically places the copied link in the URL field :
    Repeated for other 3 links.
    There's currently ONE hyperlink on your page (last updated 20140113) :
    http://scullyfilm.com/scullyfilm/HOME.html
    and it links to :
    http://scullyfilm.com/casting/
    which does not exist.

  • Partititon1,2,3 in  group ODS,FAC status not change after data redistribute

    Hello,
    first thanks for your help. By now the db2 data redistribute has been sucessful. but another issue occurs , could you give me some suggestion?
    1. run Tcode dbacockpit-->db2 for linux, unix, and windows database > configuration>database partiton group
    i found the stutus in db partion group NGRP_FAC_AB7 and NGRP_ODS_AB7 and partion 1,2.3. is partion not in partitioning map containers created. I know if we want to change the status from this to partion in partioning map status , we should do a redistribute.
    i have made a redistribute action like this
    1. double click what i want to distribute
    2. select the relevant partition , for example partition 0001
    3 click the execute immediatelly button .
    when i finished , the status is not changed . so i change the redistribute log located in /db2/db2ab7/sqllib/redist/ AB7.NGRP_FACT_AB7.2008022808582 .
    the log message is
    Data Redistribution cannot be continued.
    Error: Redistribution failed with SQLCODE=-6047 (rc=-2145779603).
    the SQL 6047 detail information is like the following. I don't know what happens.
    it's a SAP bug just like the previous issue ? Could you give me some suggestion ? Thanks
    db2 => ? sql6047
    SQL6047N Database partition group cannot be redistributed
    because table "<name>" does not have a partitioning
    key.
    Explanation:
    At least one table in the single-node database partition does not
    have a partitioning key. All tables in the single-node database
    must have a partitioning key before the database partition group
    can be redistributed to a multiple-node database partition
    group.
    The operation was not performed.
    User Response:
    Use the ALTER TABLE command to specify partitioning keys for
    tables that do not have one. Then try the request again

    Before redistribution, do your tables reside on only one partition? Does the error message you get list the table or tables that do not have a partitioning key?
    All fact tables, ODS tables and PSA tables are created with a partitioning key in a SAP BI system. However, in the FACT and ODS tablespace, there are a few BI management tables (name starting with 'RS') that do not get a partitioning key by default if created in a tablespace on only one partition. The BI data distribution wizard in the DBA Cockpit takes care of some of these tables, for example RSDMFACTAB and RSDMODSTAB. Maybe there are some additional ones.
    Please list the names of the tables without partitioning key. If the error message does not contain them, you can get them with the following SQL statement:
    select varchar(tabname,30)
    from syscat.tables a
    where tbspace='<your_tablespace>'
      and not exists (select partkeyseq from syscat.columns b
                             where a.tabschema=b.tabschema and a.tabname=b.tabname
                                      and b.partkeyseq > 0)
    Brigitte

  • Content-Length header not changed after url-rewrite... yields cut page.

    We use iPlanet6 ,service pack 4. The pages that return from the servlets are
    changed by the Application Server. The Application Server adds
    GXHC_GX_jst=901a10a6662d6164& to the all the URLs (which increase the
    page's size). The problem is that Application Server does not change the
    Content-Length header in the servlet response. This yields cut pages in the
    browser (IExplorer5).
    If we don't add the Content-Length header it works fine. (I.e., The pages
    are not cut.) Our problem is that we work with mobile devices that must have
    the Content-Length header to work properly.
    Q: Do you know if there is a patch that fix the problem?
    Q: Is it possible to configure the Application Server to prevent this
    url-rewrite?
    Regards,
              Aviram

    Hi guys,
    I would like to do url rewriting on our CF app but am worried I'll break something if I try and do it myself - is there anyone who would be interested in a bit of consultancy to help us achieve this?
    I want to turn http://www.allchichesterjobs.com/search-results.cfm?sector=21&q=part-time-jobs
    into http://www.allchichesterjobs.com/part-time-jobs
    I've tried this using IIS and URL Rewrite, when I browsed to http://www.allchichesterjobs.com/search-results.cfm?sector=21&q=part-time-jobs
    my browser was redirected to http://www.allchichesterjobs.com/part-time-jobs ok - but then I got a 404 error
    I'm wondering if I can pay someone to remote view my screen while we talk on skype and tell me what to do?
    Hope it's ok to post this sort of request on here
    Thanks very much indeed.
    Nick

  • Boot file not changed after XP was removed!!

    I installed XP on my macbook pro but when i removed the XP partition, the boot file was not changed. Every time i restart the computer it boots into the windows partition and tells me that no drive was found. In order to boot in OS X i have to hold the option key and choose the OS X drive which is the only one that appears on the screen... Any one know how to fix this problem?
    Alex

    You might want to reread the setup guide; you can use Startup Disk preference pane to establish a default boot disk.
    Doug

  • My safari did not change after downloading mountain lion

    I thought everying was suppose to look the same on all devices with Mountain Lion? on my ipad and iphone safari did not change.

    What do you mean by "look the same"?
    Installing Mountain Lion on your Mac does not change the visual appearance of the Safari app on your iPad and iPhone. In fact, installing Mountain Lion does nothing at all to your iOS devices.

Maybe you are looking for