Results 1 to 6 of 6

Thread: how to connect vb6 and crystal reports

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,158

    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)

  2. #2
    PowerPoster Pasvorto's Avatar
    Join Date
    Oct 2002
    Location
    Minnesota, USA
    Posts
    2,951

    Re: how to connect vb6 and crystal reports

    What version of CR?
    ===================================================
    If your question has been answered, mark the thread as [RESOLVED]

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: how to connect vb6 and crystal reports

    Moved to reporting

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,158

    Re: how to connect vb6 and crystal reports

    My Crystal Report Version is 8.5

  5. #5
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  6. #6
    Lively Member
    Join Date
    Oct 2004
    Location
    carmi,IL.
    Posts
    105

    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.
    David M. Camp

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width