Automatically Printing Crystal Reports in ASP.NET
page 2 of 5
by Richard Dudley
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 164958/ 108

Using Server-Side ReportDocument.PrintToPrinter Method

This server-based method is documented in the Visual Studio help files.  Open the Help Index, and enter PrintToPrinter in the "Look for:" box.  The syntax for this method is:

 Report.PrintToPrinter(<copies as int>, <collated as True/False>, <startpage as int>, <endpage as int>)

'Collated' in this context has nothing to do with database collation.  Some advanced printers (like copier/printers) will sort each document into its own shelf.  Not every printer supports this functionality, so check the printer dialog before setting to true.  To print the entire report, set startpage and endpage each to 0. 

An example in use might look like

MyReport.PrintToPrinter(1,False,0,0)

One limitation of this method is that a printer name must be specified.  You can set the default printer at design time in the report, and you can change the printer name at run time by setting the ReportDocument.PrintOptions.PrinterName property (the PrintOptions are also where you can assign page margins, portrait/landscape, etc.).  Keep in mind that this method prints from the server itself, not from the client machine.  This means that any printer you wish to use must be accessible from the server.  You cannot print to a client's desktop printer using this method unless that printer is shared on the network and mapped to the server.

If your LAN has networked printers, you can make some guesses as to which printer to assign as the default in each report.  For instance, if the Accounting Department has a departmental printer, that would be a good choice to use for the default in an accounting report.  You can provide users the option to choose a networked printer by enumerating the printers mapped to the server and populating a drop-down list.  The PrinterSettings.InstalledPrinters property returns a collection of installed printers, and can be bound to a DropDownList as below.

DropDownList1.DataSource = System.Drawing.Printing.PrinterSettings.InstalledPrinters
DropDownList1.DataBind()

Again, since this code is executing on the server, this will only enumerate the printers on the server mapped to the System user.  If a printer does not appear in the drop-down list, you need to ensure that it is properly mapped to the System user (see below).

All printers and the .NET Framework need to be mapped to the System user in order for this to work.  This is not a trivial task to configure.  Printers can be mapped to the system account only by editing the registry, and since the Framework is mapped to the System user, you may need to reassign security permissions on files and folders.  This process is outlined in the "Printing Web-Based Reports From the Server" article in the VS .NET help files (look up "Crystal Reports, printing" in the VS help index to link to the articles.) and also in Reference 3 (at the end of this article).  The process is a little too intricate to cover here (leave comments if help is needed, and I can amend the article later).


View Entire Article

User Comments

Title: No Printing   
Name: Chux
Date: 2012-12-27 9:29:53 AM
Comment:
Hi. Using the client side java script, I get a blank page on IE when I click the button. On non IE browsers I get empty two pages. Using the server side method, nothing happens when I call the report.PrintToPrinter(1, False, 0, 0). I'm testing using IIS. What could be the problem?
Title: Single page printout   
Name: MUNISH
Date: 2012-09-21 8:08:30 AM
Comment:
Good artical...

When i use this method the out of the print is only single page but i have a crystal report of multiple pages

can u pl tell wht to do
Title: Crystal Report in Published Website   
Name: Rajendran
Date: 2012-08-27 6:08:19 AM
Comment:
In My localhost that crystal report working good. But when Publish the site its not working..
Crystal report icons not loading in the report, When i click the print icon,Am getting the following error...
-------------
Not Found

The requested document was not found on this server.
----------------------------------------------------

My Crystal Report printing code is below..


--------------------------------------------------

ReportDocument crystalRepo = new ReportDocument();
DataSet1 ds1;
string qry = "SELECT A.Id,A.SDate, A.MonthName, A.Yar, B.ShortName, B.[Name], B.Department, A.BasicPay, A.DA, A.HRA, A.SpPay, A.OtherEarnings, A.GrossPay, A.Pf, A.ProfTax, A.LoanDue, A.LOP, A.Advances, A.RD, A.OtherDeductions,A.TotalDeduction as TotalDeduction, A.NetSalary, A.Totdays, A.Present, A.LDays, C.PartyName, C.Address3 FROM Tbl_Pay_SalaryCalculation A, Tbl_Sc_StaffProfile B, Tbl_Com_SchoolProfile C WHERE B.Id = A.StaffId AND C.Compid = A.compid AND A.Deleted = 'NO' AND B.Deleted = 'NO' AND A.MonthName = '" + June + "' AND A.Yar = '" + 2012 + "'";
da = new SqlDataAdapter(qry, con);
ds1 = new DataSet1();
da.Fill(ds1, "PaySlip");
crystalRepo.Load(Server.MapPath("CrystalReport.rpt"));
crystalRepo.SetDataSource(ds1);
CrystalReportViewer1.ReportSource = crystalRepo;

----------------------------------

Please give me the solution & Source code...

my id buddyb3cool@gmail.com
Title: No.of Copies   
Name: Ramesh
Date: 2012-06-25 10:12:58 AM
Comment:
I want the code for dynamically set the no.of copies using .net. my id is rbt.1718@gmail.com
Title: i have this error whne print from server   
Name: Said fathi
Date: 2012-02-22 3:10:20 AM
Comment:
i use iis7 with asp.net 2005
on win server 2008 r2 64bit
and my printer it is network printer
and use server side to print
this code work correct from visual studio but when publish application and make print from url i get this error:
.Invalid printer specified.><><>< at CrystalDecisions.ReportAppServer.Controllers.PrintOutputControllerClass.ModifyPrinterName(String newVal).. at CrystalDecisions.CrystalReports.Engine.PrintOptions.set_PrinterName(String value).. at VisitRegister.PrintDirectlyFromServer(String idIndex)
Title: i have this error   
Name: Said fathi
Date: 2012-02-22 3:05:35 AM
Comment:
.Invalid printer specified.
stack error:
at CrystalDecisions.ReportAppServer.Controllers.PrintOutputControllerClass.ModifyPrinterName(String newVal).. at CrystalDecisions.CrystalReports.Engine.PrintOptions.set_PrinterName(String value).. at VisitRegister.PrintDirectlyFromServer(String idIndex)
Title: crystal report printing   
Name: Kannan Sweet Guy
Date: 2012-02-13 1:28:57 AM
Comment:
how to catch the printer automatically to print a crystal reports in online printers..??
Title: print crystal report for evey transaction directly   
Name: Nihar Narendra
Date: 2011-11-03 10:18:12 AM
Comment:
plz send me the code for directly printing the crystal report using command button in asp.net using c#.
Email Id.
niharnarendra@gmail.com
Title: dispaly values through code in crystal reports   
Name: Vanita
Date: 2011-09-27 6:59:59 AM
Comment:
HI to all.......
I am new to crystal reports.
My requirement is to display values in crystal reports through code....Can anyone help me?
Title: printer output   
Name: balaji
Date: 2011-07-21 2:13:13 AM
Comment:
how can i apply to printer output using from vb.net
Title: Crystal Report   
Name: homealone.maw
Date: 2011-03-29 5:57:49 AM
Comment:
i have two printer.
i want to automatic print from free printer that has not job.
how to write vb.net code
Title: Draft on Crystal report   
Name: sabeer pasha
Date: 2011-03-23 9:19:56 AM
Comment:
Take a crystal report, create a Page header section, add image DRAFT, in detail section right click-> section Expert
->Add subReport, write the complete design and dataset(xsd) mapping in subreport, call from the .aspx page as
DataSet dsData = new DataSet(); get ur data and fill dataset, report = new ReportDocument();
report.Load(Server.MapPath("./Reports/PDF/BuyerResponseDraft.rpt"));
report.Subreports[0].SetDataSource(dsData.Tables[0]);
where BuyerResponseDraft is main report.
MemoryStream oStream;
oStream = (MemoryStream)
report.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);

