Results 1 to 9 of 9

Thread: Sample Crystal/VB Application

  1. #1

    Thread Starter
    Giants World Champs!!!! Mark Gambo's Avatar
    Join Date
    Sep 2003
    Location
    Colorado
    Posts
    2,965

    Sample Crystal/VB Application

    Does anyone have a simple VB app that prints a simple Crystal 8.5 Report?


    Thanks!
    Regards,

    Mark

    Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."


  2. #2

    Thread Starter
    Giants World Champs!!!! Mark Gambo's Avatar
    Join Date
    Sep 2003
    Location
    Colorado
    Posts
    2,965
    Bump
    Regards,

    Mark

    Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."


  3. #3
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758
    As simple as it gets.

    VB Code:
    1. Dim objCrystalApp As CRAXDRT.Application
    2. Dim objReport as CRAXDRT.Report
    3.  
    4. Set objReport = objCrystalApp.OpenReport(ReportFileName, 0)
    5.  
    6. objReport.PrintOut True
    7.  
    8. Set objReport = nothing
    9. Set objCrystalApp = nothing

  4. #4
    Fanatic Member cid's Avatar
    Join Date
    Nov 2002
    Location
    Fort Worth, Texas
    Posts
    854
    I'll make one give until 2:05 because I'm in class.

    www.google.com - Pay Tribute.

    Always Listening To: Thrice

  5. #5

    Thread Starter
    Giants World Champs!!!! Mark Gambo's Avatar
    Join Date
    Sep 2003
    Location
    Colorado
    Posts
    2,965
    Bruce,
    Thanks for your response, I really appreciate it! I assume from reviewing your code that the a crystal report will be loaded and printed. If wanted to pass a value to the report how would I modify your code? Also I assume the report connects directly to the data source (ADO) rather than the vb app?


    Thank you again!
    Regards,

    Mark

    Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."


  6. #6
    Fanatic Member cid's Avatar
    Join Date
    Nov 2002
    Location
    Fort Worth, Texas
    Posts
    854
    i dunno. I am in a hurry and couldnt read all that junk you posted. But take a look at my app. It might be what your looking for. And if you want help just post and ill give you a more advanced program.
    Attached Files Attached Files

    www.google.com - Pay Tribute.

    Always Listening To: Thrice

  7. #7

    Thread Starter
    Giants World Champs!!!! Mark Gambo's Avatar
    Join Date
    Sep 2003
    Location
    Colorado
    Posts
    2,965
    Thanks cid, i'll take a look at the "Crap" that you sent me ).
    Regards,

    Mark

    Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."


  8. #8

    Thread Starter
    Giants World Champs!!!! Mark Gambo's Avatar
    Join Date
    Sep 2003
    Location
    Colorado
    Posts
    2,965

    Change Title of Report

    CID,
    Thank you, for your app it really helped me understand cr. One question, where in your app are you assigning the report title?

    Thanks!
    Regards,

    Mark

    Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."


  9. #9
    Fanatic Member cid's Avatar
    Join Date
    Nov 2002
    Location
    Fort Worth, Texas
    Posts
    854
    Ok here we go...
    Click...
    (1)Project
    (2)Add Crystal Reports 8.5
    (3)Use A Report Expert
    (4)Highlight Standard
    (5)Click Other And Attach A Database
    (5)Fields(add the fields you want in the report)
    (6)Click Style
    (7)Then Type The Title
    (8)Highlight Drop Table
    (9)Click Finish
    (10)And just because i wanted an even number:

    www.google.com - Pay Tribute.

    Always Listening To: Thrice

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