Crystal Report Designer component - How do I add a button 
Author Message
 Crystal Report Designer component - How do I add a button

I have a program using about 20 reports with the free downloaded Crystal
report designer component. I need to offer the user the ability to show the
report on screen, then either print or export to a disk file.

When you run the report, the designer fills the form (even if height and
width are specified), so there is nowhere to display a button allowing
export. (There is a print button on the form). I have tried adding a button
to the form and changing the z order but it never appears.

I can add report.export True before calling the report and then get the
requester asking how it is to be exported, but in this case, it is not shown
on screen.

Anyone any ideas.

Regards - Mike Simpson.



Wed, 04 Jul 2001 03:00:00 GMT  
 Crystal Report Designer component - How do I add a button
I have tried the same, but now I'm using two separate functions, one for
displaying and eventually printing the report and one for export. It's very
annoying to code the same thing twice, but I haven't found anything better.

 +++++++++++++++++++++++++
|  Robert Rybaric
|  PRO-INFO system, s.r.o.
|  Nitra, Slovakia

|  PRO-FIT for Windows
|  http://www.pro-fit.sk
+++++++++++++++++++++++++


Quote:
>I have a program using about 20 reports with the free downloaded Crystal
>report designer component. I need to offer the user the ability to show the
>report on screen, then either print or export to a disk file.

>When you run the report, the designer fills the form (even if height and
>width are specified), so there is nowhere to display a button allowing
>export. (There is a print button on the form). I have tried adding a button
>to the form and changing the z order but it never appears.

>I can add report.export True before calling the report and then get the
>requester asking how it is to be exported, but in this case, it is not
shown
>on screen.

>Anyone any ideas.

>Regards - Mike Simpson.



Wed, 04 Jul 2001 03:00:00 GMT  
 Crystal Report Designer component - How do I add a button
Thanks for that response Robert, For your information, I now find that
although a button is not possible, it is possible to add a Menu to the form
with the command report.export True
Which will work OK. Only problem I now have is that one of my reports
dynamically includes a photograph of each person reported on. This comes out
fine on screen, but if exported to HTML I get the same photograph for
everyone !!

Mike Simpson.

Quote:

>I have tried the same, but now I'm using two separate functions, one for
>displaying and eventually printing the report and one for export. It's very
>annoying to code the same thing twice, but I haven't found anything better.



Thu, 05 Jul 2001 03:00:00 GMT  
 Crystal Report Designer component - How do I add a button
Hi Mike,

I'm using VB6 and Crystal Reports 7 so this might be different in your case...
When you use the CRDC, you view the report via the CRViewer right?
Well the viewer has options on it such as
-EnablePrintButton
-EnableProgressControl

well there is one called EnableExportButton which allows you to
export the report after you have viewed it.. Hope I haven't
misunderstood your question/problem and this has helped..
Good luck!!

Darcy "Why was it pouring rain in the middle of January? (In Ottawa, Canada)"
Peters
Don't get this weather at all.....

Quote:

> I have a program using about 20 reports with the free downloaded Crystal
> report designer component. I need to offer the user the ability to show the
> report on screen, then either print or export to a disk file.

> When you run the report, the designer fills the form (even if height and
> width are specified), so there is nowhere to display a button allowing
> export. (There is a print button on the form). I have tried adding a button
> to the form and changing the z order but it never appears.

> I can add report.export True before calling the report and then get the
> requester asking how it is to be exported, but in this case, it is not shown
> on screen.

> Anyone any ideas.

> Regards - Mike Simpson.



Sun, 08 Jul 2001 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Crystal Reports 6 Report Designer Component

2. Crystal Reports Report Designer Component

3. Crystal Report Designer Component (Previewing a report.)

4. Crystal Reports "Report Designer Component"

5. Crystal Report Designer Component (Previewing a report.)

6. Adding several reports to vb app with crystal report 6.0 designer

7. Help: VB6 Crashes after adding Crystal Report 6.0 Designer report

8. crystal Report designer component question?

9. No Crystal reports in Component Designer

10. Seagate Crystal Report Designer Component

11. Crystal Reports Designer Component

12. VB 6 / Crystal Report Designer Component (7.0)

 

 
Powered by phpBB® Forum Software