Response.Clear();
Response.Buffer = true;
Response.ContentType = "application/pdf";
Response.BinaryWrite(oStream.ToArray());
Response.End();
report.Close();
report.Dispose();
Title: servername in crystal report   
Name: Suren
Date: 2011-03-04 10:35:59 PM
Comment:
what is the data source(server) name for creating crystalreports for built-in sqlserver in asp.net
Title: Cannot add assembly to VB.net   
Name: CrystalDecisions.Enterprise.WebControls
Date: 2011-02-16 5:06:00 AM
Comment:
Dear All,

I cannot add assembly "CrystalDecisions.Enterprise.WebControls" to Vb.net, why?
Title: crystal reports   
Name: sandeep
Date: 2010-11-16 6:46:29 AM
Comment:
i didnt run in my system
my fnds said that i7 is not supported for reports
Title: Reports   
Name: Need Help??
Date: 2010-09-09 6:58:19 AM
Comment:
If you need help for Crystal reports, write to me. I may able to help you.

tharindurodrigo@gmail.com

Regards,
TJ
Title: Done   
Name: Tj
Date: 2010-09-09 6:55:58 AM
Comment:
//Once you view the report through the report viewer. You can print simple by through a just one button click with this code. C#.net 3.5 web base



ReportDocument rpt = new ReportDocument();
rpt.FileName = FileName; // Server.Mappath("//Rep1.rpt")
rpt.SetDataSource(RepDS.Tables[0]); //DS is Dataset which you want to print

rpt.SetParameterValue("CompanyName", "ABC");
rpt.SetParameterValue("Title", "Report Title");
rpt.PrintToPrinter(1, false, 1, 1);
Title: wrong   
Name: selim07
Date: 2010-08-25 4:14:46 PM
Comment:
this is not working in IE 8...
Title: crystal report work in server   
Name: sameera
Date: 2010-08-25 9:28:31 AM
Comment:
i create crystale report and it work properlly in localhost.
but i read some comments in this page.
i have a problem. is crystale report work when i host my project

pls reply if you know it.
sameera.piliyandala@yahoo.com
Title: How i can use crystal report in asp.net   
Name: amit
Date: 2010-07-29 5:40:52 AM
Comment:
How i can use crystal report in asp.net
Title: crystal report to print automatically as page load event fires   
Name: xyz
Date: 2010-07-22 12:12:44 PM
Comment:
crystal report to print automatically as page load event fires
Title: How i can use crystal report in asp.net   
Name: Sunil
Date: 2010-07-22 12:11:21 AM
Comment:
Hello sir can you send me the code that how i can write code to print crystal report
Title: Impresion   
Name: Luis Delgado
Date: 2010-07-19 11:28:10 AM
Comment:
Buenas en el crystal solo me imprime en la impresora donde esta la aplicacion no imprime de las que tenga el cliente, me pueden responder por ldelgado@aya.go.cr
Title: Crystal report print working on local machine not on host   
Name: Aisha
Date: 2010-05-31 1:47:37 AM
Comment:
I want crystal report to print automatically as page load event fires. I tried myrepot.printtoprinter(1,fales,1,1) but thats working only for development machine. Not working on Hosted server. Also, manual print button of business object toolbar is not working. Please help its urgent.
Title: Client Side Print with out Printer option   
Name: Vijin
Date: 2010-05-24 2:44:19 AM
Comment:
I want to do a direct print without showing the window print, and it prints in the client side default printer

Pls help me

thanks
Vijin
nvijin@gmail.com
Title: ink toner   
Name: nneel23@gmail.com
Date: 2010-05-15 5:39:45 AM
Comment:
you can make easy office print work use latest printer and ink
Title: saç ekimi   
Name: mary
Date: 2010-05-12 6:48:01 AM
Comment:
Hi;
Unfortunately, although I realize I could not read the topic defalrca to help me in this regard would be glad if the mail.
mary lou
marylou23@gmail.com
Title: for printing report   
Name: ramesh
Date: 2010-05-01 12:53:04 AM
Comment:
hi,
i want to print my profile to my pc.
how can i do this?
can u give me code for this?
Title: crystal report   
Name: Varun T V
Date: 2010-04-22 11:42:46 PM
Comment:
How can i include crystal report in ASP.NET forms and how can i create report?
Please help....
my mail id : varuntv_ktd@yahoo.co.in
Title: crystal report   
Name: suresh
Date: 2010-04-09 7:34:43 AM
Comment:
what is the cryistal report and how is print the data from crystal report and printing page setup with code in asp.net

pls help me...
mailID: suresh9918@yahoo.com
Title: crystal report   
Name: ranjith
Date: 2010-04-08 7:00:41 AM
Comment:
what is the code for print the data from crystal report and printing page setup coding in vb.net.

its very urgently needed.

to: www.ranjithmca@gmail.com
Title: Client Side Print   
Name: Elizabeth López
Date: 2010-04-06 12:34:24 PM
Comment:
I know how this code works, but it isn't that we need.
I want to do a direct print without showing the window print, and it prints in the client side default printer.

Please, help me!!!!!
Reply to this email: elisa.lopez@netperceptions.es


Thanks in advance!
Title: Client Side Print   
Name: Elizabeth López
Date: 2010-04-06 4:12:48 AM
Comment:
I want to do a direct print from client side with a crystal report.

