473,770 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

crystal in .net - exporting to .pdf when a report has parameters

I'm working with Brian Bischof's excellent 'crystal reports .net
programming', but I'm having one problem: I can export to .pdf in code, no
problem, using the exporttodisk method, but there appears to be no way to do
this when there are parameters in the report. If anyone knows how to export
to .pdf in code when there are params, I'd sure appreciate some help.

Bernie Yaeger
Nov 20 '05 #1
2 2135
did you fill the parameters in your code?
ex
crReportDocumen t.Load(Applicat ion.StartupPath & "\Reports\" &
strBestandsNaam & ".rpt")

crReportDocumen t.SetParameterV alue("VRTID", vrtID)

crReportDocumen t.SetParameterV alue("UserID", User.UserIdLogg ed)

eric

"Bernie Yaeger" <be*****@cherwe llinc.com> wrote in message
news:uQ******** ******@TK2MSFTN GP10.phx.gbl...
I'm working with Brian Bischof's excellent 'crystal reports .net
programming', but I'm having one problem: I can export to .pdf in code, no
problem, using the exporttodisk method, but there appears to be no way to do this when there are parameters in the report. If anyone knows how to export to .pdf in code when there are params, I'd sure appreciate some help.

Bernie Yaeger

Nov 20 '05 #2
Hi Eric,

Tx for your response. I think I've found the problem: I fill parameters in
the viewer object, but not in the doc object; if I fill them there, I think
that will solve it.

Thanks for you help.

Bernie

"EricJ" <er********@Thi Sbitconsult.be. RE> wrote in message
news:uA******** ******@TK2MSFTN GP12.phx.gbl...
did you fill the parameters in your code?
ex
crReportDocumen t.Load(Applicat ion.StartupPath & "\Reports\" &
strBestandsNaam & ".rpt")

crReportDocumen t.SetParameterV alue("VRTID", vrtID)

crReportDocumen t.SetParameterV alue("UserID", User.UserIdLogg ed)

eric

"Bernie Yaeger" <be*****@cherwe llinc.com> wrote in message
news:uQ******** ******@TK2MSFTN GP10.phx.gbl...
I'm working with Brian Bischof's excellent 'crystal reports .net
programming', but I'm having one problem: I can export to .pdf in code, no problem, using the exporttodisk method, but there appears to be no way
to do
this when there are parameters in the report. If anyone knows how to

export
to .pdf in code when there are params, I'd sure appreciate some help.

Bernie Yaeger


Nov 20 '05 #3

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

Similar topics

3
2825
by: Russ | last post by:
I have a page that uses crystal reports to generate reports from a SQl server database. As of a week ago everything was working fine, but now I am all of the sudden getting errors. To the best of my knowledge nothing was changed on the server. Here is the error: Error in File C:\DOCUME~1\WEBSERVER\ASPNET\Local Settings\Temp\temp_57908cf8-dba0-4327-b785-95de5cf6e523.rpt: Invalid export DLL or export format.
19
3882
by: LP | last post by:
I am using (trying to) CR version XI, cascading parameters feature works it asks user to enter params. But if page is resubmitted. It prompts for params again. I did set ReuseParameterValuesOnRefresh="True" in a viewer, but it still doesn't work. Did anyone run into this problem. What's the solution? Please help. Thank you
1
3898
by: Lasso | last post by:
Hi all, Im having problem in exporting pdf file from crystal report. Now I already can show the crystal report but error when exporting. this is my code: Dim myReport As USERReport = New USERReport Dim strExportFile As String = Server.MapPath ("../REPORT/") & "Output.pdf" Dim DiskOpts As CrystalDecisions.Shared.DiskFileDestinationOptions = New
1
3278
by: CBKowitz | last post by:
I have an intermittent problem, when viewing a crystal report. This problem only happens to some users and some report formats. When they try to view the report in Microsoft Word format the system prompts them to login (User name and Password). If they view it in PDF format they do not get the login prompt. I do not get the login prompt at all. This problem occurs with users on the Internet and our Intranet. I checked the web site and...
0
836
by: Sheshadrinath R | last post by:
Hello, I have designed some Crystal Reports, in ASP.NET. I have also given provision for exporting the crystal reports to word, excel, and PDF. The crystal report shows the result as expected when generated. So, when I export the report, the exported report shows wrong data. This data is consistent. I think the report is taking some default data. Will the report, takes some default data for exporting? What I have to do, to solve this...
0
1716
by: Linda W. | last post by:
Hi, I would appreciate any insight into the following issue.. I have an asp.net application with crystal reports being displayed.. All works fine from my IDE & I am trying to move the app to a test server. The report parameters are input on the first aspx page and I store them in the Session object & use a Server.Transfer() to get to the page that displays the crystal report. The report parameters are all successfully passed to...
2
9818
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
0
1346
by: smtwtfs007 | last post by:
Any body has any idea about his error please? I got this error at the time of creating crystal report. I tried everything to resolve this error. But I could not. Please help. Exception has been thrown by the target of an invocation. at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture, Boolean isBinderDefault, Assembly caller, Boolean...
0
1274
by: smtwtfs007 | last post by:
Any body has any idea about his error please? I got this error at the time of creating crystal report. I tried everything to resolve this error. But I could not. Please help. Exception has been thrown by the target of an invocation. at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture, Boolean isBinderDefault, Assembly caller, Boolean...
0
9602
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
10237
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
10017
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
9882
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...
1
7431
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
6690
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
5326
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...
0
5467
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2832
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.