473,386 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Crystal and permissions

In mine webapp I'm using the following code to generate a PDF and show it in
the browser:
private Reports.repZipRequest crReportDocument;
crReportDocument = new Reports.repZipRequest();
System.IO.MemoryStream ReportStream =
(System.IO.MemoryStream)crReportDocument.ExportToS tream(
ExportFormatType.PortableDocFormat);
Response.ClearContent();
Response.ClearHeaders();
Response.ContentType = "application/pdf";
Response.BinaryWrite(ReportStream.ToArray());
Response.End();

and I use the following code to print a report directly to a network printer:
private Reports.repZipRequest crReportDocument;
crReportDocument = new Reports.repZipRequest();
crReportDocument.PrintOptions.PrinterName = @"\\SERVER\PRINTERNAME";
crReportDocument.PrintToPrinter(1, true, 0, 0);

The first code works well but the second gives an error (Error in file
c:\.....: request cancelled by user.".

I've read that I have to edit the machine.config and change
username="machine" into username="SYSTEM" (<ProcessModel> tag). When I do
that, code 2 works and the report is printed, but code1 doesn't work anymore.

Please help. Anyone any idea?

Edward
Nov 18 '05 #1
0 1108

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

Similar topics

1
by: Running | last post by:
I read several MS KB articles but none of then helped. I have a NT4/IIS4 with an ASP application, Crystal 8 installed and a DSN/ODBC poiting to a DB2 database. The database is OK. After a...
1
by: Roger | last post by:
Hello all Haven't worked with Crystal since the VB 4 days. Now for the first time I'm trying to create a report in a .net/vb project using SQL 2000 for the Database. When I add the Crystal...
0
by: Max | last post by:
Hi wise people, Has anyone encountered the Crystal Reports problem I describe below? If so, how did you solve it? It seems that every article posted on google regarding CR and logon problems is...
1
by: Seema | last post by:
Hello, i am trying to export the crystal report in pdf format but i am getting error while exporting. Error in File c:\inetpub\wwwroot\Crys\CrystalReport1.rpt: Access to report file denied....
3
by: Dmitry Karneyev | last post by:
Hi! I need to deploy .NET application (ADO.NET + Crystal Reports) in local intranet. All assemblies of application will be shared in the folder on the server so all users can execute this...
1
by: codepuller | last post by:
Consider this approach: Embed the report in your project (add it to the project) Then put this code in the page that holds the viewer control 'Set the connection information...
2
by: Paul M. | last post by:
Hi, we have a asp (vb) .net www app which use crystal reports to produce output from a sqlserver 2000 database. The asp pages work fine up to the point where it is required to generate a crystal...
19
by: Michael O'Donnell | last post by:
Hi All Am having major problem with crystal reports...Have designed my report no problem, its when I try to run and display ther report that I am getting a "Login Failed" message. At first I...
1
by: Marc Castrechini | last post by:
We have recently setup a new server: Windows 2003 (Version 5.2) IIS 6.0 ASP.NET 2.0 Using existing code that previously worked we can't seem to export PDFs from our Crystal reports anymore...
1
by: appandairajc | last post by:
Hi Friends, I have a problem in Crystal Reports. I have a web application and it was published in machine. I am running that application through a virtual path. All the pages are...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.