In your code, I don´t Know that the object like "printReady", "PrintCommandObject",... means.

Please, reply to this direction: elisa.lopez@netperceptions.es

Thanks in advance!
Title: Re: Blank Pages - Crystal Reports   
Name: Peter Mankge
Date: 2010-02-23 8:02:00 AM
Comment:
make sure your disign (it could be an image or line) is not that long in length, leave a bit of space from both side of the report. The design should be in the middle.
Title: Crystal Report-Not priting   
Name: shaunak patel
Date: 2010-01-22 3:59:49 PM
Comment:
Hi,

I want crystal report to print automatically as page load event fires. I tried myrepot.printtoprinter(1,fales,1,1) but thats working only for development machine. Not working on Hosted server. Also, manual print button of business object toolbar is not working. Please help its urgent.
Reply to svp2009@gmail.com

Thanks in advance,
Shaunak patel
Title: crystal reporting   
Name: Sarathi
Date: 2010-01-20 2:08:16 AM
Comment:
i need a design a crystal report in asp .net using coding
Title: i want to print the report   
Name: harish kumar shukla
Date: 2009-11-09 4:38:26 AM
Comment:
hiii
i am working on the project in which i want to create the report
Title: Export a crystal report to disk with no user interaction for save as   
Name: Deepanshu
Date: 2009-10-14 7:40:00 AM
Comment:
hi,

i am working on a project which requires me to export crystal reports to pdf with no user interaction, can you please help me.

thanks
deepanshuberry@gmail.com
Title: Use Crystal Report in ASP.Net   
Name: Alpesh
Date: 2009-08-12 8:27:01 AM
Comment:
Hello,
I am developing an application in that i need reporting functionality.Guide me how can i can use it in my app.
(The whole codding process)


