|
-
Sep 30th, 2004, 05:29 PM
#1
How to best talk to Crystal from VB
I've got a customer that will be developing reports in Crystal. They want me to launch them from a VB application that the user has on the desktop for maintaining the database.
This way we can control a "menu" of what Crystal reports are available to each user.
I'm thinking that Crystal saves the reports in .RPT files - so what are the options for actually running the report from within VB? Do we need to know where the .RPT files are? What about any questions the report needs to run - how do they get asked - does Crystal float up a modal box and ask for the parameters?
Once they are running the report, does a Crystal-like screen appear before them - or is that running completely in the back ground? Is it possible for them to change the selection criteria when the report runs? Possible for them to browse out to where the .RPT files are and circumvent the security of our application showing them what reports are available?
Thanks for any help you can offer.
-
Sep 30th, 2004, 05:49 PM
#2
szlamany, what version of CR are they using? If threy are using
the developer version then there is a runtime.hlp file which
describes all the controls, dlls, and references required for each
function used in CR. Yes you do need to know the location of
each report in order to open one. You can directly print a report
from an ADO recordset or use the CR Viewer control to display
the report. There is a parameter collection which you can use to
pass parameters to a report or display a prompt to enter each
parameter. Yes you can change the selectionformula at runtime
or just use an ado recordset and set it as the reportsource.
HTH
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 
-
Oct 1st, 2004, 06:17 AM
#3
Can we remain at the level of simply "supplying" a drop down box of report options (from a table in our DB - storing "name" of report and "location\report.rpt") - then call to Crystal with the .RPT file and have it do the "ask the users questions" and handle the output part?
If we go that route - are they simply in a "report output" mode or can they sneak somehow into design mode, or select a different .RPT file from the one we supplied?
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
|