Solved

Can I have multiple Report Comments special fields and if so, how do i access them from vb?

Posted on 2008-10-27
4
339 Views
Last Modified: 2013-11-07
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.ReportComments, 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...
0
Comment
Question by:silemone
  • 2
  • 2
4 Comments
 
LVL 26

Accepted Solution

by:
Kurt Reinhardt earned 500 total points
ID: 22858268
To the best of my knowledge, no.  Special comments are populated in the Document Properties (File|Summary Info in the standalone version of Crystal Reports) and there's only one comments section per report.The Document Properties aren't only used in Crystal Reports, but by your OS, too.  For example, if you mouse over a report in your Windows Explorer or examine it's properties, you'll see what was entered in the report (just like you'd see in properties for a Word document).
0
 
LVL 21

Author Comment

by:silemone
ID: 22870619
good rhinok...thanks for answering...so if this is the case,  in your opinion, or factual if you can find fact, why are you allowed to add more than one Reports Comments fields and why is one given objectName:  ReportComments1 and ReportComments2...Since you were the only person to answer, I'm giving you the points anyway, but any thoughts on this last question?
0
 
LVL 26

Expert Comment

by:Kurt Reinhardt
ID: 22870664
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.
0
 
LVL 21

Author Closing Comment

by:silemone
ID: 31510452
Thanks for your assistance...
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

707 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now