** alpesh08@gmail.com **
Title: Print a Crystal Report from CrystalReportViewer   
Name: Hardeep
Date: 2009-06-23 7:13:14 AM
Comment:
I want to print a Crystalreport from CrystalreportViewer because Crystalreport print functionality does not work
Title: HANDLING PRINT EVENT IN CRISTAL REPORT   
Name: Sanjay Gupta
Date: 2009-06-05 12:51:45 AM
Comment:
I want to run a code after printing a report ,but there is no any event for that .So please any one tell me how to handle an event after printing the report in crystal report (ASP.NET using C#)

Please help me.
my EmailID is guptasanjay56@yahoo.com
Title: crystreport Report document printing   
Name: a
Date: 2009-05-28 6:33:50 AM
Comment:
hi i have
ddlprint.DataSource = System.Drawing.Printing.PrinterSettings.InstalledPrinters;
ddlprint.DataBind();
rd.PrintOptions.PrinterName = ddlprint.SelectedValue.ToString();
rd.PrintToPrinter(1, false, 0, 0);
but i cann't print the report from browser
Title: Its Nice...   
Name: faizi
Date: 2009-04-17 4:57:47 AM
Comment:
simply its best for printing reports using asp.net and thz code s useful for me
Title: auto   
Name: dinesh
Date: 2009-02-28 1:37:41 AM
Comment:
U should describe the code directly
Title: Printing from seperate paper drawers on Bizhub 751   
Name: Jim
Date: 2009-02-12 10:36:50 AM
Comment:
I am trying to get a 2 page report to print 1 page from one feeding drawer (white paper) and another page from another feeding drawer (pink paper) on a Konica Minolta Bizhub 751. 2 pages of different color are required and thus the need for accessing 2 distinctly different feeding drawers.
Thanks,
Title: print crystal report for evey transaction directly using command button in vb.net...   
Name: Prasanta ch Patra
Date: 2009-02-10 10:56:12 PM
Comment:
plz send me the code for directly printing the crystal report using command button in vb.net(i have developed an invoice form for that,i need to take printout for every transaction as a receipt//

Email Id.
cpoint_pp@rediffmail.com
Title: print crystal report for evey transaction directly using command button in Asp.net.using sql database..   
Name: vijay
Date: 2008-12-25 4:53:04 AM
Comment:
on my mail id : viju_choclate_952@yahoo.co.in
Title: print crystal report for evey transaction directly using command button in Asp.net.using sql database..   
Name: vijay
Date: 2008-12-25 4:51:35 AM
Comment:
I also trying to print in crystal report in using Asp.net from sql database..but i have dont understand code plz help me.. Send me this code.
Title: Printing report problem   
Name: WCS
Date: 2008-12-15 4:25:07 AM
Comment:
I also try this method but unable to print except my dev. computer. I think this method is better for the user who have web server which include same computer. But using this method there is another method that is install all the client printer in web server machine. This is not prcaticable because depend on the client of the company that may be 20-30 or more printer should have installed in web server. And also this has another drawback is it does not get correct selected paper size when it print.

Thank you
Title: DOS Priniting in Crystal Report (Draft font)   
Name: Hitesh
Date: 2008-12-03 5:53:29 AM
Comment:
hi i have to print report in dot metrix printer. its give perfect output while designing but when i run the app. and open the report then the print is not good because crystal report open pdf file for printing and from it the print output for draft font is not clear.
Title: Pass Parameter in Crystal Report from ASP.NET using VB   
Name: NTS
Date: 2008-12-02 7:25:11 AM
Comment:
Hi..Friends...

How to pass parameter from ASP.NET using VB.
Please Guide me Step by Step....

Pl. reply on shahnayant@yahoo.co.in
Waiting for your kind co-operation
Thanking U....
Title: print problem   
Name: syed
Date: 2008-11-25 2:11:30 AM
Comment:
Hi,

Can we control the printer without displaying the print dialog using print document object at the client side after web hosting. After web hosting it prints on the printer attached to the server. I want to know if client printer can be called for web application printing.

I will be glad if anybody can help solve my problem

Thanking you,
Title: Export and print problem   
Name: williams
Date: 2008-11-12 2:06:13 AM
Comment:
I am trying to export data form crystalreportviewer to pdf but is givin me problem. it ask me to log on. pls, can you send code for exporting data to excel or pdf and also code for printing. thanx
Williams
jesutowoju@yahoo.com
Title: Print Report in ActiveX mode in asp.net web application (Urgent!!!!!)   
Name: Amit
Date: 2008-11-05 1:02:21 AM
Comment:
I am trying to print a crystal report in ActiveX mode from Visual Studio.NET. Everything works fine on my development machine. When I click on the print icon on the toolbar, it shows list of all the printers on the local machine.
But when I copy all the files to the deployment server and access that site from the user machine and try to print the report , when I click on the print icon on the toolbar I see an empty dialog box. The list of local printers does not appear.

This is for crystal reports XI and IE 7.

Why does the print control come up as a white box when I access my website from any machine other than the server?

Can anyone please help? I am new to asp.net and I have spent more than few days trying to find solution on the internet.

PLZ Help
amitkumarsharma1985@gmail.com
Title: print problem !   
Name: çağlar akbıyık
Date: 2008-10-28 8:29:20 AM
Comment:
hi!
before adding excel,word,pdf buttons, I could print myreport. but now; When I click on the print button which is on the crystal report toolbar, page is posted.. and show empty report ?
can anybody help ?
Title: Crystal report - PrinttoPrinter Method   
Name: Srivatsa
Date: 2008-10-17 10:55:06 AM
Comment:
Hello Richard
Nice article.. !!
Actually i have an application wherein i have given an option to print to multiple formats... like pdf,excel and to printer

The problem is that although all my reports are getting exported correctly there are some problems when i print the report directly using PrintToPrinter method

Many fields go missing in the direct printouts ...

Any guidance regarding this strange behaviour or am i missing something here..??

Am using the same ReportDocument object to export to pdf and to print my documents.


Waiting for a response
srivatsahg@gmail.com
Title: Automatically Printing Crystal Report - Toolbar   
Name: MR
Date: 2008-10-06 3:12:02 PM
Comment:
In the first para, last tine of your article, you mention "In a future article, we'll look at adding a print button to a custom CrystalReportViewer toolbar that uses this method to print a report."

I was wondering if this was ever done? If so, where is the article? I would appreciate a response to this.

Thanks.

By the way, your article is wonderful and very useful.
Title: Print Report in ActiveX mode in asp.net web application (Urgent!!!!!)   
Name: KChudgar
Date: 2008-09-30 2:20:59 PM
Comment:
I am trying to print a crystal report in ActiveX mode from Visual Studio.NET. Everything works fine on my development machine. When I click on the print icon on the toolbar, it shows list of all the printers on the local machine.
But when I copy all the files to the deployment server and access that site from the user machine and try to print the report , when I click on the print icon on the toolbar I see an empty dialog box. The list of local printers does not appear.

This is for crystal reports XI and IE 7.

Why does the print control come up as a white box when I access my website from any machine other than the server?

Can anyone please help? I am new to asp.net and I have spent more than few days trying to find solution on the internet.
Title: Cristal Report   
Name: Santanu
Date: 2008-08-30 4:11:28 AM
Comment:
Hi i m new in cristal report.Please help me.How to connect cristal report in asp.net using c# ?
Title: report   
Name: sanad alsawafi
Date: 2008-06-16 9:18:07 AM
Comment:
it is very usfull
Title: Reporting   
Name: Vishal
Date: 2008-06-09 1:22:33 AM
Comment:
Hi I am new in cristal report can anyone help me
Title: Coding for print command   
Name: Kalicharan
Date: 2008-05-19 5:23:31 AM
Comment:
Hi I prepere a crystal report for Employee pay sleep i prepared it but how we do coding for atometicali print command is genrate.
Title: how to get crystal report OLE image on another webform using ExecWB method   
Name: Jenne
Date: 2008-05-12 3:46:37 AM
Comment:
I am not able to view Crystal Report Dynamic image that appears on webform report.But when ExecWB method is used with PrintSpecial() function there appears Red Cross instead of Crystal Report Image.
Title: how to print the data which is binded in report   
Name: Rajesh
Date: 2008-05-09 12:20:26 AM
Comment:
i want to print directly. exporting to pdf reduces the size of the barcode font size. so i want to print directly what ever the data binded in report viewer.
Title: How to prepare Crystal report in asp   
Name: balu
Date: 2008-04-16 2:26:41 AM
Comment:
balukri@gmail.com
Title: How to prepare Crystal report in asp   
Name: balu
Date: 2008-04-16 2:25:25 AM
Comment:
hi! i have parepare a web page & i need a report of that page when i press a button with preview.
Title: Print reports to client printer (from client)   
Name: Jeff-Net
Date: 2008-04-02 10:41:35 AM
Comment:
This tool will allow you to program a script to download an RPT file from a server or copy from a network location and send the RPT file to the printer.

http://www.jeff-net.com/jnrrt.htm

Hope that helps... Jeff-Net
Title: print crystal reports to client printer   
Name: gemma
Date: 2008-03-11 5:04:13 AM
Comment:
Hi,
Ararehm, I've the same problem. I need to print to the client printer. I can't find some reference to solve the problem. If someone knows how to print a report document to the client printer, please tell us how to do it.

Thank you
Title: print crystal reports on server using asp.net withC#   
Name: ararehm
Date: 2008-03-04 9:42:50 PM
Comment:
I can't print crystal report on web server.I want to choose printer from client and print its but code "System.Drawing.Printing.PrinterSettings.InstalledPrinters" don't show printter on server ( I not install print on server but I want to print from client printer)
Please help me and plz send me the code for directly printing the crystal report using command button in asp.net
Title: Crystal Report   
Name: Ashwin
Date: 2008-03-03 2:27:17 AM
Comment:
I wanna code for crystal report , which i wanna to use that in asp.
plz, post...
Title: query on printing using the IE menu   
Name: sindhu
Date: 2008-02-13 7:37:39 AM
Comment:
please help me.im working over a project in Lan using asp.net.What if i use IE print command to print my crystal report.Will it work well.i ve not tried as i ve not completed making the reports
Title: sample crystal report   
Name: ararehm
Date: 2008-02-12 11:01:24 PM
Comment:
I have problem .
Please send me code for write image from database type blob to crystal report using asp.net with c#
ararehm@yahoo.com
Thank you..
Title: print crystal reports for every transaction,using asp.net withC#   
Name: Pyare Mohan
Date: 2008-01-25 6:32:45 AM
Comment:
Plz Sen Me code for printing cryatal reports when transcation is over...
srivastavapyare@gmail.com
Title: print crystal report for evey transaction directly using command button in vb.net...   
Name: neha
Date: 2008-01-25 5:35:32 AM
Comment:
plz send me the code for directly printing the crystal report using command button in vb.net(i have developed an invoice form for that,i need to take printout for every transaction as a receipt//
Title: Automatically Printing Crystal Reports in ASP.NET   
Name: ff
Date: 2008-01-11 12:24:46 PM
Comment:
Automatically Printing Crystal Reports in ASP.NET
Title: crystal report   
Name: arun
Date: 2008-01-09 11:17:11 PM
Comment:
PLz send the crystal report viwer code for export the pdf,excel fromat

regards
arun
sarun_pandian@yahoo.co.in
Title: Crystal report Printing Problem   
Name: jawaid
Date: 2007-12-29 12:26:10 AM
Comment:
Hi All,

I have intranet web project. I used crsytal report in project. problem here is that user wants to print crystal report to his printer which connected to his system.Every user wants to do it.
How can i do it.
if you people have any suggestion then
Please Help me
Thanks in Advance

Regards
jawaid Alam
jawaid033@yahoo.com
Title: printing using crystal report without appearing the report   
Name: Moh'd Younis
Date: 2007-11-13 8:25:26 AM
Comment:
Hi
I am a software developer i have a web form contain a button with title print this button should send order to the printer to print invoice desiged on crystal report without appearing the crystal report.
Your suggestion and comments are appreciate.

Moh'd Younis
yazouri_318@yahoo.com
myounis@itgsolutions.com
Title: Add custome size paper in Printer through code   
Name: Ranjana Kaushik
Date: 2007-10-29 1:20:49 AM
Comment:
Hi
I m a software developer.I want to add custome paper size which is not in printer properties. i want that i give input for the papaer size that size automaticayy add in priter custome sizes. If any ine have solution then please give any suggestion.
Your suggestion and comments are appreciate. and plz reply me on this id ranjanaeng@gmail.com
Title: Automatically printing crystal reports in ASP.NET   
Name: Siyaa
Date: 2007-10-08 1:25:23 PM
Comment:
How do iprint a page in crystal reports usung asp.net,Automatically printing crystal reports in ASP.NET
Title: Blank Pages   
Name: Madhuri
Date: 2007-09-27 12:56:37 AM
Comment:
Hi Everybody,

I m working in crystal reports.when I'm printing the report from crystal report it prints well. problem is its printing a blank page after every page while printing from .net web application.I am using asp.net.your comments and suggestions are appreciated.
Title: how to create crystal report in pdf format   
Name: Ankur Agarwal
Date: 2007-09-26 10:16:29 AM
Comment:
hi Everyone,
i m working in crystal reports. how to create crystal in pdf format if any one knows plZ reply below id

regards
ankur.agarwal@adventity.com
Title: Offload the printing using XML   
Name: Jeff Rodgers
Date: 2007-06-27 2:28:41 PM
Comment:
The URL for the solution below is:

http://www.jeff-net.com/jnrrb.htm

For some reason the URL field does not display.
Title: Offload the printing using XML   
Name: Jeff Rodgers
Date: 2007-06-27 2:26:44 PM
Comment:
This is a plug for something we market, BUT, a very viable solution to the topic discussed here. We have a Crystal Reports batching product that allows for all settings and parameters to be stored in an XML file, and then we have a way to process the file on-the-fly.

With that setup, your web app updates the XML parameters and sends it off to be processed. Then it's just a matter of seeing if the XML file gets processed to the completed directory or the error directory. With this solution, you can print, email, FTP, our export to just about anything anywhere.

So, to recap the solution above, if you could simply update a couple of fields with your web app and have it do anything with Crystal Reports, wouldn't that be a great solution. We have it, and it costs only $2000 to implement.
Title: Error when i deployee my project?   
Name: chinh_vu
Date: 2007-06-12 6:10:13 AM
Comment:
hii! everyone!
I'm using CR11 to create report for my web_Project. i use "DropDownList1.DataSource = System.Drawing.Printing.PrinterSettings.InstalledPrinters
DropDownList1.DataBind()" to find all in my network! it's found when i run project from design... but when i complier and deployee it don't find print?
please help me! thank
Title: how to print active reports in asp.net on multiple data selection property   
Name: deepshikha
Date: 2007-06-01 5:21:01 AM
Comment:
hi i m working as software programmer...i m using active reports... i have problem.if i fetch data from single table then it reterive.but in condition of fetching data from multiple table at joins terms and condition on selection point means on parameterise query...is u have any solution then pls'z forward me on kushideep2007@rediffmail.com
Title: manjunair2006@gmail.com   
Name: Hyder
Date: 2007-05-30 2:18:00 AM
Comment:
check this article for printing the crystal reports.
Title: blank pages   
Name: Chary
Date: 2007-05-16 2:27:18 AM
Comment:
hi, I'm using printtoprinter command in my c#.net when I'm printing the report from crystal report it prints well. problem is its printing a blank page after every page while printing from .net web application. your comments and suggestions are appreciated.
Title: ExecWB (dont show dialogue) not working   
Name: Sandeep Bhutani
Date: 2007-05-15 5:20:21 PM
Comment:
Hi,
i tried the code. The code is working fine but the origional problem is still there. I tried ExecWB method with all possible values given on MSDN for not showing the dialogue box. Can you please tell me what to do. I have tested that ExecWB is being called and explorer version is 6.0.

Regards,
Sandeep Bhutani
sandeepbhutani304@gmail.com
Title: Crystal Report   
Name: Jonathan
Date: 2007-05-11 1:59:30 AM
Comment:
Hi, can give me the complete syntax for printing a crystal report using VB and using this statement "PrintSQLReport ......". And can you site me some example. If you have any suggestion e-mail me at snook.18@gmail.com. Tnx!
Title: Crystal Report Printing Current Page   
Name: TC02312@emirates.com
Date: 2007-05-10 2:12:08 AM
Comment:
I want to print only the current page. But cystal reports prints all the pages. If you know how to do this please let me know on my email ID. TC02312@emirates.com
Title: Print a crystal Report through Dot Matrix Printer   
Name: Ankukr Adarsh
Date: 2007-04-15 9:37:27 AM
Comment:
Hi,
i Know all this which you have written in this article but my problem is to print crystal report or HTML page through Dot Matrix Printer. If you have any solution then mail me at ankuradarsh@gmail.com

Thanks
Title: custom size printing   
Name: Binary Infotech
Date: 2007-04-03 12:59:51 AM
Comment:
My report is printing very well..Only problem is that it's a custom size report. Though the full report is visible on the screen, right most side of the report gets cut while priting. What settings do I need to change?
Title: New Problem   
Name: Ajeet
Date: 2007-03-22 7:50:41 AM
Comment:
I am getting new problem.Whenever I am trying to print through Crystal Report Print Control on intranet, I am getting error as "Communication error".Kindly give me the solution or atleast the reason why this is heppening.
Title: Automatically printing crystal reports in ASP.NET   
Name: KK Bansal
Date: 2007-02-12 5:12:40 AM
Comment:
We are using Dotnet 2005 and Crystal Report 10.
This is exactly my problem. Need reference or some guidance.
Title: Beginer in VB net   
Name: Nihad
Date: 2006-11-14 1:35:30 PM
Comment:
Man this hellped me allot tnx for this fine post.

Keep it coming!!
Title: Automatically printing crystal reports in ASP.NET   
Name: Sivakumar
Date: 2006-09-28 3:21:22 AM
Comment:
How to convert a crystal report to PDF?
Title: Problems   
Name: Suhas Ramkisan Bothe
Date: 2006-09-14 5:41:16 AM
Comment:
when we change dpi as 120 dpi then graphs in crystal reports is no shown 100% i.e some part of graph is not export to .pdf file when we export report in .pdf file?
Please give solution for that ?

Thank you ...
Title: Programmer   
Name: David McCarter
Date: 2006-06-05 3:32:57 PM
Comment:
Using the java script above, I still get the print dialog box using IE6. How come?
Title: eroor using the code   
Name: sanjay
Date: 2006-05-30 1:29:49 AM
Comment:
i am getting dll error at Report.Export();
it gives the error as dll error has occured .
please give me the solutiion for this one
Title: Very nice Article   
Name: Narender
Date: 2006-05-11 9:18:39 AM
Comment:
Very nice article.
Title: How to print crytal report in asp.net   
Name: Akhilesh Saini
Date: 2006-04-14 12:19:53 PM
Comment:
Good information on client side printing. Although it is not in details, but it is good enough for beginner. It will be better if more example is given.
Title: Automate the printing process   
Name: Jey
Date: 2006-03-22 11:15:50 PM
Comment:
Hi Daniel,
if that is not working with those settings please do the following changes as well.
Under Scripting
1.) Active Scripting - Enable
2.) Allow past operation via Script - Enable
3.) Scripting of Java applets - Enable
Downloads
1.) File downloading - Enable
Under Miscellaneous also enable everything.

