Hello all!<br>
<br>
I am attempting to write a very simple program. I have a list box filled with report names. If the user single clicks on one of these, I would like to give them a "preview" of the report in a rich text box. The full report is a Crystal report, which I have run a portion of and exported the results to an .rtf file. If I pull up the .rtf file in Word, it looks fine, but when it shows up in VB, all the headings are left justified, one on top of the other, and most of the data out to the right is gone. My code to fill the rich text box is:<br>
<br>
rtbRptSample.LoadFile rptsample <br>
<br>
where rptsample is the .rtf file name. Would the CRViewer work better for this? Keep in mind, I don't want to have to "run'' the report in order to get the preview. Also, some of the reports are portrait and some are landscape (in case this makes a difference). I do have the scroll bars set to both for the rich text box.<br>
<br>
Many thanks in advance!!<br>
Michelle
<br>
I am attempting to write a very simple program. I have a list box filled with report names. If the user single clicks on one of these, I would like to give them a "preview" of the report in a rich text box. The full report is a Crystal report, which I have run a portion of and exported the results to an .rtf file. If I pull up the .rtf file in Word, it looks fine, but when it shows up in VB, all the headings are left justified, one on top of the other, and most of the data out to the right is gone. My code to fill the rich text box is:<br>
<br>
rtbRptSample.LoadFile rptsample <br>
<br>
where rptsample is the .rtf file name. Would the CRViewer work better for this? Keep in mind, I don't want to have to "run'' the report in order to get the preview. Also, some of the reports are portrait and some are landscape (in case this makes a difference). I do have the scroll bars set to both for the rich text box.<br>
<br>
Many thanks in advance!!<br>
Michelle