473,387 Members | 1,455 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,387 software developers and data experts.

Crystal Reports Zoom property

40
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.

Expand|Select|Wrap|Line Numbers
  1.  If (Session("rep") Is Nothing) Then
  2.  
  3.            LoadReport()
  4.  
  5.  
  6.         Else
  7.  
  8.             rep = CType(Session("rep"), ReportDocument)
  9.  
  10.         End If
  11.  
  12.         CrystalReportViewer1.ReportSource = rep
  13.  
  14.         CrystalReportViewer1.DataBind()
  15.  
  16.  
  17.  Sub LoadReport()
  18.  
  19.         Dim ds As New DataSet1
  20.  
  21.         Me.CrystalReportViewer1.PageZoomFactor = 100
  22.  
  23.  
  24.         Dim dt = ds.DMT_REPORT_SPECIFICATION
  25.  
  26.         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")
  27.  
  28.         ad.Fill(dt)
  29.  
  30.         Session("Samplerpt") = dt
  31.  
  32.  
  33.         rep.Load(Server.MapPath("CrystalReport.rpt"))
  34.  
  35.         rep.SetDataSource(dt)
  36.  
  37.         Session("rep") = rep
  38.  
  39.        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
May 27 '09 #1
0 2594

Sign in to post your reply or Sign up for a free account.

Similar topics

1
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...
9
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,...
0
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...
7
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....
2
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...
17
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...
2
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...
0
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...
1
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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: 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
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...
0
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,...

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.