Suppose if this settings also not working enable some other parts and do the testing....
But really it is very danger for your pc if you are going to access some unsecure sites!!!

And if you need any help please let me know.

Thanks
Jey
Title: Printer selection still appears   
Name: Daniel
Date: 2006-03-22 3:24:12 PM
Comment:
I have tried to set the setting as above and the printer selection still appears.

XP sp2, IE 6
Title: Client side printing (without print prompt)   
Name: Jey
Date: 2006-03-22 1:51:25 AM
Comment:
Hi RD,
I have found the required setting that we have to make:

in IE window go to Internet Options then Security then press Custom Level

Under ActiveX controls and plug-ins:

1.) Automatic prompting for ActiveX controls - Enable
2.) Download signed ActiveX controls - Enable
3.) Download unsigned ActiveX controls - Enable
4.) Initialize and script ActiveX controls not marked as safe - Enable
5.) Run ActiveX controls and plug-ins - Enable
6.) Script ActiveX controls marked safe for scripting – Enable

then the above code will work perfectly.

Thanks RD,
Jey
Title: Auto Printing   
Name: Jey
Date: 2006-03-21 5:41:06 AM
Comment:
Really my main concern is about Client Side printing. I have tried all the methoeds with IE version 6.0.2. If I want to make any necessary security settings please let me know.

