473,805 Members | 2,141 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Request cancelled by the user when printing Crystal Report

For reporting purposes I use Crystal Reports. The user can select a printer
from a dropdownlist. I set the printer with:

PrintOptions.Pr interName = @"\\SERVERNAME\ " +
lstPrinter.Sele ctedValue.Trim( );

and use PrintToPrinter( 1, false, 0, 0); to print.

Now I get the message:
Error in File
C:\DOCUME~1\ASP NET\LOCALS~1\Te mp\temp_f3d3ec6 c-c2d9-47fc-90e5-b321c0f18873.rp t: Request cancelled by the user.
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: CrystalDecision s.CrystalReport s.Engine.Intern alException:
Error in File
C:\DOCUME~1\ASP NET\LOCALS~1\Te mp\temp_f3d3ec6 c-c2d9-47fc-90e5-b321c0f18873.rp t: Request cancelled by the user

The report self is correct, an export to PDF instead of printing works.

Please help.
Nov 18 '05 #1
2 8310
You can print the report from the server and the Printer must be installed on the server.Only than you can print.Second options is that you can use client side printing using window.print() of javascript.

If you got another options plese mail me at ka************* @rediffmail.co

User submitted from AEWNET (http://www.aewnet.com/)
Nov 19 '05 #2
You can print the report from the server and the Printer must be installed on the server.Only than you can print.Second options is that you can use client side printing using window.print() of javascript.

If you got another options plese mail me at ka************* @rediffmail.co

User submitted from AEWNET (http://www.aewnet.com/)
Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2235
by: Maurice Mertens | last post by:
Hello, I'm trying to print a report to the printer but somehow it doesn't take the margins I set. I want the report to have a margin of 0.7 cm (397 twips), so in code I use the following: dim rpt as New rptOverview
0
2116
by: Rocio | last post by:
Hi: I have many ASP.net application created by VB.net2003 and I'm using crystal reports for .net, I'm using the crystal viewer to display my reports. I deployed those applications with the last crystal report modules for .net (english) and installed it on: - WIN2003 Server in english with SP 1. - Sql Server 2000 sp4
0
5170
by: Kalpesh | last post by:
Hi All, I am using .net crystal reports to develop the reports. The version of crystal report assemblies is 10.2.3600.0. When i run the reports i got following error. #region Retry Report Data into Dataset if (criteria == "") { dsregional = new DataSet();
2
9820
by: patrice.pare | last post by:
Hello, Here is a summary of my Dev Environment: I use Visual Studio 2005 Team Suite SP1 with Crystal Report XI SP1 on a Windows XP SP2 development workstation. I also use SQL Server 2000 SP4. And here a summary of what is the problem: I have a web application that has a web form into which I read data from a SQL database and load them in a ReportDocument of Crystal
3
2243
theBond
by: theBond | last post by:
When i am printing report through crystal report then it skip some on the pages in between. i.e. if i print 10 pages then it print page1 and page2 then it skip page3 and print page4 and again same inbetween. I copied the contents in word and print it and it works fine. why is that? theBond
5
2520
by: AMBLY | last post by:
Hi everyone! Could someone help me with this, please? I run Access2000 on XP Have created a Report. Have placed a button on a form to email the report Works fine - email is generated, ready to input the To address & send. However If I decide not to send it afterall and (X) close the email this is what happens: * I get a dB error message (1) which I can close with an OK, * then it runs the button's error message (Code line 19) , *...
1
9914
by: =?Utf-8?B?U3RldmUgQmFya2Vy?= | last post by:
Hi guys, I’m having an interesting problem with Crystal Reports. Thankfully, it’s simple to explain! I’ve got a report, and have added a picture to it. I configured the picture to use a bitmap. When the report is viewed using the crystal report viewer, the image appears fine. However, when I send the report to a printer, the image comes out with a grey background. I’ve had a good look through all the relevant report and report...
0
1586
by: David C. Barber | last post by:
How can I determine if a report in the Crystal Report Viewer on an ASP page has been printed by the user? It's important to know the difference between someone just viewing a report, and actually printing it. In olde days (e.g. VB6) I could hide the print button on the on the report viewer itself, put my own print button on the screen, and log the print action at the same time I called the Print method for the viewer myself. This new...
4
1871
mseo
by: mseo | last post by:
hi, I have a report for printing sales journal and there are many invoices which cancelled or have no data and when I need to print a report all those invoices don't appear within the report i know that is because the invoice detail has no data so I used the nz function within the query but no thing has been changed I need any help with this problem thanks for any help you may provide me
0
9718
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9596
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10613
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10368
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10107
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7649
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6876
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5544
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.