Welcome to Dream.In.Code
Getting PHP Help is Easy!

Join 136,480 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 1,720 people online right now. Registration is fast and FREE... Join Now!




PHP With Crystal reports

 
Reply to this topicStart new topic

PHP With Crystal reports

roslin164
24 Feb, 2008 - 07:11 PM
Post #1

New D.I.C Head
*

Joined: 24 Feb, 2008
Posts: 6


My Contributions
Hi, I'm a Malaysian student and I've decided to build my final project using Php and Crystal report.
Well, the problem is, that I can't find any project samples, or stuff like that, all I could find was some tutorials.
Give me more tips . Allright, thanx
User is offlineProfile CardPM
+Quote Post

Martyr2
RE: PHP With Crystal Reports
24 Feb, 2008 - 08:49 PM
Post #2

Programming Theoretician
Group Icon

Joined: 18 Apr, 2007
Posts: 5,212



Thanked: 215 times
Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions
Well I suggest that you either change your project to something that has more documentation out there to show you or look at the Crystal reports documentation and see if there is a way. Typically, if you are using PHP on windows, you can call the report using a com object... but there are little resources showing you code samples. I have found the following code out there, but not much more...

php

<?php
$crapp = new COM ("CrystalRuntime.Application") or die ("Error on
load");
$creport = $crapp->OpenReport("c:/test.rpt", 1);
$creport->ExportOptions->DiskFileName="c:/test.rtf";
$creport->ExportOptions->DestinationType=1; // Export to File
$creport->ExportOptions->FormatType=4; // Type: RTF
$creport->DiscardSavedData();
$creport->Export(false);

$creport = null;
$crapp = null;

print "...done";
?>


But if you have no clue on what this is all doing and how to get PHP running with it, you might want to switch topics now so that you are not pinned against a project that you can't end up completing.

Good luck and I hope it works out for you. smile.gif
User is offlineProfile CardPM
+Quote Post

roslin164
RE: PHP With Crystal Reports
26 Feb, 2008 - 04:31 PM
Post #3

New D.I.C Head
*

Joined: 24 Feb, 2008
Posts: 6


My Contributions


ok,
thanks a lot Martyr2 will look in to that. But did i posible to change my report using coldfusion and crytal report.
smile.gif
User is offlineProfile CardPM
+Quote Post

Martyr2
RE: PHP With Crystal Reports
26 Feb, 2008 - 04:51 PM
Post #4

Programming Theoretician
Group Icon

Joined: 18 Apr, 2007
Posts: 5,212



Thanked: 215 times
Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions
Any server-side language that supports com objects "theoretically" should be able to use crystal reports. From what I can see there might be better handling of crystal reports with cold fusion and some documentation to support it can be found out there on sites like adobe.com. It might be a route for you, but you will have to ask the question over in the coldfusion forum and see if anyone can give you some suggestions. Below is one link to such material and I am sure there is more...

Creating reports with Crystal Reports and ColdFusion MX 7

Notice that they interact with the dll through a com object connection as well.

Good luck with this. smile.gif
User is offlineProfile CardPM
+Quote Post

roslin164
RE: PHP With Crystal Reports
26 Feb, 2008 - 06:42 PM
Post #5

New D.I.C Head
*

Joined: 24 Feb, 2008
Posts: 6


My Contributions

ok Martyr2
...thanks a lot for y help...i enter the coldfusion forum to ask the same question.

smile.gif
User is offlineProfile CardPM
+Quote Post

Realcoder
RE: PHP With Crystal Reports
27 Feb, 2008 - 11:00 PM
Post #6

New D.I.C Head
*

Joined: 26 Feb, 2008
Posts: 5

- Spam Links Removed -
User is offlineProfile CardPM
+Quote Post

bhandari
RE: PHP With Crystal Reports
27 Feb, 2008 - 11:07 PM
Post #7

D.I.C Addict
Group Icon

Joined: 31 Jan, 2008
Posts: 747


Dream Kudos: 900
My Contributions
hey man! I guess your membership is gonna end. You are again posting the same links once they have been deleted.
I would say you are a hardcore spammer.
User is offlineProfile CardPM
+Quote Post

no2pencil
RE: PHP With Crystal Reports
27 Feb, 2008 - 11:25 PM
Post #8

My fridge be runnin OH NOEZ!
Group Icon

Joined: 10 May, 2007
Posts: 6,465



Thanked: 66 times
Dream Kudos: 2425
Expert In: Goofing Off

My Contributions
QUOTE(bhandari @ 28 Feb, 2008 - 12:07 AM) *

hey man! I guess your membership is gonna end. You are again posting the same links once they have been deleted.
I would say you are a hardcore spammer.

Yeah... some people are not too bright.
User is online!Profile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 06:47PM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month