ajustes al reporte

This commit is contained in:
Antonio Gonzalez
2020-05-15 12:30:39 -07:00
parent f2ea971f91
commit ff4a9372c1
3 changed files with 31 additions and 27 deletions

View File

@@ -6,14 +6,14 @@
</asp:Content> </asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server"> <asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
<li> <li>
<asp:LinkButton ID="ImgExcel" runat="server" ><img src="/Imagenes/IconoExcel.gif" /> Generar</asp:LinkButton></li> <asp:LinkButton ID="ImgExcel" runat="server" ><img src="/Imagenes/IconoExcel.gif" /> Excel</asp:LinkButton></li>
</asp:Content> </asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server"> <asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
Reporte de Saldos Bancarios Detalle Reporte de Saldos Bancarios Detalle
</asp:Content> </asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server"> <asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
<li> <li>
<asp:LinkButton ID="LinkPDF" runat="server"> <i class="fa fa-ad-pdf"></i> Imprimir</asp:LinkButton> <asp:LinkButton ID="LinkPDF" runat="server"> <i class="fa fa-ad-pdf"></i> PDF</asp:LinkButton>
</li> </li>
</asp:Content> </asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server"> <asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">

View File

@@ -177,13 +177,15 @@ Partial Class Bancos_RepSaldosDetalle
End Sub End Sub
Protected Sub ImgExcel_Click(sender As Object, e As EventArgs) Handles ImgExcel.Click Protected Sub ImgExcel_Click(sender As Object, e As EventArgs) Handles ImgExcel.Click
GvS.ExportToExcel("ReporteSaldos" & Now.ToShortDateString) ImprimirReporte("Excel")
End Sub End Sub
#Region "P D F" #Region "P D F"
Private Sub LinkPDF_Click(sender As Object, e As EventArgs) Handles LinkPDF.Click Private Sub LinkPDF_Click(sender As Object, e As EventArgs) Handles LinkPDF.Click
ImprimirReporte("PDF")
End Sub
Private Sub ImprimirReporte(formato As String)
Dim Imagen As New System.IO.FileInfo(String.Format("{0}/Logo.png", UsuarioActual.Empresa.Ruta)) Dim Imagen As New System.IO.FileInfo(String.Format("{0}/Logo.png", UsuarioActual.Empresa.Ruta))
Dim logouri = String.Format("{0}://{1}:{2}/Empresas/{3}/Logo.png", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, UsuarioActual.CveEmpresa) Dim logouri = String.Format("{0}://{1}:{2}/Empresas/{3}/Logo.png", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, UsuarioActual.CveEmpresa)
@@ -218,7 +220,7 @@ Partial Class Bancos_RepSaldosDetalle
params.Add(New ReportParameter("LogoPath", "")) params.Add(New ReportParameter("LogoPath", ""))
End If End If
ImprimirPDF("Empresas/Grales/Formatos/RepSaldosDetalle.rdlc", dt, params, "RepSaldosDetalle") ImprimirPDF("Empresas/Grales/Formatos/RepSaldosDetalle.rdlc", dt, params, "RepSaldosDetalle", Formato:=formato)
Ban.Dispose() Ban.Dispose()
End Sub End Sub

View File

