|
-
Apr 20th, 2005, 04:39 AM
#1
Thread Starter
New Member
SelectPrinter method
Hi guys,
when i use SelectPrinter method i need to catch the user response of the selection printer form (e.g. The Ok button or the Undo button ).
Is it possible ??????
thanks
-
Apr 20th, 2005, 10:29 AM
#2
Re: SelectPrinter method
Which version of Crystal? If 8.5, then you need to install a Hot Fix - available on their website.
-
Apr 20th, 2005, 06:04 PM
#3
Re: SelectPrinter method
Welcome to the Forums, goken77.
I have an example in my signature - VB6/CR Print Setup Dialog Ex.
Brucevde, whats the hotfix suposed to fix? I have 8.5 Developer and have no issues with the SelectPrinter method.
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 
-
Apr 21st, 2005, 03:52 AM
#4
Thread Starter
New Member
Re: SelectPrinter method
I have version 9
thanks for the immediate reply
-
Apr 21st, 2005, 10:25 AM
#5
Re: SelectPrinter method
Rob, there is no way to know if the user clicked the cancel button on the print dialog screen. Applying the Hot Fix/Service Pack gives you this functionality.
I don't have Crystal on this PC and can't remember all the details. I will try to post more information today.
-
Apr 21st, 2005, 10:37 AM
#6
Re: SelectPrinter method
I think the only way is by checking the Report.PrinterName return but I cant remember correctly. I could do a
quck test today. I'll post back.
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 
-
Apr 21st, 2005, 10:44 AM
#7
Re: SelectPrinter method
Only when the user makes a change and presses the ok button will the report printer properties will be
populated (first time print setup is set). If they press cancel and dont make changes will the report printer properties
will be as they previously were. So, the answer is yes and no.
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 
-
Apr 21st, 2005, 12:01 PM
#8
Re: SelectPrinter method
Sorry guys I steered you wrong. It was a new printer setup method called PrinterSetupEx that gets added with the Hot Fix.
-
Apr 21st, 2005, 12:05 PM
#9
Re: SelectPrinter method
But this new method allow the capturing of the cancel button, correct?
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 
-
Apr 21st, 2005, 03:54 PM
#10
Re: SelectPrinter method
Yes. Simple code is
If ReportObject.PrinterSetupEx(0) = 1 Then
'User Cancelled
End If
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
|