|
-
Dec 6th, 2007, 07:53 AM
#1
Thread Starter
Hyperactive Member
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
Where there is no hope, there can be no endeavor.
There are two ways of rising in the world, either by your own industry or by the folly of others.
-
Dec 6th, 2007, 07:59 AM
#2
Re: How to enable network printer selection button at crystal report viewer
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Dec 6th, 2007, 08:00 AM
#3
Thread Starter
Hyperactive Member
Re: How to enable network printer selection button at crystal report viewer
Thanks rob for fast reply
my report version is CR 8.5
Where there is no hope, there can be no endeavor.
There are two ways of rising in the world, either by your own industry or by the folly of others.
-
Dec 6th, 2007, 08:05 AM
#4
Re: How to enable network printer selection button at crystal report viewer
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Dec 6th, 2007, 08:22 AM
#5
Thread Starter
Hyperactive Member
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 ?
Where there is no hope, there can be no endeavor.
There are two ways of rising in the world, either by your own industry or by the folly of others.
-
Dec 6th, 2007, 08:24 AM
#6
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.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Dec 7th, 2007, 01:31 AM
#7
Thread Starter
Hyperactive Member
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 ~
Where there is no hope, there can be no endeavor.
There are two ways of rising in the world, either by your own industry or by the folly of others.
-
Dec 7th, 2007, 02:37 AM
#8
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.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Dec 7th, 2007, 03:29 AM
#9
Thread Starter
Hyperactive Member
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.
Where there is no hope, there can be no endeavor.
There are two ways of rising in the world, either by your own industry or by the folly of others.
-
Dec 7th, 2007, 05:00 AM
#10
Thread Starter
Hyperactive Member
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.
Where there is no hope, there can be no endeavor.
There are two ways of rising in the world, either by your own industry or by the folly of others.
-
Dec 7th, 2007, 09:13 AM
#11
Re: How to enable network printer selection button at crystal report viewer
 Originally Posted by nUflAvOrS
For 2nd Question I still do not know how to solve the problem.
This one?
 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.
-
Dec 7th, 2007, 10:03 AM
#12
Re: How to enable network printer selection button at crystal report viewer
Post your ReportSource setup code.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|