pass string whit Formula field from winForm in VS2003

Posted on 2006-05-13
Medium Priority
Last Modified: 2008-03-17
i have created a report in VS2003 crystal report toll
in the report i have created a Formula and from the winForm i am passing a string to the Formula
every thing is fine and i can see the string in the report

the problem is when i need to pass a big string like 300 character meny lines of words
then i all geting an exsption :

error in formula <@Sicom>
"the string that i tryd to send from the WinForm"
The matching for this string in missing

what do i need to do that the long string will be printed in the report ?
Question by:Tech_Men
  • 4
  • 3
LVL 101

Expert Comment

ID: 16676157
I wonder if you might be running into a limittion of Crystal.

CR 8 was limited to 254 characters in a string.  I wonder if the the passing of a string is still limited.

Is there a limit on strings ini VS 2003?

What code are you using?


Author Comment

ID: 16676827
Hadpasot.PrintPotCustFormcs PotPront = new Employees.Hadpasot.PrintPotCustFormcs();

LVL 101

Expert Comment

ID: 16677458
WHy the double @@?

Why are you passing parameters into the formula?

Unless it changed with .Net formulas are passed in using a different syntax.

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.


Author Comment

ID: 16677732
this is the name of the fourmila fild  : @@ConnMen
in the report

Author Comment

ID: 16677751
maybe i need to use paramter to pass string from textbox into the report in runtime ?

Author Comment

ID: 16678223
if i need to pass text from winForm textbox what is the best wey to do it by formola or by parameters ?>
and how can i do it ?
LVL 101

Accepted Solution

mlmcc earned 2000 total points
ID: 16679204
Check this link.  I believe it has a sample for passing formulas



Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Screencast - Getting to Know the Pipeline

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question