Thanks.
Title: Auto printing   
Name: Jey
Date: 2006-03-21 5:34:57 AM
Comment:
Even when i am using these methods I couldn't get rid of Print dialog box. Is there any otherway to get rid of Print Dialog box and print the reports autumatically. Or do i have to do any special settings?
Title: avoid the print dialog   
Name: Richard Dudley
Date: 2006-03-05 2:23:35 PM
Comment:
Jose,

I'll try and look into this. XP SP2 and IE6 are newer than what I used when I wrote this article, and there may be security or feature changes in these versions.
Title: avoid the print dialog   
Name: Jose
Date: 2006-03-03 7:01:00 AM
Comment:
We are using Windows XP SP2 and IE 6.0.
Title: avoid the print dialog   
Name: Jose
Date: 2006-03-03 6:55:17 AM
Comment:
We´ve tried with the method (ExecWB(6,-1)) you explained above to the client side. The problem is that always appears the print dialog window. We want to print directly to the printer (without client interaction). We have already tried to use the method ExecWB with 2 and 6 for the prompt parameters values without success.
We'd like to print directly without the user confirmation on the print dialog.
Thanks for comments.
Title: Project Manager   
Name: Farrukh Malik
Date: 2006-02-22 7:34:02 AM
Comment:
Excellent......I realy appretiate your efforts for helping people around the globe.
Title: Regarding Code   
Name: Sudipta Sen
Date: 2006-02-18 1:39:55 AM
Comment:
Please enlarge the code front
Title: very good,informatic   
Name: Mohsin Zahoor
Date: 2006-02-08 11:56:39 AM
Comment:
hi
this is a very nice tutorial.i got all the necessary knowledge about CR with ASP.NET.
But I need more,just to connect ASP.NET page with CR,that takes some arguments from the page.
thnxxx
Title: Print Dialog   
Name: Arun Yadav
Date: 2006-02-02 1:43:49 AM
Comment:
Really Good Stuff and can solve all report printing problems
Thanks a bunch!
Title: PrintCommandObject   
Name: Richard Dudley
Date: 2006-01-25 4:53:21 PM
Comment:
No clue. Are you using IE 5.5 or higher? The class ID is regsitered to a specific IE version, and that may need to be changed in newer browsers.
Title: problem with script   
Name: tui
Date: 2006-01-16 8:06:18 PM
Comment:
I am having problem with the PrintCommandObject. Error message is:

Microsoft JScript runtime error: 'PrintCommandObject' is undefined

Any suggestions?
Title: Print Dialog   
Name: Richard Dudley
Date: 2006-01-12 3:45:32 PM
Comment:
PrintToPrinter() - of course! I didn't think of that. Good to know, and thanks for sharing!
Title: Auto Print dialog   
Name: Riverbeast
Date: 2006-01-12 4:19:24 AM
Comment:
RD,

Thanks, the click event would be the logical choice but rptviewer and crystal version i have does not expose the print handler ... weird. Anyway solved the problem by displaying a printdialog, using the printersettings and then printing with crystalrpt.PrintToPrinter

sample vb.net code
PrintDialog1.Document = PrintDocument1
PrintDialog1.AllowSomePages = False
PrintDialog1.AllowSelection = False

