|
-
Jul 27th, 2007, 08:42 AM
#1
Thread Starter
Frenzied Member
how to connect vb6 and crystal reports
I have created an report(i.e sales invoice) in crystal report. I want an application in vb6 which enables user to enter the invoice number and open that particular invoice report(the invoice number is in the format eg. 1 1234)
-
Jul 27th, 2007, 09:08 AM
#2
PowerPoster
Re: how to connect vb6 and crystal reports
===================================================
If your question has been answered, mark the thread as [RESOLVED]
-
Jul 27th, 2007, 09:28 AM
#3
Re: how to connect vb6 and crystal reports
-
Jul 28th, 2007, 12:16 AM
#4
Thread Starter
Frenzied Member
Re: how to connect vb6 and crystal reports
My Crystal Report Version is 8.5
-
Jul 28th, 2007, 12:28 AM
#5
Re: how to connect vb6 and crystal reports
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 
-
Jul 31st, 2007, 05:41 AM
#6
Lively Member
Re: how to connect vb6 and crystal reports
Hello:
I am by no means an expert, however you should follow "Robdog888 link" and then you will want to create a (parameter field in the report itself) or pass the "Invoice #" thru a (Recordselection) with VB-Code so that you can print/view the correct invoice.
Example (((Report.RecordSelectionFormula = "{model.brandid}= " & DataCombo4.BoundText)))) this one is for a number field.
Example ((Report.RecordSelectionFormula = "cdate({repairhistory.repairdate})>= " & Chr$(35) & dtp2 & Chr$(35) & " and cdate({repairhistory.repairdate})<= " & Chr$(35) & dtp3 & Chr$(35) & " and {repairhistory.technician}= " & Chr$(34) & DataCombo1.BoundText & Chr$(34)
this one is for a "Date field and a String field" (Chr$(35)=#) chr$(34)=" a date field has to be enclosed in #07/07/2007# a string has to be enclosed in "Joe's Bar".
I hope this helps.
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
|