Permalink
Browse files

Ajout d'un rapport crystal reports

  • Loading branch information...
1 parent d47e74d commit d9ba512e9dcd9e39d6aca10ab0c05a8d826862b7 @jfcollin jfcollin committed Nov 27, 2012
Binary file not shown.
@@ -23,7 +23,9 @@
</div>
<asp:CheckBox runat="server" ID="cbTous" AutoPostBack="true" Text=" Sélectionner tout" CssClass="ckTouscss"/>
<asp:Button runat="server" ID="btnSauvegarde" Text="Sauvegarder la base de données" CssClass="btnAdminSauv" />
- <asp:Button runat="server" ID="btnObtenir" Text="Obtenir une copie de sauvegarde" CssClass="btnAdminSauv" /><br />
+ <asp:Button runat="server" ID="btnObtenir" Text="Obtenir une copie de sauvegarde" CssClass="btnAdminSauv" />
+ <asp:Button ID="btnRapport" runat="server" Text="Afficher le rapport du site" CssClass="btnAdminSauv" PostBackUrl="~/rapport.aspx" />
+ <br />
<asp:Label ID="lblErreur" runat="server"></asp:Label>
<div id="dMessage">
<asp:Label ID="lblMessage" runat="server" Text="Entrez votre message:" /> <br /><br />
@@ -77,6 +77,15 @@ Partial Public Class Administration
Protected WithEvents btnObtenir As Global.System.Web.UI.WebControls.Button
'''<summary>
+ '''Contrôle btnRapport.
+ '''</summary>
+ '''<remarks>
+ '''Champ généré automatiquement.
+ '''Pour modifier, déplacez la déclaration de champ du fichier de concepteur dans le fichier code-behind.
+ '''</remarks>
+ Protected WithEvents btnRapport As Global.System.Web.UI.WebControls.Button
+
+ '''<summary>
'''Contrôle lblErreur.
'''</summary>
'''<remarks>
@@ -47,6 +47,15 @@
<OptionInfer>On</OptionInfer>
</PropertyGroup>
<ItemGroup>
+ <Reference Include="CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=MSIL" />
+ <Reference Include="CrystalDecisions.ReportSource, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=MSIL" />
+ <Reference Include="CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=MSIL" />
+ <Reference Include="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ </Reference>
+ <Reference Include="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ </Reference>
<Reference Include="MySql.Data, Version=6.5.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>MySQL\MySql.Data.dll</HintPath>
@@ -135,6 +144,7 @@
<Content Include="MySQL\MySql.Data.dll" />
<Content Include="MySQL\MySql.Data.Entity.dll" />
<Content Include="MySQL\MySql.Web.dll" />
+ <Content Include="rapport.aspx" />
<Content Include="Recherche.aspx" />
<None Include="Service References\ServiceSecurite\configuration91.svcinfo" />
<None Include="Service References\ServiceSecurite\configuration.svcinfo" />
@@ -278,6 +288,19 @@
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
+ <Compile Include="rapport.aspx.designer.vb">
+ <DependentUpon>rapport.aspx</DependentUpon>
+ </Compile>
+ <Compile Include="rapport.aspx.vb">
+ <DependentUpon>rapport.aspx</DependentUpon>
+ <SubType>ASPXCodebehind</SubType>
+ </Compile>
+ <Compile Include="rapport_hobbycartes.vb">
+ <AutoGen>True</AutoGen>
+ <DesignTime>True</DesignTime>
+ <DependentUpon>rapport_hobbycartes.rpt</DependentUpon>
+ <SubType>Component</SubType>
+ </Compile>
<Compile Include="Recherche.aspx.designer.vb">
<DependentUpon>Recherche.aspx</DependentUpon>
</Compile>
@@ -320,6 +343,10 @@
<CustomToolNamespace>My.Resources</CustomToolNamespace>
<SubType>Designer</SubType>
</EmbeddedResource>
+ <EmbeddedResource Include="rapport_hobbycartes.rpt">
+ <Generator>CrystalDecisions.VSDesigner.CodeGen.ReportCodeGenerator</Generator>
+ <LastGenOutput>rapport_hobbycartes.vb</LastGenOutput>
+ </EmbeddedResource>
</ItemGroup>
<ItemGroup>
<Content Include="HobbyCartes.master" />
@@ -354,6 +381,9 @@
<ItemGroup>
<Folder Include="sauvegardes\" />
</ItemGroup>
+ <ItemGroup>
+ <Service Include="{C0C07587-41A7-46C8-8FBD-3F9C8EBE2DDC}" />
+ </ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.VisualBasic.targets" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
<ProjectExtensions>
@@ -3,6 +3,9 @@
<PropertyGroup>
<ProjectView>ShowAllFiles</ProjectView>
</PropertyGroup>
+ <PropertyGroup>
+ <ReferencePath>C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\</ReferencePath>
+ </PropertyGroup>
<ProjectExtensions>
<VisualStudio>
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
@@ -4,46 +4,71 @@
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
+ <appSettings>
+ <add key="CrystalImageCleaner-AutoStart" value="true" />
+ <add key="CrystalImageCleaner-Sleep" value="60000" />
+ <add key="CrystalImageCleaner-Age" value="120000" />
+ </appSettings>
+ <connectionStrings>
+ <add name="hobbycartesConnectionString" connectionString="server=localhost;User Id=mobby;password=hob_cartes5;Persist Security Info=True;database=hobbycartes" providerName="MySql.Data.MySqlClient" />
+ </connectionStrings>
<system.web>
<authentication mode="Forms" />
<compilation debug="true" strict="false" explicit="true" targetFramework="4.0">
<assemblies>
- <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
- <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
- <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
+ <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
+ <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
+ <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
+ <add assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />
+ <add assembly="CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />
+ <add assembly="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />
+ <add assembly="CrystalDecisions.ReportSource, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />
+ <add assembly="CrystalDecisions.ReportAppServer.Controllers, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />
+ <add assembly="CrystalDecisions.ReportAppServer.DataDefModel, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />
+ <add assembly="CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />
+ <add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />
+ <add assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
+ <add assembly="Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
+ <add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
+ <add assembly="System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
</assemblies>
+ <buildProviders>
+ <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
+ </buildProviders>
</compilation>
- <pages theme="MainTheme"/>
+ <pages theme="MainTheme" />
+ <httpHandlers>
+ <add path="CrystalImageHandler.aspx" verb="GET" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />
+ <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
+ validate="false" />
+ </httpHandlers>
</system.web>
<system.serviceModel>
<bindings>
<wsHttpBinding>
- <binding name="WSHttpBinding_ISecurite_hc" closeTimeout="00:01:00"
- openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
- bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
- maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text"
- textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
- <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
- maxBytesPerRead="4096" maxNameTableCharCount="16384" />
- <reliableSession ordered="true" inactivityTimeout="00:10:00"
- enabled="false" />
+ <binding name="WSHttpBinding_ISecurite_hc" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
+ <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
+ <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" />
<security mode="Message">
- <transport clientCredentialType="Windows" proxyCredentialType="None"
- realm="" />
- <message clientCredentialType="Windows" negotiateServiceCredential="true"
- algorithmSuite="Default" />
+ <transport clientCredentialType="Windows" proxyCredentialType="None" realm="" />
+ <message clientCredentialType="Windows" negotiateServiceCredential="true" algorithmSuite="Default" />
</security>
</binding>
</wsHttpBinding>
</bindings>
<client>
- <endpoint address="http://localhost:8732/Design_Time_Addresses/Lise/Service1/"
- binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_ISecurite_hc"
- contract="ServiceSecurite.ISecurite_hc" name="WSHttpBinding_ISecurite_hc">
+ <endpoint address="http://localhost:8732/Design_Time_Addresses/Lise/Service1/" binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_ISecurite_hc" contract="ServiceSecurite.ISecurite_hc" name="WSHttpBinding_ISecurite_hc">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
</client>
</system.serviceModel>
+ <system.webServer>
+ <handlers>
+ <add name="CrystalImageHandler.aspx_GET" verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" preCondition="integratedMode" />
+ <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
+ </handlers>
+ <validation validateIntegratedModeConfiguration="false" />
+ </system.webServer>
</configuration>
@@ -0,0 +1,16 @@
+<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/HobbyCartes.master" CodeBehind="rapport.aspx.vb" Inherits="HobbyCartes.rapport" %>
+<%@ Register assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" namespace="CrystalDecisions.Web" tagprefix="CR" %>
+<asp:Content ID="Content1" ContentPlaceHolderID="cphCorps" runat="server">
+ <asp:LinkButton ID="lkbtnRetour" runat="server" PostBackUrl="~/Administration.aspx" Font-Size="XX-Large" Text="Retour" />
+ <br />
+ <br />
+ <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server"
+ AutoDataBind="True" EnableDatabaseLogonPrompt="False"
+ EnableParameterPrompt="False" GroupTreeImagesFolderUrl="" Height="1202px"
+ ReportSourceID="CrystalReportSource1" ToolbarImagesFolderUrl=""
+ ToolPanelView="None" ToolPanelWidth="200px" Width="1104px" />
+ <CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
+ <Report FileName="rapport_hobbycartes.rpt">
+ </Report>
+ </CR:CrystalReportSource>
+</asp:Content>
@@ -0,0 +1,42 @@
+'------------------------------------------------------------------------------
+' <généré automatiquement>
+' Ce code a été généré par un outil.
+'
+' Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si
+' le code est régénéré.
+' </généré automatiquement>
+'------------------------------------------------------------------------------
+
+Option Strict On
+Option Explicit On
+
+
+Partial Public Class rapport
+
+ '''<summary>
+ '''Contrôle lkbtnRetour.
+ '''</summary>
+ '''<remarks>
+ '''Champ généré automatiquement.
+ '''Pour modifier, déplacez la déclaration de champ du fichier de concepteur dans le fichier code-behind.
+ '''</remarks>
+ Protected WithEvents lkbtnRetour As Global.System.Web.UI.WebControls.LinkButton
+
+ '''<summary>
+ '''Contrôle CrystalReportViewer1.
+ '''</summary>
+ '''<remarks>
+ '''Champ généré automatiquement.
+ '''Pour modifier, déplacez la déclaration de champ du fichier de concepteur dans le fichier code-behind.
+ '''</remarks>
+ Protected WithEvents CrystalReportViewer1 As Global.CrystalDecisions.Web.CrystalReportViewer
+
+ '''<summary>
+ '''Contrôle CrystalReportSource1.
+ '''</summary>
+ '''<remarks>
+ '''Champ généré automatiquement.
+ '''Pour modifier, déplacez la déclaration de champ du fichier de concepteur dans le fichier code-behind.
+ '''</remarks>
+ Protected WithEvents CrystalReportSource1 As Global.CrystalDecisions.Web.CrystalReportSource
+End Class
@@ -0,0 +1,8 @@
+Public Class rapport
+ Inherits System.Web.UI.Page
+
+ Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
+
+ End Sub
+
+End Class
Binary file not shown.
Oops, something went wrong.

0 comments on commit d9ba512

Please sign in to comment.