How to enable network printer selection button at crystal report viewer
Hi all
How to enable the network printer selection window button at crystal report viewer ?
Thanks for help
Re: How to enable network printer selection button at crystal report viewer
Re: How to enable network printer selection button at crystal report viewer
Thanks rob for fast reply
my report version is CR 8.5
Re: How to enable network printer selection button at crystal report viewer
Re: How to enable network printer selection button at crystal report viewer
Thanks Rob,
Actually i coded
vb Code:
Report.PrinterSetup Me.hwnd
Before you provide me the code above.
It is possible to add printer setup button at toolbar in CRviewer ?
Re: How to enable network printer selection button at crystal report viewer
Not sure but I used to do it from a standard form menu.
Re: How to enable network printer selection button at crystal report viewer
Hi Rob,
I try to use your suggested method to add printer select at form menu with the code you were provided. However, I found a problem. The printed out paper is blank if I bring up CR's Print Setup dialog box and auto print after printer select.In the other way, i try print the same page with default print button it is work fine. How to solve the problem ?
Another questions.
After i loaded report from database data, it is work fine for first time. The second time and after i can't load the data from database . The page will left empty. I solved the problem by put a timer and call refresh button after 1.5 sec. The problem solved but seem like not a proper solution.
Notes : I'm using vb designer to load report.Thus, I do not have source file of crystal report.
Thanks for help ~
Re: How to enable network printer selection button at crystal report viewer
The first argument in SelectPrinter is the driver to use. Did you specify this? Did you notice how I have it setup in my code to save the settings once print setup is done so it can be reused to print.
If you dont have CR then it will be more difficult to debug or make mods to the report.
Re: How to enable network printer selection button at crystal report viewer
Actually i can print out the papar. But the paper is blank .... do not have any record.
My computer contains crystal report. Just i not design the report using crystal report IDE. I add the CR from vb IDE directly.
Re: How to enable network printer selection button at crystal report viewer
Problem Resolved for 1st question
Solution
This is my own mistake.
vb Code:
Private Sub CRViewer1_PrintButtonClicked(UseDefault as Boolean)
Report.PrinterSetup Me.Hwnd
End Sub
For 2nd Question I still do not know how to solve the problem.
Re: How to enable network printer selection button at crystal report viewer
Quote:
Originally Posted by nUflAvOrS
For 2nd Question I still do not know how to solve the problem.
This one?
Quote:
Originally Posted by nUflAvOrS
After i loaded report from database data, it is work fine for first time. The second time and after i can't load the data from database . The page will left empty. I solved the problem by put a timer and call refresh button after 1.5 sec. The problem solved but seem like not a proper solution.
Notes : I'm using vb designer to load report.Thus, I do not have source file of crystal report.
Re: How to enable network printer selection button at crystal report viewer
Post your ReportSource setup code.