The textobject cannot add formula field which type is not string

I am working on the crystal report 2008 sp2. I have a question about the textobject inner element problem. There is a formula named carryover, the formula content like this Shared NumberVar carryTotal. When I add this formula into a textobject at designer side, everything is okay. However, when I add it at SDK side, the application will raise error which triggered by CrystalDecisions.CrystalReports.Engine.ReportDocument's SaveAs function. I guess it is the type mismatch problem. So I modify the formula content to Shared NumberVar carryTotal; cstr(carryTotal), finally, it work. I want to know whether there is a way to resolve it rather than change formula or not?

The main code like this,
CrystalDecisions.CrystalReports.Engine.ReportDocument boReport = New CrystalDecisions.CrystalReports.Engine.ReportDocument();
boReport.Load("Report1.rpt")
cdRptDoc= boReport.ReportClientDocument;
Section section = cdRptDoc.ReportDefinition.Areas[0].Sections[0];
TextObject textobject = new TextObject();
Paragraphs paragraphs = new Paragraphs();
Paragraph paragraph = new Paragraph();
ParagraphElements paraElements = new ParagraphElements();
ParagraphFieldElement paraElement = new ParagraphFieldElement();
paraElement.DataSource = "{@carryover}";
paraElements.Add(paraElement);
paragraph.Add(paraElements);
paragraphs.Add(paragraph);
textobject.Paragraphs = paragraphs;
cdRptDoc.ReportDefController.ReportObjectController.Add(textobject, section ,-1);

