Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Export Crystal Report To TIFF 2

Status
Not open for further replies.

theoryofben

IS-IT--Management
Aug 25, 2001
149
US
Hello,

My app generates a Crystal Report, then exports this to pdf. But now, I need to export to a TIFF.

Does anyone know if I can export directly from CR to TIFF?

Or how do I convert the pdf to TIFF?

If someone can point me in the right direction, that would be great.

Thanks

Ben

"Insanity in individuals is something rare - but in groups, parties, nations and epochs, it is the rule."
Friedrich Nietzsche
 
For $59 - For $99 - For Free - Lots of options -
All this from 4 words in google: convert pdf to tiff
You could also search for: convert "crystal reports" to tiff

-Rick

----------------------
[banghead]If you're about to post an ASP.Net question,
please don't do it in the VB.Net forum[banghead]

[monkey] I believe in killer coding ninja monkeys.[monkey]
 
Thanks, I tried google and came up with plenty of third party solutions, but that's not what I'm looking for.

I would prefer to export the CR directly to TIFF and cut out the PDF.

Ben

"Insanity in individuals is something rare - but in groups, parties, nations and epochs, it is the rule."
Friedrich Nietzsche
 
Check out the 3rd link I posted, the one labeled "For Free" it's a .Tiff print driver. Basically, you print the CR as usual, but instead of printing to a printer, you print to a file w/ the tiff driver. The tiff driver, instead of converting the CR to PCL/PostScript or other printer friendly format, converts the signal to TIFF and saves it as a file.

-Rick

----------------------
[banghead]If you're about to post an ASP.Net question,
please don't do it in the VB.Net forum[banghead]

[monkey] I believe in killer coding ninja monkeys.[monkey]
 
I checked it out, but it isn't free it's shareware. No way my supervisor is going to approve the $95 price.

But it did put me on the right track. I think I am just going to try and use ghostscript.

Thanks for the help.

Ben

"Insanity in individuals is something rare - but in groups, parties, nations and epochs, it is the rule."
Friedrich Nietzsche
 
I checked it out, but it isn't free it's shareware. No way my supervisor is going to approve the $95 price.

$95 is a drop in the bucket. Think of it this way, say you make ~$20/hour (40k/year), tack on benifits, insurance, 401k, etc, and it costs your manager ~$40/hr to have you infront of that PC. If it takes 2 1/2 hours to write a new solution or to get Ghost script to work, you have broken event. If you go over 2 1/2 hours you are loosing money by not buying a $95 turn key solution.

I'm not saying buying something is always the right method, but if it's cheaper, and easier to maintain, I'd say it's the right thing to do. The added benifit here is that it's Shareware! Download it, test it out, make sure it does what you need, and you can have your new output system set up an running in a few hours and $95.

-Rick

----------------------
[banghead]If you're about to post an ASP.Net question,
please don't do it in the VB.Net forum[banghead]

[monkey] I believe in killer coding ninja monkeys.[monkey]
 
Dude, I completely agree.

But I work for a state govt. agency. Our budget for this type of puchase is next to nothing and it's getting near the end of the fiscal year.

So, I just have to work within those constraints. Such is life.

Thanks.

Ben

"Insanity in individuals is something rare - but in groups, parties, nations and epochs, it is the rule."
Friedrich Nietzsche
 
Ouch, I know the situation. I've spent some time working in the (WI) state gov. A few bad fiscal years, some poor budgeting and a mediocre IT manager left us in the dog house for budget.

Here's an article on getting Ghost script to work:

Personally, I've had my run ins with it, and never came away happy, but if you get a working solution, I'd love to hear about it.

-Rick

----------------------
[banghead]If you're about to post an ASP.Net question,
please don't do it in the VB.Net forum[banghead]

[monkey] I believe in killer coding ninja monkeys.[monkey]
 
My boss called at the end of the day and said that he had an old vb function to print to tiff using ghostscript.

He may be using the same method in the link you provided. He's going to email it to me next week. If I can get it to work, I'll post it.

Thanks and have a good weekend.

Ben

"Insanity in individuals is something rare - but in groups, parties, nations and epochs, it is the rule."
Friedrich Nietzsche
 
Ok, here is the batch file that will convert a pdf to tiff

Basically we just used the pdf2ps.bat that came with gs. We just altered the output device setting.

Code:
@echo off 
@rem $Id: pdf2ps.bat,v 1.7 2002/02/21 21:49:28 giles Exp $
@rem Convert PDF to PostScript.
 
if %1/==/ goto usage
if %2/==/ goto usage
call gssetgs.bat
echo -dNOPAUSE -dBATCH -dSAFER -sDEVICE#tiffg4 -dMaxStripSize=8192 >_.at
:cp
if %3/==/ goto doit
echo %1 >>_.at
shift
goto cp
 
:doit
rem Watcom C deletes = signs, so use # instead.
%GSC% -q -sOutputFile#%2 @_.at %1
if exist _.at erase _.at
goto end
 
:usage
echo "Usage: pdf2ps [-dASCII85DecodePages=false] [-dLanguageLevel=n] input.pdf output.ps"
 
:end

you just call this bat file and pass it your input and output parameters. Worked great. You can also change the settings for the tiff compression. Check out this page for more info.

Ben

"Insanity in individuals is something rare - but in groups, parties, nations and epochs, it is the rule."
Friedrich Nietzsche
 
Get info Ben! Thanks

-Rick

----------------------
[banghead]If you're about to post an ASP.Net question,
please don't do it in the VB.Net forum[banghead]

[monkey] I believe in killer coding ninja monkeys.[monkey]
 
err, Get should be Great. Sorry, been documenting properties for the last hour, stuck in the habbit of typing "Gets or Sets"

-Rick

----------------------
[banghead]If you're about to post an ASP.Net question,
please don't do it in the VB.Net forum[banghead]

[monkey] I believe in killer coding ninja monkeys.[monkey]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top