Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8581

Re: CR .Net - Getting field values for each section at runtime

$
0
0

Hi Paul,

 

I pasted in the code already to get the object info, you just had to look for it:

 

            case CrReportObjectKindEnum.crReportObjectKindBlobField:
                CrystalDecisions.ReportAppServer.ReportDefModel.BlobFieldObject BlobObj1;
                BlobObj1 = (CrystalDecisions.ReportAppServer.ReportDefModel.BlobFieldObject)rptObj1;

                textBox1 = BlobObj1.Name.ToString();

                textBox1 += " -> ";

                textBox1 += BlobObj1.Name.ToString() + " - ";

                btnReportObjects.Text += textBox1;

                btnReportObjects.Text += "Section Name: " + rptObj1.SectionCode.ToString() + " " + rptObj1.SectionName.ToString() + "\n";

                btnReportObjects.AppendText("ToolTip: " + rptObj1.Format.ToolTipText.ToString() + "\n\n");

                ++flcnt;

                btnCount.Text = flcnt.ToString();

                break

 

And to get the location info use this:

 

btnReportObjects.Text += "Height: " + BlobObj1.Height.ToString();

btnReportObjects.AppendText(" Twips\n");

btnReportObjects.Text += "Width: " + BlobObj1.Width.ToString();

btnReportObjects.AppendText(" Twips\n");

btnReportObjects.Text += "Top: " + BlobObj1.Top.ToString();

btnReportObjects.AppendText(" Twips\n");

btnReportObjects.Text += "Left: " + BlobObj1.Left.ToString();

btnReportObjects.AppendText(" Twips\n");

 

Don


Viewing all articles
Browse latest Browse all 8581

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>