Results 1 to 16 of 16

Thread: [RESOLVED] How do I print a report in CR11 From VB6??? NEED HELP BEFORE 5pm

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    30

    Resolved [RESOLVED] How do I print a report in CR11 From VB6??? NEED HELP BEFORE 5pm

    I need to know how to print a report i created in CR11 from vb6. Please dont rever me to any tutorials unless they explicitly give me the code instructions. Ive been looking for a while, but havent found anything.

  2. #2

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    30

    Re: How do I print a report in CR11 From VB6??? NEED HELP BEFORE 5pm

    I've been searching this site. You guys REALLY don't know ANYTHING about CRYSTAL REPORTS. Thats why you took my post and put in in the CR graveyard, also known as Reporting (Crystal, Access and Data Designer) .

  3. #3
    Frenzied Member
    Join Date
    Nov 2001
    Location
    Mass USA
    Posts
    1,674

    Re: How do I print a report in CR11 From VB6??? NEED HELP BEFORE 5pm

    What control are you using to preview your report?

    the CrystalActiveXReportViewer has a print button built into it.

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    30

    Re: How do I print a report in CR11 From VB6??? NEED HELP BEFORE 5pm

    No, I never used CR before. I am a software programmer, and my job needs me to create a function which writes a letter(s) for an attorney in the program i am writing. Previous versions of the application used CR8, and the code does not work any more. I dont know anything. I need some assistance in the actual code used to write the report to the viewer. .action=1 doesnt work anymore. I am lost, and I cant find any resources on the web. The business objects website is a f'ing joke. I just need the appropriate code to be able to. I have an access database, which holds all of the data to be written in the report. I have the report(.rpt) creates as well. I made a form with the cr viewer. Now I need to know how to make this thing work. I AM FRUSTRATED! I usually figure things out really fast, but ive been stuck for the past 4 hours. PLEASE HELP!!!!!!!!

  5. #5
    Frenzied Member pnish's Avatar
    Join Date
    Aug 2002
    Location
    Tassie, Oz
    Posts
    1,918

    Re: How do I print a report in CR11 From VB6??? NEED HELP BEFORE 5pm

    Quote Originally Posted by MZac
    You guys REALLY don't know ANYTHING about CRYSTAL REPORTS
    That's an excellent way to have your question ignored. Well done.
    Pete

    No trees were harmed in the making of this post, however a large number of electrons were greatly inconvenienced.

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    30

    Re: How do I print a report in CR11 From VB6??? NEED HELP BEFORE 5pm

    Maybe, but note that NO ONE was able to answer it. So I can say whatever I want. Sad. But guess what, I figured it out on my own. PS, check out all of the other posts on the topic, not a single answer.

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    30

    Re: How do I print a report in CR11 From VB6??? NEED HELP BEFORE 5pm

    By the way. Try to conceal your nerdiness, don't get your panties in a bunch because you arent smart enough to figure something out!

  8. #8

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    30

    Re: [RESOLVED] How do I print a report in CR11 From VB6??? NEED HELP BEFORE 5pm

    To anyone that needs help with this topic:

    1) You must be using CRXI Developer edition.
    2) You must install the CR, RDC components.
    3) You must create a form with the new CRViewer tool in your toolbox.
    3a) For this example the form containing the report viewer is frmForm
    3b) For this example the report viewer is CRViewer1
    4) Create a report in CR (you can also create a report in VB6, using the Design interface that comes with CRXI, but I chose to create the report in CRXI)
    5) Note the the directory you save the report in.
    6) Create an Application object and a Report object like this:
    VB Code:
    1. Public Application As New CRAXDDRT.Application
    2. Public Report As New CRAXDDRT.Report
    6) Add this code to the command button you wish to use to call the viewer
    VB Code:
    1. frmForm.Show
    2. Set Report = Application.OpenReport("C:\directory...\Report1.rpt")
    3. frmForm.CRViewer1.ReportSource = Report
    4. frmForm.CRViewer1.ViewReport

  9. #9
    Frenzied Member pnish's Avatar
    Join Date
    Aug 2002
    Location
    Tassie, Oz
    Posts
    1,918

    Re: [RESOLVED] How do I print a report in CR11 From VB6??? NEED HELP BEFORE 5pm

    Thanks for sharing. So those manuals are good for something after all
    Quote Originally Posted by MZac
    By the way. Try to conceal your nerdiness, don't get your panties in a bunch because you arent smart enough to figure something out!

    I was just trying to point out that abusing all & sundry just because no one happened to answer your question in time for YOUR deadline is unlikely to result in a flood of people wanting to help you.

    Anyway, despite all that I'm glad you got it sorted out
    Pete

    No trees were harmed in the making of this post, however a large number of electrons were greatly inconvenienced.

  10. #10
    New Member
    Join Date
    Feb 2006
    Posts
    12

    Wink Specailly for MZac yar help me if u can in anyway & i am also searching tooo

    Hi MZac,
    u done extravallent job to sort out ur own problem by own caz i have also posted my CR8 Report problem but noone on this forum sort it out n i have aslo sort that problem but still there is a bit enclover to be sorted

    wat my problem waz :
    i need to prepare CR8 Reports for my Employees insentives & the i had made that in CR8 but i want it to be in a manner that i would choose two dates & in between that dates i just sort out all my employees Insentives e.g if i want my employees insentives for the month of jan 2006 then in database(Oracle8i i m using currently) there is allocation month where every month allocations are added for salespersons so wat i need is to sort that insentives according to Allocation Month & Salespersons names that i already made in CR8 but when i run my Software Application it requires 2 parameters thats i also made as date1 & date2

    before there was problem with CR8 & it gives me run time error that i ahd also sorted now u will say then where is problem now left


    now wat i need is when i run Software & i select dates from my Frontend (VB6 ) then after that CR8 Also prompt for those two parameters (Date1 & Date2)
    now how will i ignore this prompting as i am selecting & already choose my dates from Application front end.



    MZac please yar if u can help me or u know anyone expert means EXPERT in (CR8+VB6+Oracle8i) please reffer me caz i think this forum cant sort it out


    for more detail i had also posted my Application Code & CR8 errore & RobDog had just sliped me out & cant do anything valuable that can help me except reffering to just dummy sites



    anwar zaman
    Manager IT
    TRM pakistan

  11. #11
    Frenzied Member TheBionicOrange's Avatar
    Join Date
    Apr 2001
    Location
    Cardiff, UK
    Posts
    1,818

    Re: [RESOLVED] How do I print a report in CR11 From VB6??? NEED HELP BEFORE 5pm

    There are plenty of people on here willing to help anwar.
    I imagine your appalling use of the English language did little to aid your cause, and shouting insults like this Mzac character is not going to warm you to these people.
    Next time try a little common sense ... and a spell checker !

  12. #12
    Frenzied Member KGComputers's Avatar
    Join Date
    Dec 2005
    Location
    Cebu, PH
    Posts
    2,024

    Re: [RESOLVED] How do I print a report in CR11 From VB6??? NEED HELP BEFORE 5pm

    There are plenty of people on here willing to help anwar.
    I imagine your appalling use of the English language did little to aid your cause, and shouting insults like this Mzac character is not going to warm you to these people.
    Next time try a little common sense
    Hi all!!! I agree with him...This place is for vb forum questions and not for complains. If you consider this forum as graveyard, you may send a PM to the moderators or post a thread in the Forum Feedback..In that way, administrators/moderators may try improving this forum or answer your personal questions.Lets work together in peace to make this forum a source of knowledge and not a place of thrashing words...

    CodeBank: VB.NET & C#.NET | ASP.NET
    Programming: C# | VB.NET
    Blogs: Personal | Programming
    Projects: GitHub | jsFiddle
    ___________________________________________________________________________________

    Rating someone's post is a way of saying Thanks...

  13. #13

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    30

    Re: [RESOLVED] How do I print a report in CR11 From VB6??? NEED HELP BEFORE 5pm

    Listen people...I honestly dont give a flying 747 about what you think about me. You know why, because I say what I want when I want, and I speak the truth. Thats me. Sorry anwar zaman, Im a newbie with crystal reports. My frustration the other day was because, again, NO ONE here knows jack about CRXI & VB. Not because my post wasnt replied to, but because no one would admit to their lack of knowledge. They would just send you on a wild goose chase for a non-existing tutorial. Pnish, your second post was a lot more docile than your first, and I responded to each in kind. You have no business telling ME what I can and cannot say on here. There was no flood to my response because no one knew the answer. Do some research, search for the question I was asking buddy. I didn't ask for your opinion. If you want to give me your opinion, guess what, this "MZac character" is gonna give you his. Suck that BionicFruit. Why not lay off Anwar, he isn't from America, he is from Pakistan. And if you really like correcting peoples use of the English language, why don't you pick up a reference book first. Apalling is used to describe consternation and dismay, an adjective typically used to refer to a specific condition - not ones ability to communicate. Get your level of knowledge up before you make yourself as foolish and "ignant" as you just have.

  14. #14
    Frenzied Member pnish's Avatar
    Join Date
    Aug 2002
    Location
    Tassie, Oz
    Posts
    1,918

    Re: [RESOLVED] How do I print a report in CR11 From VB6??? NEED HELP BEFORE 5pm

    Feel better now?
    Pete

    No trees were harmed in the making of this post, however a large number of electrons were greatly inconvenienced.

  15. #15
    Frenzied Member TheBionicOrange's Avatar
    Join Date
    Apr 2001
    Location
    Cardiff, UK
    Posts
    1,818

    Re: [RESOLVED] How do I print a report in CR11 From VB6??? NEED HELP BEFORE 5pm

    Quote Originally Posted by pnish
    Feel better now?

    How did I know it wasn't going to end there !

  16. #16

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    30

    Re: [RESOLVED] How do I print a report in CR11 From VB6??? NEED HELP BEFORE 5pm

    Yes I do, ill try to be nicer in the future.

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