AddTextObject - set FormatText = True doesn't work?

<p class="ssiBODYCOPY">Hi,<br /><br />I am adding a textobject and setting the FormatText parameter to true but the CR(newline) characters that I have included in the string are just being formatted as a space. Is this a bug in Crystal? I am using Crystal Reports XI SP2.<br /><br />Code below:<br />VARIANT format1;<br />VariantInit(&format1);<br />format1.vt = VT_BOOL;<br />format1.lVal = TRUE;<br />CString fileContens = "line one \n line two";<br />ITextObjectPtr text = pSection->AddTextObject(_bstr_t(fileContens.GetBuffer(0)), 0, 0, format1);</p><p class="ssiBODYCOPY">I&#39;ve also tried setting CanGrow property to TRUE, but it does not make any difference.</p><p class="ssiBODYCOPY">Could you help? Thanks.</p><p class="ssiBODYCOPY">Billy<br /></p>

Please re-post if this is still an issue to the Legacy Application Development SDKs Forum or purchase a case and have a dedicated support engineer work with you directly

Similar Messages

  • Since last week my date & time have not worked on my 5c. The date & time are constantly wrong. I've shut down, doesn't work. Set it automatically, doesn't work. I don't get texts or calls when it's sleeping. Any suggestions?

    Since last week my date & time have not worked on my 5c. The date & time are constantly wrong. I've shut down, doesn't work. Set it automatically, doesn't work. I don't get texts or calls when it's sleeping. Any suggestions?

    try a reset.
    Hold the home & power buttons down simultaneously until you see the Apple logo appear.
    Note: no data will be lost.

  • Autoplay=true doesn't work

    Hi -
    I exported an .MOV from Quicktime (7.6.6) and got the "ReadMe.html" with the 3 other files. I wanted the little video (220x123) to play automatically as soon as the page is rendered in the browser. No controls, no "click to play", immediately start. I set autoplay="true" in 3 places in the HTML I copied over. The vid will not play automatically. It works in every other way.
    How can I get the video to play automatically when the browser renders the web page?
    TIA some insight.
    JL

    Sorry! Using storeVarrayAsTable doesn't produce table TYPES. Using maintainOrder does.

  • Setting time automatically doesn't work?

    One of the less obvious new features in iOS 4.2 is that there is now an option in your Settings app to set the time automatically.
    The only problem with that option is that it doesn't work - at least not for me. Actually, what happens when I enable that option is that it turns back my clock by 18 minutes. I've tried syncing, waiting, switching the option on or off while connected or not connected to iTunes, and a few other things. Nothing helped.
    Interestingly enough, this new option is not mentioned in the updated iPad User Guide, so I'm not sure how it's supposed to work.
    Any ideas? My timezone is set correctly.

    Yeah, something seems to be broken... I have a WiFi - 3G iPad but I've never turned on the 3G so I'm running (and have always run) WiFi only... My iPad normally lives in California (Cupertino is the default time zone for California) but I am presently in Kansas City visiting family. I also just downloaded and installed the new 4.2 OS yesterday so maybe that has something to do with the issue???
    Anyway, if I turn "Set time automatically" to OFF, set the time zone to either Dallas or Chicago (two choices for the Central time zone where I am now and set the time manually, I can then change the time zone to Denver (all as an experiment) and the time rolls back one hour (so far so good)... I then change the time zone to Cupertino (Ca) and it rolls back another hours (again, good)... Then I reset it to say Chicago (Central) and it moves forward two hours (again, check)... Then, for grins, with it sitting right there and the correct Central time and with Chicago chosen as the current time zone, I then "Set time automatically" back to ON and the time now rolls FORWARD TWO MORE HOURS where it should not go... The bottom line is with "Set time automatically" turned ON I get the wrong time by two hours... Now granted, there is a two hour time zone difference between where I originally set up this machine and where I am now and maybe that has something to do with it??? Or something is broken in the OS...
    Anyone have any thoughts or guidance???
    thanks... bob...

  • HELP - setting page margins doesn`t work correctly

    Hi there,
    maybe someone encountered the same Problems I am facing.
    I am setting the page margins for the Left-Side to have enough space to punch the printout.
    Somehow CR seems to ignore the values I set when printing a Report.
    Most of the times I have too much space on the right side and not on the left side.
    The margin on the Left side seems to be the min-margin of the printer.
    What`s wrong with the Reports?
    CR 2008 with SP1 is used.
    The Reports are not designed against a specific Printer.
    The virtual Printerdriver of CR is used.
    Greetz
    Ricardo

    >
    Don Williams wrote:
    > Hi Ricardo,
    >
    > There is a new API that allows you to dissociate the printer... that is by default not checked on in the Report file.
    >
    > Try setting it to true in your app and test again:
    >
    >             // new API added to allow changing printing options
    >             newOpts.DissociatePageSizeAndPrinterPaperSize = true;
    >
    > Search the Object Browser for how to use it.
    >
    > Thank you
    > Don
    Don (or anyone else),
    I try to get to the DissociatePageSizeAndPrinterPaperSize but I can't figure out how to access it.
    I use CR 2008 with Visual Studio 2005, Visual Basic. My goal is to get an unrestricted right hand side
    of my report, so I can have as many columns as I want. (I have a different thread about this).
    First of all: If I search DissociatePageSizeAndPrinterPaperSize in the Object Browser, it can't find it.
    (I have performed an upgrade for CR XI R2 to CR 2008 and it seemingly went well).
    Here is what I do in code (a modified web download for testing):
    Option Strict On
    Imports CrystalDecisions.CrystalReports.Engine
    Imports CrystalDecisions.Shared
    Partial Class _Default
        Inherits System.Web.UI.Page
        Private rpt As ReportDocument
        Private exportPath As String
        Private myDiskFileDestinationOptions As DiskFileDestinationOptions
        Private myExportOptions As ExportOptions
        Private selectedNoFormat As Boolean = False
        Private Sub ConfigureCrystalReports()
            rpt = New ReportDocument()
            Dim reportPath As String = Server.MapPath("Hierarchical Grouping.rpt")
            rpt.Load(reportPath)
            Dim myPrintOptions As CrystalDecisions.ReportAppServer.ReportDefModel.PrintOptions = _
                          CType(rpt.ReportClientDocument.PrintOutputController.GetPrintOptions(), _
                          CrystalDecisions.ReportAppServer.ReportDefModel.PrintOptions)
            Dim newPrintOptions As CrystalDecisions.ReportAppServer.ReportDefModel.PrintOptions = myPrintOptions.Clone(True)
            Dim newMargins As CrystalDecisions.ReportAppServer.ReportDefModel.PageMargins = newPrintOptions.PageMargins
            newPrintOptions.PageMargins = newMargins
            newMargins.Right = 1000
            'newPrintOptions.PaperSize = CrystalDecisions.ReportAppServer.ReportDefModel.CrPaperSizeEnum.crPaperSizePaperA3
            ' newPrintOptions.PaperOrientation = CrystalDecisions.ReportAppServer.ReportDefModel.CrPaperOrientationEnum.crPaperOrientationLandscape
            rpt.ReportClientDocument.PrintOutputController.ModifyPrintOptions(newPrintOptions)
            myCrystalReportViewer.ReportSource = rpt
        End Sub
    This prints a wider page on-screen than without the code, so it is an improvement. Still, I would like to go
    further, and the DissociatePageSizeAndPrinterPaperSize seems to be promising.
    Can you tell me how to set it in the context above?
    A little observation: When my newMargins.Right gets the value 145, the output is a narrow page.
    When it is set to 146, it jumps to a wider page.
    Setting the PageContentWidth doesn't help any more than the Right option.
    - Kjell Arne

  • The ok button to set master password doesn't work. Why?

    Almost scammed by TeamView supposedly from Microsoft. Went into my computer to fix event logs.Wanted $109.00 now then asked if I had partial payment. So my dilemma is I don't know if what little security I have has been compromised. Not very computer literate.
    Installing Kaspersky today.
    My problem with Mozilla - tried to set master password but ok button doesn't work. Not on at all. What can I do?
    Thank you/

    TeamView is the name of the program that the scammers used, not the company they are from. TeamView is a legit company, but the scammers are most likely not. For future reference, most legit companies will use a paid program for get remote access to your computer.
    When setting a Master Password, your password needs to fill the quality meter before the ''Ok'' button will become active.
    [https://support.mozilla.org/en-US/kb/use-master-password-protect-stored-logins?esab=a&s=master+passowrd&r=3&as=s Here] is an article for more information about the Master Password feature.

  • Feature setting Masterpage & CSS doesn't work when included in SiteTemplate - but does work when activated manually

    Hi,
    I'm experiencing a strange behaviour recently. I wrote a feature with an EventReceiver that sets the masterpage and alternate css file for the current spweb it is activated for. When I activate that feature manually it works like expected. But if I include
    the same feature in a SiteTemplate and it is called during site-creation, it doesn't work. I debugged it and stepped through it. As far as I can tell everything looks right. It sets the masterpage and css file like it should and throws no error. But when the
    site loads in the end, it suddenly still uses the v4.master and no alternateCSS. How can that be?
    If I deactivate the feature then manually and activate it again, it works...
    Here's the feature:
    const string masterPage = MyOfficeProcess.master";
    const string searchMasterPage = "MyMinimal.master";
    const string alternateCss = "MyOfficeAlternateProcess.css";
    public override void FeatureActivated(SPFeatureReceiverProperties properties)
    SPWeb web = (SPWeb)properties.Feature.Parent;
    using (SPWeb topLevelSite = web.Site.RootWeb)
    string relativePath = topLevelSite.ServerRelativeUrl;
    if (!relativePath.EndsWith("/"))
    relativePath += "/";
    if (web.WebTemplate == "SRCHCENTERLITE" || web.WebTemplate == "SRCHCEN" || web.WebTemplate == "SRCHCENTERFAST")
    web.CustomMasterUrl = relativePath + "_catalogs/masterpage/" + searchMasterPage;
    else
    web.MasterUrl = relativePath + "_catalogs/masterpage/" + masterPage;
    web.CustomMasterUrl = relativePath + "_catalogs/masterpage/" + masterPage;
    web.AlternateCssUrl = relativePath + "Style Library/My/" + alternateCss;
    web.UIVersion = 4;
    web.Update();

    Hi,
    You can put a copy of your master page within the template site, use that for the site's master page, and then save the site as a template then check whether it works.
    Here is a similar thread for your reference:
    http://sharepoint.stackexchange.com/questions/30699/featureactivated-not-called-for-site-template
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • Set linesize 99 doesn't work

    Hi,
    I'm doing sql+ call from ksh to unload some formatted data from table like:
    sqlplus -s $username/$oracle_pass@$ORACLE_SID @sql_string.sql
    and here is my sql_string contents:
      set termout off
      set pagesize 0
      set trimspool on
      set headsep off
      set linesize 120
      set feedback off
    spool /tmp/myfile1.dat
    select substr(colml,1,150) from t_merc;
    exitIdeally I'd like to create file with predefined length, and looks like set_linesize option doesn't work for my case, I still get whater length I'm getting from SELECT, I played with substring for testing as you can see, original column size = varchar2(200) and I'm inserting into this column data with diff length. Can I get somehow my output in fixed length format?
    Tx all
    Trent

    Hi, Trent,
    You want SET TRIMSPOOL OFF .
    SET TRIMSPOOL ON means "trim trailing spaces from the right side of the line", exactly what you don't want.
    trento wrote:
    set linesize 120
    select substr(colml,1,150) from t_merc;
    Is that intentional? Do you want the display to wrap if colm1 is over 120 characters?

  • MRUFolders=TRUE - doesn't work any longer?

    Colleagues,
    I've got trouble with MRUFolders option on my PC... It doesn't work any longer just for me or for everyone?
    LabVIEW 8.6f1 on WinXP Prof SP3.
    can someone else check it for me?
    Thank you,
    Andrey.

    It's a known bug (CAR 113669)
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Archivelink, OAOR, setting viewer inplace doesn't work for class name PREL

    Hello,
    I use archivelink. I configured repository (OAC0) using HTTP content server. I add protocol HTTP to configuration. In OAOR transaction I can see a documents stored by OAWD transaction. In OAG1 transaction I set option Include ECL Control. When I activated in-place option in OAOR transaction. I can view document from class name for example PICTURES in inplace viewer but when I want to view a documents from a class PREL the viewer is open in new window. The area for a viewer i OAOR transaction is empty. I want to view image TIF documents joined to PREL class using inplace function. What am I doing wrong? How can I resolve this problem? Any suggestions?
    My operating system: Windows XP. SAP system: SAP R/3 Enterprise 4.7. SAP GUI: for Windows in version 720.
    Regards
    Kaz

    Hi Ravindra
    I think this is exactly part of the problem. A lot of people think that SDN is here to provide learnings to consultants when in reality, the purpose of this is not to help newbies or potential consultants learn, but to provide the best answers to problems for customers. The idea is not that consultants should have the opportunity to post answers to questions and be corrected if they are wrong, the purpose is for consultants to post answers to questions when they are sure they are right. Yes, they won't be right all the time, but they should at least be sure about it, rather than guessing.
    I also don't think people are fully aware of the problems their answers create. As an example, I cringe every time I see someone ask how to do an object link to a purchase order. The reason for this is because some new consultant is always going to post the way to do it. The reason this is a problem is that SAP DMS should not be used for invoices, so in effect, all they are doing is giving the consultant/customer a work around to solve the problem in the wrong way. This may not seem like an issue, but the cost implications of doing is are astronomical when the company builds an entire solution on SAP DMS, including workflow, and then has to re-migration this solution to the correct area in a couple of years when they find out. In reality, this little post could cost a couple a couple of hundred thousand dollars. The roll on effect is even more damaging, because they get given points for the correct answer, so the next time they post exactly the same thing. Other people see the post and before you know it, there are 100 customers out there who have implemented the wrong solution to solve a problem and nobody knows why.
    As another example, I sometimes see someone suggested a user reinstall a content server without knowing the nature of the problem. There are cost implications to this advice, particularly where the basis skills are provided by a third party. In some cases, company X may provide SAP DMS skills while company Y provides basis. When he tells the basis consultant to reinstall the content server, the cost is on the company, not on the consultant.
    This problem often stems from a lack of knowledge on the consultants side because they are self taught and therefore haven't bothered to understand the basic architecture behind content management in SAP. This means they don't understand what documents should be stored where and see SAP DMS as a total solution to solve all problems. This is one of the reasons why SAP is pushing to stop people posting beginner questions on SDN where the consultants haven't bothered to attend training because its the customer that suffers, not the consultant. If the consultant learns the correct way later, it doesn't affect him, the customer on the other hand has a solution built in the wrong area of SAP that doesn't support growth or expansion of technologies because they aren't integrated into that area.

  • Dynamically setting column width doesn't work all the time

    I wanted to dynamically set the width of a column in a JTable to be half of the width of a another column. This should happen whenever the frame is resized. But somehow I need to tell this twice to Java. If I don't then sometimes the column width isn't set new.
    Is this a Java bug or what?
    public void componentResized(ComponentEvent ce)
         try
              ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMaxWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
              ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMinWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
              // Again, or it won't work:
              ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMaxWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
              ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMinWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
         catch(SQLException e)
    }

    Is it possible that your call to
    ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMinWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
    is altering the response created by
    ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMaxWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
    ? Have you tried calling them once but in the other order? Or just calling the "setMaxWidth" call twice and leaving out the second "setMinWidth"?
    Good luck... :)

  • ABAP SET LOCAL LANGUAGE doesn't work

    Hello Community,
    actually i try to work in a ABAP report with the SET LOCAL LANGUAGE
    statement to change the text environment on the fly to an other
    language. In the debugger i can see that the SY-LANGU is changed to the
    correct country but the messages are in the wrong language...
    i also set the profile parameter  install/collate/active = 1
    I created a small testprogramm:
    REPORT  Z_STEFAN_TEST_002 MESSAGE-ID sabapdocu.
    SET COUNTRY 'US'.
    SET LANGUAGE 'EN'.
    SET LOCALE LANGUAGE 'E'.
    MESSAGE i014.
    When i logon with language DE and start the programm, the messages are
    also in DE and not in EN.
    So can you help me to find a solution?
    best regards,
    Stefan

    Hi Stefan,
    with set locale/language you can set only language environment for text-elements, headers etc...
    I don't know about similar simple solution for messages, but you can load message directly from database table ...
    DATA: l_text TYPE natxt.
    SELECT SINGLE text FROM t100
      INTO l_text
      WHERE sprsl = 'E' AND
      arbgb       = 'SABAPDOCU' AND
      msgnr       = '014'.
    MESSAGE l_text TYPE 'I'.
    Regards
    Matus

  • Photosmart c4580 windows 7 - set up CD doesn't work for Win 7!!!

    Hello,
    I've got my Photosmart c4580  for a while know, I still think it might be possible to get it wirelesse.
    The CD that was sold with it to set up the wifi connection does not work for Windows 7!!! Any idea, what I could download instead? All drivers are updated.
    Many thanks indeed,
    Caroline

    You need to download and install the full feature software and drivers for Win 7 here. http://h10025.www1.hp.com/ewfrf/wc/softwareCategory?os=4062&lc=en&cc=us&dlc=en&sw_lang=&product=3418... Now try.
    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!

  • StoreVarrayAsTable="true" doesn't work

    However, setting maintainOrder="false" does cause the varray for that element to be stored as a table. Anyone know why?

    Sorry! Using storeVarrayAsTable doesn't produce table TYPES. Using maintainOrder does.

  • "Show view option" and "set as default" doesn't work

    Hello,
    I have my own settings in viewing finder items (like most of the users). Unfortunately those setting don't apply to iDisk folders, even after using "set as default" in "Show view option". There is any solution for this?
    Thanks in advance for help.

    Post to the MobileMe iDisk forum.

Maybe you are looking for