hi,
I have a form where in i dropped a crystal report viewer.I created a report sample.rpt and this is the code which binds my report to the viewer. - If (Session("rep") Is Nothing) Then
-
-
LoadReport()
-
-
-
Else
-
-
rep = CType(Session("rep"), ReportDocument)
-
-
End If
-
-
CrystalReportViewer1.ReportSource = rep
-
-
CrystalReportViewer1.DataBind()
-
-
-
Sub LoadReport()
-
-
Dim ds As New DataSet1
-
-
Me.CrystalReportViewer1.PageZoomFactor = 100
-
-
-
Dim dt = ds.DMT_REPORT_SPECIFICATION
-
-
Dim ad As New SqlDataAdapter("select top 5 DRS_REPORT_ID,DRS_SYSTEM_ID,DRS_REPORT_NAME,DRS_REPORT_HEADER,DRS_REPORT_FOOTER from DMT_REPORT_SPECIFICATION", "Data Source=AMP-PRODUCTS;initial catalog=NT_Verzoenen_Dev;user id=recon_user; password=Password123")
-
-
ad.Fill(dt)
-
-
Session("Samplerpt") = dt
-
-
-
rep.Load(Server.MapPath("CrystalReport.rpt"))
-
-
rep.SetDataSource(dt)
-
-
Session("rep") = rep
-
-
End Sub
On executing it, the report works fine.I get the output. When i change the Zoom level factor dropdown to 75% it shows the report with 75% zoom level.Again changing to any other zoom factor level.The report shows no effect its in the same 75% level. Kindly let me know how the zoom level factor affects the report.
Thanks in advance.
Blacky
0 2626 Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Alex Stevens |
last post by:
Hi All,
I have implemented my own toolbar on a form which houses the crystal reprot
viewer.
I would like to have a combobox to allow the user to change the zoom level
to say 25 / 50 / 75 / 100 / 200%
However the crystal report viewer only seems to allow two levels of zoom,
using the .Zoom method, 1 for actual size, and 2 for fit to screen.
Is there any way that I can manually set the zoom level to something else
|
by: Robert Schuldenfrei |
last post by:
Hello NG,
After a bit of a wait my bookstore, SoftPro of Waltham, MA, got in the Brian
Bischof book: Crystal Reports .NET Programming. I have read a few books on
CR, but I am very new to it, C#, and SQL. The book is excellent.
Undaunted, I have plowed into a conversion of my old COBOL ERP system,
MCS-3, into C#. I have quite a bit of Inventory Control done and working.
For reports I am trying to use CR. I have a half a dozen of them...
|
by: Robert Schuldenfrei |
last post by:
Dear NG,
I am learning more about Crystal Reports (CR) running under .NET. Please
find my latest code at the end of this post. Here are my issues:
First, and most important, is Crystal Reports (CR) the right tool for
printing reports? I have well over 100 reports in my application and I
would like to use the best tool for the job.
Second, if CR is the right tool, am I using it correctly? Because it was
|
by: p |
last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also
have Crystal 9 pro on my development machine. The web app runs fine on my
dev machine but am having problems deploying. I created the websetup and
built the MSI, have the bundled version. Copied to webserver and ran
Websetup.msi. Said I had to remove old version, which I did, then reran
WebSetup.msi and keeps giving me this error. "The installer was interrupted...
|
by: Atley |
last post by:
I have imbedded a report in my project (added a report to my project and set
some fields)
How the heck do I access the report in my program?
I have looked on MSDN and searched for a walkthrough...
I can't find anything that tells me how to use the report viewer or how to
bring it up on screen...
| |
by: Peter Proost |
last post by:
Hi Group,
I've got an interesting problem, I don't know if this is the right group but
I think so because everything I've read about it so far says it's a .net
problem. Here's the problem, we're using crystal reports 9 and vb.net and
we're using the crystalrepotViewer to show our reports. But every time we
open a report the connection to or sql server remains, so if I open 5 forms
with the report viewer I've got 5 sleeping connections in...
|
by: matt |
last post by:
hello,
i have an .RPT file that i am using to load a report via the ASP.NET
CrystalReportViewer control. i dont include my .RPTs as embedded
resources...instead i load the absolute path of the .rpt (on the file
system) to the control's ".ReportSource" property. i do this because i
like to move new versions of the reports w/o having to rebuild the
site.
then i pass in filter criteria to the control's ".SelectionFormula"
|
by: Madhu Subramanya |
last post by:
I have a Crystal Report 10 report which i need to use in my app. I use Managed solution for this. There are no compiler or linker problems. I am not able to display this report on the screen but am able to print the report. I tried all member methods - Visible, Show, BringToFront, set_Size etc. Am i missing something.?
Here is the code snippet for your ref:
crReportDocument = new ReportDocument();
// MessageBox("Report Document Instance...
|
by: =?Utf-8?B?Q2lhcmFuIE8nJ0Rvbm5lbGw=?= |
last post by:
On reflection, you could possibly make the app a self extracting zip file
which extracts the EXE and a settings file and then starts the app, then when
you app closes, it can repack the settings file and itself into the exe. You
would probably want a tool for this bit which could be in the zip too.
So the app isnt single exe when running but when not running, it is.
Just an idea for you to think about.
Another option would possibly be to...
|
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...
|
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...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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,...
|
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...
|
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: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |