Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 342481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T10:48:29+00:00 2026-05-12T10:48:29+00:00

Afternoon Developers, I have a problem that’s beginning to get on my wick. I

  • 0

Afternoon Developers,

I have a problem that’s beginning to get on my wick. I have looked through google and Crystal Reports help and am still stuck for a solution.

We have created an XSD complete with full information about data-types and the like.
A report has been created that is linked to this XSD (using a c# class generated using Microsoft’s xsd.exe SDK) and uses the field information to fill the report.

From c# we are instantiating this report and populating it with an XML file that conforms to this XSD and has been validated against it.

Now the problem is that although everything validates without errors (Crystal formulas etc) and compiles fine, when we run the application and attempt to populate the Crystal Report the Report seems to loose all knowledge of the data-typing.

Formulas such as

if ({LetProperty.lp_buildings_selected} = true) then
    "Standard Cover With Accidental Damage Cover"
else
    "Standard Cover";

come back with “A string is required here.” error. This formula should run fine as the field referenced is a Boolean Data-Type, Crystal Reports knows this in design time.

To get it to work we have been needed to cast the field ToText and compare it to ‘true’.
This is a simple work around but we will be creating many reports and don’t want to twist code that should work into ‘Fudged’ messy code that will work.

Can anybody tell me if I am missing something glaringly obvious or if there is something that we need to set as this is confusing us immensely!

Many Thanks all.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T10:48:29+00:00Added an answer on May 12, 2026 at 10:48 am

    Right,

    I just wanted to let anyone know how we solved this if anyone ever gets stuck in the same situation.

    What we needed to do was before populating the created dataset from the Xml file (to pass to the Report) we read the Xsd into the Dataset so that it was then strong typed and contained all the Data-typing information also.

    I don’t know why crystal doesn’t keep all the Data-Type information that was assigned to it when we created it and linked it to the Xsd but this is how we got around that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 250k
  • Answers 250k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Decided to use Divx webplayer, as it does avi, divx,… May 13, 2026 at 9:20 am
  • Editorial Team
    Editorial Team added an answer Yes, this is true - the pages under /_layouts/ folder… May 13, 2026 at 9:20 am
  • Editorial Team
    Editorial Team added an answer The only solution is to write a custom build task,… May 13, 2026 at 9:20 am

Related Questions

Afternoon Developers, I have a problem that's beginning to get on my wick. I
We have recently started using git and had a nasty problem when someone committed
Good evening/morning/after/noon. I have an ASP.net 3.5 website and I am using vb.net in
I work at a smallish web agency (3 programmers, 2 project managers), we mostly
Preamble To build dynamic web-sites, we have to master at least four languages: HTML

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.