Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Export Button

Posted on 2003-10-24
3
Medium Priority
?
401 Views
Last Modified: 2010-08-05
Hello,
      I am using crystal reports 9 with VB6. My question is “ Can I over write export button of crystal report so that when ever user click on that file automatically save on a predefine location”. Thanks in advance. With regards fazi
0
Comment
Question by:mfazi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 101

Accepted Solution

by:
mlmcc earned 75 total points
ID: 9615346
Does it have a click event?  Have you tried putting code in say just a Message Box to see if it overrides the normal action?

IN mine the viewer has an ExportButtonClicked event.  

I just did this

On the form with viewer I added code for the viewer ExportButtonClicked event

Private Sub crViewer_ExportButtonClicked (UseDefault as Boolean)

  msgbox "Here"
  UseDefault = False

end sub

I got the message box but no prompt for the export.  Without the last line I got the message box and then the start of the export with a prompt for the file type.

mlmcc
0
 

Author Comment

by:mfazi
ID: 9618797
Yes it works fine. It sloves my one problem  but other part of the  problem still not slove which " What code i need to wrtie so that it saves the file at predefine location and in predefine format." In the above example which you tell me i need to write some thing so that it makes the file without showing the export dailog box. wih best regads fazi
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 9624909
I'll try to find my exporting code in the morning.

mlmcc
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

705 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