@@ -5,7 +5,7 @@
<Line Name="Line1"> <Line Name="Line1">
<Top>0.08792cm</Top> <Top>0.08792cm</Top>
<Height>0cm</Height> <Height>0cm</Height>
<Width>20.43968cm</Width> <Width>19.02093cm</Width>
<Style> <Style>
<Border> <Border>
<Style>Solid</Style> <Style>Solid</Style>
@@ -16,31 +16,31 @@
<TablixBody> <TablixBody>
<TablixColumns> <TablixColumns>
<TablixColumn> <TablixColumn>
<Width>1cm</Width> <Width>0.99817cm</Width>
</TablixColumn> </TablixColumn>
<TablixColumn> <TablixColumn>
<Width>1.7cm</Width> <Width>0.89235cm</Width>
</TablixColumn> </TablixColumn>
<TablixColumn> <TablixColumn>
<Width>1.6439cm</Width> <Width>1.64207cm</Width>
</TablixColumn> </TablixColumn>
<TablixColumn> <TablixColumn>
<Width>6.48678cm</Width> <Width>6.29065cm</Width>
</TablixColumn> </TablixColumn>
<TablixColumn> <TablixColumn>
<Width>2.63648cm</Width> <Width>2.28597cm</Width>
</TablixColumn> </TablixColumn>
<TablixColumn> <TablixColumn>
<Width>1.29cm</Width> <Width>1.28817cm</Width>
</TablixColumn> </TablixColumn>
<TablixColumn> <TablixColumn>
<Width>1.83034cm</Width> <Width>1.82851cm</Width>
</TablixColumn> </TablixColumn>
<TablixColumn> <TablixColumn>
<Width>1.70625cm</Width> <Width>1.70442cm</Width>
</TablixColumn> </TablixColumn>
<TablixColumn> <TablixColumn>
<Width>2.02375cm</Width> <Width>2.02192cm</Width>
</TablixColumn> </TablixColumn>
</TablixColumns> </TablixColumns>
<TablixRows> <TablixRows>
@@ -473,7 +473,7 @@
</TablixCells> </TablixCells>
</TablixRow> </TablixRow>
<TablixRow> <TablixRow>
<Height>0.6cm</Height> <Height>0.83813cm</Height>
<TablixCells> <TablixCells>
<TablixCell> <TablixCell>
<CellContents> <CellContents>
@@ -803,8 +803,8 @@
<DataSetName>DataSet1</DataSetName> <DataSetName>DataSet1</DataSetName>
<Top>0.36336cm</Top> <Top>0.36336cm</Top>
<Left>0.06868cm</Left> <Left>0.06868cm</Left>
<Height>1.06771cm</Height> <Height>1.30584cm</Height>
<Width>20.3175cm</Width> <Width>18.95225cm</Width>
<ZIndex>1</ZIndex> <ZIndex>1</ZIndex>
<Style> <Style>
<Border> <Border>
@@ -813,13 +813,13 @@
</Style> </Style>
</Tablix> </Tablix>
</ReportItems> </ReportItems>
<Height>0.60091in</Height> <Height>0.79883in</Height>
<Style /> <Style />
</Body> </Body>
<Width>8.06795in</Width> <Width>7.48856in</Width>
<Page> <Page>
<PageHeader> <PageHeader>
<Height>2.94217cm</Height> <Height>3.048cm</Height>
<PrintOnFirstPage>true</PrintOnFirstPage> <PrintOnFirstPage>true</PrintOnFirstPage>
<PrintOnLastPage>true</PrintOnLastPage> <PrintOnLastPage>true</PrintOnLastPage>
<ReportItems> <ReportItems>
@@ -850,7 +850,9 @@
</Style> </Style>
</TextRun> </TextRun>
</TextRuns> </TextRuns>
<Style /> <Style>
<TextAlign>Center</TextAlign>
</Style>
</Paragraph> </Paragraph>
</Paragraphs> </Paragraphs>
<rd:DefaultName>Textbox1</rd:DefaultName> <rd:DefaultName>Textbox1</rd:DefaultName>
@@ -979,7 +981,7 @@
</Paragraphs> </Paragraphs>
<rd:DefaultName>Textbox13</rd:DefaultName> <rd:DefaultName>Textbox13</rd:DefaultName>
<Top>0.11854cm</Top> <Top>0.11854cm</Top>
<Left>16.8543cm</Left> <Left>15.48905cm</Left>
<Height>1.76352cm</Height> <Height>1.76352cm</Height>
<Width>3.53188cm</Width> <Width>3.53188cm</Width>
<ZIndex>3</ZIndex> <ZIndex>3</ZIndex>
@@ -1038,7 +1040,7 @@
</Paragraphs> </Paragraphs>
<rd:DefaultName>Textbox13</rd:DefaultName> <rd:DefaultName>Textbox13</rd:DefaultName>
<Top>2.41272cm</Top> <Top>2.41272cm</Top>
<Left>15.92826cm</Left> <Left>14.56301cm</Left>
<Height>0.52945cm</Height> <Height>0.52945cm</Height>
<Width>4.45792cm</Width> <Width>4.45792cm</Width>
<ZIndex>4</ZIndex> <ZIndex>4</ZIndex>
@@ -1110,7 +1112,7 @@
<Top>0.11437cm</Top> <Top>0.11437cm</Top>
<Left>0.10583cm</Left> <Left>0.10583cm</Left>
<Height>0cm</Height> <Height>0cm</Height>
<Width>20.33385cm</Width> <Width>18.9151cm</Width>
<Style> <Style>
<Border> <Border>
<Style>Solid</Style> <Style>Solid</Style>
@@ -1266,7 +1268,7 @@
</Paragraphs> </Paragraphs>
<rd:DefaultName>Textbox3</rd:DefaultName> <rd:DefaultName>Textbox3</rd:DefaultName>
<Top>0.22726cm</Top> <Top>0.22726cm</Top>
<Left>18.32031cm</Left> <Left>16.95506cm</Left>
<Height>0.36335cm</Height> <Height>0.36335cm</Height>
<Width>2.06587cm</Width> <Width>2.06587cm</Width>
<ZIndex>5</ZIndex> <ZIndex>5</ZIndex>