Click to See Complete Forum and Search --> : URGENT!!open file and print dialog box


mariechristineb
10-28-2003, 04:46 AM
I am using ASP.net & C#
For exporting and printing crystal reports: I have 2 buttons

I want to ask the user where to export the report and what printing options he needs

Thus I need to have open file dialog box and print dialog box like in windows form

How to write a client side javascript that creates for me dialog boxes and get the result in the server side???

Khalid Ali
10-28-2003, 08:22 AM
there is the function
obj.execCommand("SaveAs",file type)
If I rememebr correctly,you canfind docs on this at MSDN...
to open up a print dialogue

window.print()

will do the task

mariechristineb
10-28-2003, 08:46 AM
The window.Print() prints the current page and not the content of my crystal report viewer
and the execCommand also saves the current page html.

I only need to let the user choose printer name for example or choose the diretory in these dialog boxes and take the result. Because I have my own print and export function.

Can I access the Print button or Save button in these dialog boxes and override them?