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

Re: HELP NEWBIE Integrating CR into Visual Basic 2010 pro

$
0
0

Hi William,

 

I would suggest searching MSDN Forums on how to create a list of reports ( could be any file type actually ) and then populate a drop down list box or menu tree. Or even better post the MSDN forum, after all Microsoft wrote VS 2010, I'm sure they have samples that can populate a list box of the file system. In C# to use the Windows Filesystem it looks like this:

 

openFileDialog.Filter = "Crystal Reports (*.rpt)|*.rpt|Crystal Reports Secure (*.rptr)|*.rptr";

//openFileDialog1.Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*";

openFileDialog.FilterIndex = 1;

 

Then to open the report:

 

rpt.Load(rptName.ToString(), OpenReportMethod.OpenReportByTempCopy);

 

So this is not really a part of CR SDK, once a report is selected then it is....

 

Here is one place to look for CR samples, I don't recall if we have one that has a menu option to select a report but good references anyways:

 

NET RAS SDK Samples - Business Intelligence (BusinessObjects) - SCN Wiki

 

Don


Viewing all articles
Browse latest Browse all 9269

Trending Articles



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