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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing: .NET and CR

Status
Not open for further replies.

dBjason

Programmer
Mar 25, 2005
355
US
ASP / VB.NET 7.1

Hello,

I spent alot of time trying to create a Crystal Report in .NET to run off a stored procedure. Finally, I have the report up and running off of user selected values from an aspx page. Beautiful.

Only one issue: printing. It stinks. The report looks great in the browser, all the information is there and you can flip from page to page. But when you go to print, information is truncated and it looks like fecal matter. As a bonus, it only prints the current screen instead of all pages in the document.

Through the course of getting this report to work I've seen talk of exporting to a Word document or PDF. I'd really like find a way to print the report (all of it). If anyone can give me direction on how to export the document into M$ Word (all of our clients have that installed - most are on dial-up so PDF's are kinda taboo) it'd be greatly appreciated.

Thanks in advance for any/all help!

-Jason
 
I assume that you're using Crystal for .net

In CR 10 for .net, there's a a printmode.activex or printmode.pdf available to generate quality printouts.

If this doesn't work for you, try posting your version.

-k
 
Not sure of the version, I'm using VS.NET 7.1 (.NET framework 1.1), I added a report going through add item -> crystal report. I've tried the help->about in VS.NET, all I can pull up is 'Crystal Reports for Visual Studio .NET aap50-gs0000s-2vp00mx'; it doesn't say anything else about it. There is no install of Crystal Reports on the server; so I am at a loss for versioning.

I tried searching for 'printmode' in the VS help files, no luck there. Are there any other places I can look?
 
Yeah, it sounds like you have the embedded version, which is somewhat limited.

I haven''t used it, so hopefully someone will meander by and improve on this, but I'd suggest exporting to PDF and then opening that for printing purposes.

Check the sample apps:


There's one that touches on exporting.

You may even be able to use an Activex viewer.

-k
 
Thank you both for your replies!

Looks like I'll have 2 means to do what I need, thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top