If PrintDialog1.ShowDialog() = DialogResult.OK Then
Dim ncopy As Integer = printDocument1.PrinterSettings.Copies
Dim printerName As String = Me.PrintDocument1.PrinterSettings.PrinterName
crystalrpt.PrintOptions.PrinterName = printerName
crystalrpt.PrintOptions.PaperSize = CrystalDecisions.[Shared].PaperSize.PaperA4
crystalrpt.PrintToPrinter(ncopy, False, 0, 0)
End If

this is a bit off topic so enuff said :)
Title: PrintDialog   
Name: Richard Dudley
Date: 2006-01-11 9:16:57 AM
Comment:
Riverbeast,

Thanks for the kind words. I have no idea how you could raise the print dialog automatically in a Windows form. Most of what I do is web-based. The CrystalReportViewer control should have a print button, so maybe at the end of your report code, you could trigger the Click event for that button?
Title: crystal PrintDialog   
Name: Riverbeast
Date: 2006-01-11 3:20:29 AM
Comment:
Man there are some criticising idiots out there! Good article RD

OK, my question, is there a way to raise the crystal report viewer PrintDialog automatically (windows forms)? This would allow my users to choose the printer, while still making it clear they should print. In other words I want the app to click on the print button, not the user.

It would probably work to just add a printdialog to the form and setting the document to the crystal report????
Title: Windows Forms Examples   
Name: Richard Dudley
Date: 2005-12-30 8:35:44 PM
Comment:
Try the sample applications from Business Objects' Developer Zone (http://www.businessobjects.com/products/dev_zone/net/default.asp).
Title: Export to pdf, but with Windows form   
Name: James
Date: 2005-12-29 3:35:07 PM
Comment:
I know this is probably the wrong place for this question, but I don't know where else to look. Could someone please explain how to export a Crystal report to to a pdf in a windows form. I keep finding how to do it for a web form.
Title: Cut Lines   
Name: Richard Dudley
Date: 2005-12-22 9:44:02 AM
Comment:
John,

It sounds like you might have designed the report on A4 paper, but have letter loaded in the printer? If that's not it, check the page margins in your report and make sure they're set properly.
Title: Cut lines between pages   
Name: John
Date: 2005-12-22 9:10:42 AM
Comment:
I am using the client-side JavaScript method and the report is being printed properly, however in some cases last line is cut, the upper part of the line appears in one page and the lower part of the line appears in the next page. Is there any way to prevent this?
Title: IMAWA Help me!!!   
Name: Sainaa
Date: 2005-12-20 1:22:31 AM
Comment:
Missing parameter field current value.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: CrystalDecisions.CrystalReports.Engine.ParameterFieldCurrentValueException: Missing parameter field current value.

Source Error:


Line 162: req = New ExportRequestContext
Line 163: req.ExportInfo = exp
Line 164: st = oRpt.FormatEngine.ExportToStream(req)
Line 165: pg.Response.ClearHeaders()
Line 166: pg.Response.ClearContent()
Title: Why No Download   
Name: Richard Dudley
Date: 2005-11-08 9:05:45 AM
Comment:
I didn't provide a simple download with this article because this example isn't discrete enough. To ensure everyone could use the download, I'd have to provide a sample database (probably in Access for easy distribution, which few people use with Crystal), sample reports, and viewing pages, all just to demonstrate a handful of lines of code. Presumably, if you are reading this article, you already have all of those built yourself, and can insert the few lines of code you find useful.
Title: Sr. Software Engineer   
Name: Martin Braun
Date: 2005-11-08 8:15:59 AM
Comment:
I expected more information. The most helpful instructions provide a simple downloadable example that can be executed. Although marginally helpful, more information is needed.
Title: Client side printing   
Name: RIchard Dudley
Date: 2005-09-16 10:27:20 PM
Comment:
The client side printing will print the entire web page. You will need to open the report on a page by itself to print only the report.
Title: Good Info but I am not able to print the report using Client Script   
Name: Sameer Goyal
Date: 2005-09-16 4:28:18 AM
Comment:
Hi,

Thanks for the info but using the client script method I was not able to print the report instead it printd the form on which i have placed the Crystal Report Viewer.

Please help as to how should i print the report
Title: Error: 'PrintCommandObject' is undefined   
Name: Richard Dudley
Date: 2005-08-25 4:02:46 PM
Comment:
Make sure you have all the proper DLLs, and that the command youare trying to use applies to the correct version of CR. There are many CR versions, and they have different methods.
Title: Automatically printing crystal reports in ASP.NET   
Name: Deep
Date: 2005-08-25 3:18:18 AM
Comment:
When I try this method to print, I get following error:

Error: 'PrintCommandObject' is undefined.
Title: applyfont method of textobject does not work   
Name: Nurlan
Date: 2005-08-24 9:34:29 AM
Comment:
hi, i want to change font size of a textobject at runtime. applyfont method does not work for textobject altough it works for Fieldobject.can anybody help me to solve this problem.
Title: Mr   
Name: Thiruvenkadam
Date: 2005-08-18 4:50:23 AM
Comment:
what should I import for
Dim crReport As New ReportFile
VS.net is showing error in the "ReportFile"
Title: asp code require   
Name: Hitesh Patel
Date: 2005-07-22 6:36:40 AM
Comment:
hi,friends
how r u all
If possible then help me.
I need the code for the direct print of the crystal report using asp by click on the print button on the web forms
urgent
thanks
Hitesh Patel
Title: Blank Printer Name   
Name: Richard Dudley
Date: 2005-07-20 9:23:51 AM
Comment:
Rahul,

The printer name is blank, not null. There's a difference. I don't see where you set the value of str in your code sample.
Title: Dot Matrix Printer   
Name: Richard Dudley
Date: 2005-05-09 11:47:27 AM
Comment:
Priti,

See http://blogs.aspadvice.com/rjdudley/archive/2005/05/09/3520.aspx
Title: Printing   
Name: Priti
Date: 2005-05-06 9:01:39 AM
Comment:
will window.print command of javascript work with dot matrix printer?pls reply asap.
Title: understanding purpose   
Name: madhuker
Date: 2005-04-11 5:17:29 AM
Comment:
it is benifit if it is more clear
Title: sreedhar   
Name: ambatisreedhar
Date: 2005-03-27 11:20:04 PM
Comment:
good one
Title: Seek help at ASPAdvice.com   
Name: Richard Dudley
Date: 2005-02-19 9:10:57 PM
Comment:
If you have questions not directly related to the article, please visit the Crystal Report list on ASP Advice at http://aspadvice.com/SignUp/list.aspx?l=181&c=11. Sign up for the list and ask your question there.
Title: WELL DONE   
Name: NARAYANA DHOSS
Date: 2005-02-16 4:22:50 AM
Comment:
Sir i found the article to be very useful . well done. it clarified my doubts. i have another doubt. how can i display and print multiple reports in one web page.
Title: Printing crystal reports   
Name: Sajitha
Date: 2005-02-11 2:25:20 AM
Comment:
The article is good.

