PDA

Click to See Complete Forum and Search --> : [RESOLVED] How do I print a report in CR11 From VB6??? NEED HELP BEFORE 5pm


MZac
Mar 10th, 2006, 01:57 PM
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.

MZac
Mar 10th, 2006, 02:23 PM
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) .

Besoup
Mar 10th, 2006, 03:21 PM
What control are you using to preview your report?

the CrystalActiveXReportViewer has a print button built into it.

MZac
Mar 10th, 2006, 03:48 PM
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!!!!!!!! :mad:

pnish
Mar 12th, 2006, 12:50 AM
You guys REALLY don't know ANYTHING about CRYSTAL REPORTSThat's an excellent way to have your question ignored. Well done. :thumb:

MZac
Mar 13th, 2006, 08:07 AM
;) 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.

MZac
Mar 13th, 2006, 08:08 AM
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!

MZac
Mar 13th, 2006, 09:08 AM
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:

Public Application As New CRAXDDRT.Application
Public Report As New CRAXDDRT.Report

6) Add this code to the command button you wish to use to call the viewer

frmForm.Show
Set Report = Application.OpenReport("C:\directory...\Report1.rpt")
frmForm.CRViewer1.ReportSource = Report
frmForm.CRViewer1.ViewReport

pnish
Mar 14th, 2006, 01:17 AM
Thanks for sharing. So those manuals are good for something after all ;)
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! :lol: :lol: :lol:
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

anwar zaman
Mar 15th, 2006, 12:28 AM
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

TheBionicOrange
Mar 16th, 2006, 03:49 AM
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 !

KGComputers
Mar 16th, 2006, 08:16 PM
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...

:) :) :)

MZac
Mar 16th, 2006, 10:34 PM
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.

pnish
Mar 16th, 2006, 10:48 PM
Feel better now? :rolleyes:

TheBionicOrange
Mar 17th, 2006, 02:46 AM
Feel better now? :rolleyes:

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

MZac
Mar 17th, 2006, 07:59 AM
Yes I do, ill try to be nicer in the future.