Solved

Export Button

Posted on 2003-10-24
3
398 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 25 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
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…

630 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