Could u please tell me how I can I print only certain portions of a crystal report? For eg: The report has a tabular structure and when the user selects 1, only the first column should get printed.
Title: Page Issue   
Name: Ammar
Date: 2005-02-03 3:50:16 AM
Comment:
Fine with multiple pages vertically but what if I have multiple pages horizontally? can we control that?
Title: suresh   
Name: suresh
Date: 2005-01-17 1:09:53 AM
Comment:
Good
Title: First Web Application with Reports   
Name: Blain Carlock
Date: 2005-01-11 8:03:39 AM
Comment:
This is a good start for me. I should be able to take the information here and send a report to the server side printer. -- Thanks
Title: taking data from optik form reader to database and then make graphics by using cristal reports   
Name: bety
Date: 2004-11-18 7:54:44 AM
Comment:
taking data from optik form reader to database and then make graphics by using cristal reports
Title: That's great if only I could use .NET   
Name: Tim
Date: 2004-11-12 12:11:21 AM
Comment:
Thanks for this article. There seems to be a shortage of information about automatically printing crystal reports. After reading, I believe that my solution could be solved with the PrintToPrinter method...but the production server I am developing for does not support the .NET applications. Is there something similar I can do with plain old ASP (CE9, RAS9)???

Thanks for your help!
--tim
Title: Automatically printing crystal reports in ASP.NET   
Name: Shiv Shankar Khanna
Date: 2004-10-31 5:49:44 AM
Comment:
Sir,
It is good help to New Developer community.
We were facing some difficulty on this.

Sir, Can you further help us to provide some tips for How to Export Web Based Repots using CRystal 10 into Text File which can be printed on Dot MAtrix Printers.

Thanks in Advance
Title: Print PDF automatically   
Name: Matt Watson
Date: 2004-10-22 10:20:11 AM
Comment:
You can use a tool from Meadroid.com to automatically print a PDF. The user has to have Adobe Reader installed. Their activex control will download the PDF and print it automatically. They also have lots of great tools for printing html. I've used their tools in a couple projects with great success.

http://www.meadroid.com/scriptx/index.asp
Title: PDF Display Page   
Name: IMAWA
Date: 2004-10-22 2:22:39 AM
Comment:
Private Sub imgPrint_Click(ByVal sender As System.Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles imgPrint.Click
'Function to open connection and table
Dim dt As DataTable
Dim SQLString As String = TKSUCSearchChild.SQLWhereClause
Try
'dt = GetTableData("View_Item", SQLString, SQLOrderByClause)
'dt = Your DataTable
oRpt = New YourReportName
oRpt.SetDataSource(dt)
View_PickingSlip.ReportSource = oRpt
Dim exp As ExportOptions
Dim req As ExportRequestContext
Dim st As System.IO.Stream
Dim b() As Byte
Dim pg As Page
pg = View_PickingSlip.Page
exp = New ExportOptions
exp.ExportFormatType = ExportFormatType.PortableDocFormat
exp.FormatOptions = New PdfRtfWordFormatOptions
req = New ExportRequestContext
req.ExportInfo = exp
With oRpt.FormatEngine.PrintOptions
.PaperSize = PaperSize.PaperLegal
.PaperOrientation = PaperOrientation.Landscape
End With
st = oRpt.FormatEngine.ExportToStream(req)
pg.Response.ClearHeaders()
pg.Response.ClearContent()
pg.Response.ContentType = "application/pdf"
ReDim b(st.Length)
st.Read(b, 0, CInt(st.Length))
pg.Response.BinaryWrite(b)
pg.Response.End()
dt.Dispose()
Catch ex As Exception
ShowError(ex.Message)
End Try

End Sub

Good Luck :

Imawa (Made In Bali)
Bluechip_asia@yahoo.com
Title: Use Active Reports   
Name: John
Date: 2004-10-16 10:33:39 AM
Comment:
Use active reports from data dynamics...no problem with exporting to anything you want and importantly...no need for run-time liscenses.
Title: 123   
Name: hhh
Date: 2004-10-16 7:35:36 AM
Comment:
As you may have learned from experience, the output from a CrystalReportViewer does not always look like you had intended. That is because the output is rendered as HTML and sent to the browser that then generates the web page. In order to get the exact formatting you want, you should export your reports as PDF documents. One advantage of doing so is that most users know how to print from the Acrobat Reader. Also, users can save reports and send them as e-mail attachments.

One downside to this option is that users must start the printing process themselves, which does not solve the problem of minimizing user interaction. Unfortunately, since a PDF is not a page rendered by the browser, none of the JavaScript tricks above will work for us. There is no simple way to automatically print an exported Crystal Report in PDF format.
Title: Problem running script   
Name: Joseph Bautista
Date: 2004-10-06 6:32:03 PM
Comment:
For some reason, I couldn't run this script. I got the error, "Object doesn't support this property or method", referring to the call to PrintCommandObject.ExecWB(6, -1) upon loading the form.
Title: Automatically printing crystal reports in ASP.NET   
Name: Eagle Westerling
Date: 2004-09-15 5:13:41 PM
Comment:
Good information on client side printing. Although it is not in details, but it is good enough for beginner. It will be better if more example is given.

Great job!
Title: Automatically printing crystal reports in ASP.NET   
Name: Richard Dudley, Author
Date: 2004-09-14 8:06:05 PM
Comment:
>Really gave NO INFORMATION AT ALL about exporting to PDF!

No, I did not. This article is about PRINTING, not EXPORTING. Examples of exporting to PDF and other formats abound on the Internet. One of the best (IMHO) is
http://dotnetjunkies.com/WebLog/richard.dudley/archive/2004/05/26/14543.aspx. Examples of exporting can also be found in the Visual Studio documentation and in the Business Objects knowledgebase.
Title: Automatically printing crystal reports in ASP.NET   
Name: mshorkey
Date: 2004-09-14 4:23:05 PM
Comment:
Talk about glossing over a subject. Really gave NO INFORMATION AT ALL about exporting to PDF!

Product Spotlight
Product Spotlight 



Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-03-19 2:27:45 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search