Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Event ExportButtonClicked doesn't fire :(

Status
Not open for further replies.

Gennady

Programmer
Nov 13, 2000
12
0
0
CA
May be somebody knows. VB code:

Private CrystalReportView As CRPEAuto.View
Private WithEvents WindowView As Window

Set WindowView = CrystalReportView.parent

Event WindowView_RefreshButtonClicked -> fired
Event WindowView_CloseButtonClicked -> fired
....
Event WindowView_ExportButtonClicked -> didn't fired

Why?!!!!
 
Hi there;

Can you tell me what version of Crystal reports you are using? Check that all of the export dlls are on the machine if this is not the development machine.

If this doesn't help, can you give more details on what you mean by "Didn't Fire"?



E. McEvoy
Crystal Reports Consultant
 
Dear Sir/Madam

I have CR 8.0. And all export dlls exist. I can export ready-made report to Exel and so on.

Imagine that I want write to log time when user trying to print my report. I declare

Private CrystalReportView As CRPEAuto.View
Private WithEvents WindowView As Window

and write sub

Private Sub WindowView_PrintButtonClicked(useDefault As Boolean)
LogReport CurrentTime
End Sub

When user click on "Print" button event PrintButtonClicked fire and all is Ok.

But I want to write to log when user export my report.
I wrote sub like previous.

Private Sub WindowView_ExportButtonClicked(useDefault As Boolean)
LogReport CurrentTime
End Sub

But when I clicked on export button - nothing happened (exept export itself) - event didn't fired...

Sorry about bad English.

 
Dear Sir/Madam

I have CR 8.0. And all export dlls exist. I can export ready-made report to Exel and so on.

Imagine that I want write to log time when user trying to print my report. I declare

Private CrystalReportView As CRPEAuto.View
Private WithEvents WindowView As Window


and write sub

Private Sub WindowView_PrintButtonClicked(useDefault As Boolean)
LogReport CurrentTime
End Sub


When user click on "Print" button event PrintButtonClicked fire and all is Ok.

But I want to write to log when user export my report.
I wrote sub like previous.

Private Sub WindowView_ExportButtonClicked(useDefault As Boolean)
LogReport CurrentTime
End Sub


But when I clicked on export button - nothing happened (exept export itself) - event didn't fired...

Sorry about bad English.

 
Hi there.

Sorry for not replying right away, have been trying to get more information to help with your issue. Unfortunately, I have not found any information. If you place a break in your code here, does it ever go into this event? I will keep looking on what we can do to find this out, it is a strange one.

talk to you soon E. McEvoy
Crystal Reports Consultant
 
Gennady: Try testing your code with the following:

Private Sub windowEvs_ExportButtonClicked(useDefault As Boolean)
'executed when export button clicked - test using default and _
'not using default behaviour
If def Then
'test for default behaviour:
MsgBox "Window ExportButtonClicked event" & Chr(13) & _
Chr(13) & "Parameters:" & Chr(13) & "useDefault: " & _
useDefault & Chr(13) & Chr(13) & "Export dialog should appear"
Else
'test for no default behaviour:
useDefault = False
MsgBox "Window ExportButtonClicked event" & Chr(13) & _
Chr(13) & "Parameters:" & Chr(13) & "useDefault: " & _
useDefault & Chr(13) & Chr(13) & "Export dialog should NOT appear"
End If
End Sub

This should enable you to prove whether or not your code is acting as you expect David C. Monks
david.monks@chase-international.com
Accredited Seagate Enterprise Partner
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top