Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Am after stumbling on a major error in my code when dealing with crystal reports, I found that if a name has an appostraphy, then crystal throws the following error:

Error in File C:\DOCUME~1\D2400\ASPNET\LOCALS~1\Temp\temp_dc5b0c65-f99b-49dd-8890-6219bd883c85.rpt: Error in formula <User>. ''Michael O'Donnell'' The remaining text does not appear to be part of the formula. 

 

When I pass values to crystal, I am using FormulaFields. So is there a way to get Crystal to accept the appostraphy or do I have to remove it or replace it with a different character?

 

Mike55.

A Client refers to the person who incurs the development cost.

A Customer refers to the person that pays to use the product.

------

My software never has bugs. It just develops random features. (Mosabama vbforums.com)

Posted (edited)
Try quoting the ' with \

 

i.e.:

 

'Michael O\'Donnel'

 

No luck, crystal is still spotting the ' and throwing a fit. It seems that I will have to settle with replacing the ' with the ` character.

Thanks for your suggest though.

 

Mike55

Edited by mike55

A Client refers to the person who incurs the development cost.

A Customer refers to the person that pays to use the product.

------

My software never has bugs. It just develops random features. (Mosabama vbforums.com)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...