Similar Messages

  • Cannot add form fields in document

    Acrobat Pro version 9.1.2
    Windows XP SP 3
    I have a document that I cannot add form fields to. When I try I get a message that says "You cannot edit the file as a form due to its security settings.
    When I go to Advanced->Security->Show Security Properties. The security method is set to No Security and everything is "Allow" under the Document Restrictions Summary.
    Where is there a security issue?

    Lori,
    How did you identify the PDF/A option? I am just curious for my future reference. I could not find it.
    ==================
    Rupey,
    The fonts are not embedded and that may also be something to address. A lot of these issues may be related to the 3rd party product used to create the PDF.

  • How to use the distinct key in formula field in SAP Crystal Reports

    I want to use the distinct key in formula field in SAP Crystal reports.
    When i'm using it shows an error.
    Please suggest me....

    Hi,
    Use DistinctCount keyword directly for your calculation instead of count(distinct(....
    Alternatively, if you want to avoid duplicate records, under "File" > "Report Options" make the 'Select Distinct Records' as True.
    Thanks,
    Raghavendra

  • The disk cannot be partitioned because some files could not be moved

    Hi guys,
    I removed my bootcamp partition to clear up some temp space and expanded the Mac OS partition up to the fullest size again using Boot Camp Assistant.
    The first thing I noticed was that when I restart to computer gets stuck on an ugly BIOS looking screen with a message something along the lines of "no bootable partitions could be found", Easy way round is to hold down the ALT key which brings up a sole Mac OS button to boot from.
    Now I try and make a little partition again using the assistant and it won't let me because it says "The disk cannot be partitioned because some files could not be moved". It then advises to back up the disk and use Disk Utility to format it as a single Mac OS Extended volume before restoring again.
    Is there anyway to fix this lot without going through doing this.
    Will Boot Camp Restore re-instate the OS as well as my user files?

    I had a similar problem when I undid my boot camp partition to make it larger. I tried to make it 50 GB which gave me the same error about the files not being able to be moved. I didn't get the "no bootable partitions" error. I changed the size of the partition to 47 GB and ran the boot camp assistant. It stopped while partitioning and I have to force quit to stop it. I restarted the assistant and made the partition a little larger to 48 GB and it partitioned finally. My suggestion is to ry adjusting the size of the partition and see if that allows you to make the partition at least. For you other problem, I'm not sure... From what I gathered from other forums, the drive might be fragmented which causes the partition error. There is no free defragment tool for mac (dunno why) but they exist.

  • I cannot add a printer. It is not listed under default, and does not allow me to add printer.

    I cannot add a printer. It is not listed under default, and does not allow me to a add printer.

    philw
    Try some maintenance actions:
    1) Reset Printing System:
    http://support.apple.com/kb/PH14141
    2) If that doesn't help, repair the hard drive and permissions after booting from the recovery partition:
    http://support.apple.com/kb/ts1417
    (go down to "Try Disk Utility")

  • The driver cannot be installed because it is either not digitally signed or not signed in the approp

    I lost my drivers to my HP deskjet f2179  Printer and when i try to download them from the HP site the process goes
    through to about step 5. It then stops and the following message pops up
    " The driver cannot be installed because it is either not digitally signed or not signed in the appropriate manner."  Is there a way to get around this problem , i do like this printer and would like to keep it if i can. Thank you

    Coming up on 10 months and over 300 views without even a reply. Seems to have stopped everyone dead in their tracks.
    I'm having this issue currently with an All-In-One after attempting to install a major software update.
    Did you ever determine what this issue is, and the workaraound?

  • Why am i getting the message cannot get mail or that i am not connected to the internet what settings do i need to be on

    why am i getting the message cannot get mail or that i am not connected to the internet what settings do i need to be on

    WIFi needs to enabled and you need to be connected to a network. Alternatively, you need Cellular Data to be "on". (Settings>General>Network). But it propably is a problem with your router (at least, it often is with me), provided you are using your private router. Try schutting it off and turning it on again. This usually sorts problems like this out.

  • Cannot add hub-managed content type with external list lookup columns to a list -- Error:Id field is not set on the external data field

    This is a variation on the issue mentioned in this
    post
    We are using SP 2010 Content Hub to manage our content types.  On the content hub we've created a couple of exteranl lists, and then created some site columns as lookups against these lists.  We then added the columns to one of our content types
    and set it to publish.
    After the publishing job executed, I tried adding the content type (which now appears on the subscriber sites) to one of the document libraries on one of the subscriber sites.  When I did that it threw the following error:
    Microsoft.SharePoint.WebControls.BusinessDataListConfigurationException: Id field is not set on the external data field    
    at Microsoft.SharePoint.SPBusinessDataField.CreateIdField(SPAddFieldOptions op)     
    at Microsoft.SharePoint.SPBusinessDataField.OnAdded(SPAddFieldOptions op)     
    at Microsoft.SharePoint.SPFieldCollection.AddFieldAsXmlInternal(String schemaXml, Boolean addToDefaultView, SPAddFieldOptions op, Boolean isMigration, Boolean fResetCTCol)     
    at Microsoft.SharePoint.SPContentType.ProvisionFieldOnList(SPField field, Boolean bRecurAllowed)     
    at Microsoft.SharePoint.SPContentType.ProvisionFieldsOnList()     
    at Microsoft.SharePoint.SPContentType.DeriveContentType(SPContentTypeCollection cts, SPContentType& ctNew)     
    at Microsoft.SharePoint.SPContentTypeCollection.AddContentTypeToList(SPContentType contentType)     
    at Microsoft.SharePoint.SPContentTypeCollection.AddContentType(SPContentType contentType, Boolean updateResourceFileProperty, Boolean checkName, Boolean setNextChildByte)     
    at Microsoft.SharePoint.SPContentTypeCollection.Add(SPContentType contentType)     
    at Microsoft.SharePoint.ApplicationPages.AddContentTypeToListPage.Update(Object o, EventArgs e)     
    at System.Web.UI.WebControls.Button.OnClick(EventArgs e)     
    at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)     
    at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)     
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)    b55297ed-717f-466d-8bdc-297b20344d3f
    I checked the external  content type configuration and it did specify an "id column".  Anyone know if what I am attempting to do is possible and if so, what special configurations are required?
    Thanks

    The issue is not External Content type or external list but the look up column.
    It's not possible to publish a look up column via the Content Type Hub.
    If you need to do this then an alternate way is to use a Managed Metadata column instead, otherwise you will have to implement this via a feature.
    Varun Malhotra
    =================
    If my post solves your problem could you mark the post as Answered or Vote As Helpful if my post has been helpful for you.

  • Cannot add songs bought from ITunes store on my IPad. The reason given is to Run the ITunes in to remove ITune which I do not want to do

    My computer has Microsoft 8 Pavillion g 6.Dolby advanced audio, Altec.
    My I Pad is retina display 32 GB  I have IOS7 and ICloud
    I belong to ITune Store. I can add songs bought from ITunes Store to my computer but I cannot add them to my IPad. The answer given is to Run the ITunes installer which I have had no succeeded
    Florence.

    You don't have any choice but to restore your phone.  If the phone is still working, be sure to back up your contacts first.  Since iTunes can't read your phone you can download the app My Contacts Backup, which will back up your contacts as an email attachment.  Send this email to yourself; you can later open it on your phone and tap the attachment to re-import your contacts if necessary.  When done, click on Restore (on the Summary tab) and let iTunes do its thing.  Be careful to watch the progress information at the top of iTunes as well as your iPhone screen so that you do not interrupt the restore process until it is completes.

  • Not show the right button in input field which data type is date

    My web dynpro has a input field. This input field is mapped with a context attribute which type is datum.
    This field is read only. I want that this field doesn't show the right button to choose the date.
    How do I solve this?
    Thanks

    Hi,
    go to the context of your view,
    to the attribute of your date,
    and set the attribute input help mode to disabled
    grtz,
    Koen

  • Cannot Add new fields to standard QM datasource

    Hi
    I got this erro when I try to add new fields from LBWE.
    Field ZZRFKIMG cannot be selected because of unit field VRKME -> see long text
    Message no. MCEX032
    Diagnosis
    Field ZZRFKIMG cannot be transferred, since its unit field VRKME is either not in the communication structure, or was purposefully excluded from the selection.
    Procedure
    If you have chosen your own field, you must also create a user-defined unit field in the append and use it accordingly.
    How can I resolve it.
    thanks

    Hi,
    My Understanding is that if the field is available in the Pool in LBWE then no need to enhance the datasource.
    In my case the field is available in LBWE though it is ZFIELD (ZZRFKLMG and ZZNETPRC).
    In RSA6 I added the this unit
    ZZMEINS     MEINS     UNIT                                                                           Base Unit of Measure
    ZZWAERK     WAERK     CUKY                                                                           SD Document Currency
    I went back to LBWE and try to add the following Zfieds (ZZRFKLMG and ZZNETPRC) and the error is same.
    Now I try to add the the field directly in the append structure * ZZMC05Q02ITM* but its asking to maintain the ref table and ref field.
    I added ZZMC05Q02ITM as ref table and ZZRFKLMG as ref unit and  I still get errors.
    I am are that if I maintain it in RSA6 then I need to write user exit in CMOD but since it is available in LBWE I want to get it from the pool.
    I have tried this and there was no errors during activation
    ZZRFKLMG     ZZRQE_RFKLMG     QUAN     QMFE     ZZMEINS     Notification quantity in base units
    I gave the table name and Unit.
    Despite adding it, I still get data even though I did not used LBWE pool.
    thanks alot SUV123
    Edited by: Bhat Vaidya on Oct 14, 2009 10:44 AM
    Edited by: Bhat Vaidya on Oct 14, 2009 11:06 AM

  • Cannot add a field to a report

    probably this has been covered extensively, but i guess i'm just unable to find it...MSDE 2003 (7.1.3088) with .NET framework 1.1 (1.1.4322 SP1), Crystal Reports for Visual Studio .NET
    when editing an existing report, that does not have all the fields that are available (using an xsd as a datasource) already being used on the report,,,,,, how do i add a field?????
    i'm just not understanding!
    i see the field in the xsd,
    i see the xsd being used as the datasource for the report,
    i right click where i want the field to be added, and,,,, inser-field is grey'd out.....
    what am i missing?
    /rick

    I am having an issue with this.  We are using Visual Studio .NET 2003 as well as Crystal Reports 8.5 and 9.0.
    Unfortunately, I am tasked with modifying a report that is used in VS 2003, but I cannot get it to open in Visual Studio.  Every time I try to open the report, it instead opens in Crystal 9, and it cannot access the database (claiming that it cannot access crdb_adoplus.dll).
    How can I get it to open in Visual Studio the way it is supposed to?

  • Add formula field in data load rule

    Hello,
    I am trying to import data in Essbase from a txt file. The txt file contains data from an app with 12 dimensions and I want to load it into an app with 13 dimensions (View dimension for YTD is the extra dimension). Is that possible? I was thinking about adding an extra field in the data load rule which I would import as the sum of all other data fields. How would I do that?
    Thank you,
    Adina

    Hi,
    Thank you both for your answers. But what confuses me is this: I created a rules file using a file with 12 columns. I selected the appropriate member for each column in Field Properties, and added the View member in the data load header. Then I get the error message: "This field is also defined in the header definition" for all fields. However, if I don't set the members in Field Properties and just set them in the data load header, I get another error message: "There is an unknown member (or no member) in the field name."
    Can you please help?
    Thank you!

  • Cannot add additional fields to KOMG and KOMPAZ...

    Hello Experts,
    I wantr to add 2 fields to KOMG and KOMPAZ but when I go to SE11 and click on 'APPEND STRUCTURE', there are no
    options there to add new fields. Are there are any other way?
    Thank you guys and take care!

      there are no options there to add new fields
    What do you mean by that?
    It the pop-up there is a CREATE button (at the top, a bit to the right). Button Icon like a A4-paper (standard create button).

  • Can u plz help me with the code to add BWART field to the DS:2LIS_04_P_COMP

    I want to add BWART field from AUFM table to the DS:2LIS_04_P_COMP.
    The AUFM table has key fields as :MBLNR,MJAHR and ZEILE.Can someone plz help with the code to put in the existing function module.I see that both 2LIS_04_P_COMP and AUFM have common field AUFNR process order.
    Plz help ASAP.

    I want to add BWART field from AUFM table to the DS:2LIS_04_P_COMP.
    The AUFM table has key fields as :MBLNR,MJAHR and ZEILE.Can someone plz help with the code to put in the existing function module.I see that both 2LIS_04_P_COMP and AUFM have common field AUFNR process order.
    Plz help ASAP.

Maybe you are looking for