Home
 FAQ
 Examples
 Documentation
 Download
 Purchase
 Feedback
 Support
  Examples

The examples in this section demonstrate how ColaReport can be used. The examples that appear here are written in C#, but VisualBasic.NET can be used with the component as well.

All of the examples use "code-behind", although it is not required. All of the code-behind code assumes that the aspx page contains a label called lblReport. As an example, the file demo1.aspx appears below.

Note: It is critical that the tag used for label report does NOT contain any style information that positions the label. This causes Internet Explorer to ignore forced page breaks. For example, the following style elements should be removed: style="LEFT: 40px; WIDTH: 680px; POSITION: absolute; TOP: 48px; HEIGHT: 32px"

<%@ Page language="c#" Codebehind="demo1.aspx.cs" AutoEventWireup="false" 
 Inherits="ColaReportDemo.demo1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>demo1</title>
		<meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
	</HEAD>
	<body>
		<form id="demo1" method="post" runat="server">
			<asp:Label id="lblReport" runat="server">Label</asp:Label></form>
	</body>
</HTML>
      
Copyright © 2003