silemone
asked on
Can I have multiple Report Comments special fields and if so, how do i access them from vb?
Summary:
I have a listbox that i can do multiselects from. I also have a Crystal Report, I'm using the special field 'Report Comments(type string)' since it can hold a string of length 511 as opposed to a textfields which can only hold a string of 255.
The Problem:
If a user picks too many selections, then i get the error: 'Buffer to small to hold string or missing null byte'. So what I want to do is: have multiple Report Comments on the field so that when one is filled at 511, the overflow goes into the next ReportComments. I will do this with a for loop...I will change string to array string, then I will % by 511...otherwise add to next empty ReportComments field. I noticed that the Report Comments fields do have names such as Comments1, Comments2, Comments3, etc...however, when I try to access them from rpt.SummaryInfo.ReportComm ents, i am not allowed to grab the fields by their name and only the first Report Comments is filled.
The Question:
Is there a way to have multiple report comments where they are accessible by either index or name with VB or C#? Thank in advance for your help...
I have a listbox that i can do multiselects from. I also have a Crystal Report, I'm using the special field 'Report Comments(type string)' since it can hold a string of length 511 as opposed to a textfields which can only hold a string of 255.
The Problem:
If a user picks too many selections, then i get the error: 'Buffer to small to hold string or missing null byte'. So what I want to do is: have multiple Report Comments on the field so that when one is filled at 511, the overflow goes into the next ReportComments. I will do this with a for loop...I will change string to array string, then I will % by 511...otherwise add to next empty ReportComments field. I noticed that the Report Comments fields do have names such as Comments1, Comments2, Comments3, etc...however, when I try to access them from rpt.SummaryInfo.ReportComm
The Question:
Is there a way to have multiple report comments where they are accessible by either index or name with VB or C#? Thank in advance for your help...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Unfortunately, I don't know the answer to that question, since I have little experience with the .net/vb versions of Crystal Reports. I'd hold off giving points and see if we can get some of the developer-centric experts like Ido or emoreau to reply.
ASKER
Thanks for your assistance...
ASKER