<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comentarios para Buayacorp</title>
	<atom:link href="http://www.buayacorp.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.buayacorp.com</link>
	<description>Diseño y Programación</description>
	<lastBuildDate>Tue, 07 Feb 2012 11:50:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>Comentario en Exportar el contenido de un GridView a Excel por Antoni Nerin Toboso</title>
		<link>http://www.buayacorp.com/archivos/exportar-el-contenido-de-un-gridview-a-excel/#comment-44146</link>
		<dc:creator>Antoni Nerin Toboso</dc:creator>
		<pubDate>Tue, 07 Feb 2012 11:50:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.buayacorp.com/archivos/exportar-el-contenido-de-un-gridview-a-excel/#comment-44146</guid>
		<description>Esta es una clase en VB que genera un excel a partir de un DataSet.

Imports System
Imports System.Collections.Generic
Imports System.Text
Imports System.Drawing

Imports Microsoft.Office.Interop.Excel
Imports System.Reflection

Imports config = System.Configuration
Imports ficheros = System.IO
Imports Variables.cVariables

Namespace Exportar
    Public Class ExportarDades

        Public Sub New()
        End Sub

        Public Shared Sub Exportar_a_Excel(ByVal Titol As String, ByVal ExcelName As String, ByVal sheets As String, ByVal DS As DataSet)

            &#039; Prevenir conflicto de idiomas. Si no se pone genera este error:
            &#039;              Old format or invalid type library. (Exception from HRESULT: 0x80028018 (TYPE_E_INVDATAREAD))
            System.Threading.Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.CreateSpecificCulture(&quot;en-US&quot;)

            Try

                Dim _excel As New Application()
                Dim _wBook As Workbook = _excel.Workbooks.Add(Missing.Value)

                Dim idx As Integer = 0
                While idx &lt; DS.Tables.Count

                    Dim _sheet As Worksheet = DirectCast(_wBook.Worksheets.Add(Missing.Value, Missing.Value, Missing.Value, Missing.Value), Worksheet)
                    _sheet.Name = sheets

                    &#039; Situación del logo —si está en—: A1
                    Dim imagen As Object = _sheet.Pictures.Insert(&quot;logo.jpg&quot;)
                    Dim cell = _sheet.Cells(1, 1)

                    &#039;Centramos el ancho
                    Dim ancho As Double = cell.Offset(0, 1).Left - cell.Left
                    imagen.Left = cell.Left + ancho / 2 - imagen.Width / 2
                    If imagen.Left &lt; 1 Then imagen.Left = 1
                    &#039;Centramos el alto
                    Dim alto As Double = cell.Offset(1, 0).Top - cell.Top
                    imagen.Top = cell.Top + alto / 2 - imagen.Height / 2
                    If imagen.Top &lt; 1 Then imagen.Top = 1

                    &#039;Suponemos que el logo ocupa 5 filas..., montamos el título del informe en la fila 6 i damos el format establecido. 
                    Dim r As Integer = 6
                    _sheet.Cells(r, 1) = Titol.ToString
                    Dim rng As Range = DirectCast(_sheet.Cells(r, 1), Range)
                    rng.EntireRow.Font.Bold = True
                    rng.EntireRow.Font.Size = 20
                    rng.EntireRow.Interior.ColorIndex = 40
                    rng.EntireRow.Font.ColorIndex = 30

                    &#039;2 lineas mes i montamos las cabeceras de las columnes i damos el format
                    r += 2
                    Dim k = 0
                    While k &lt; DS.Tables(idx).Columns.Count
                        _sheet.Cells(r, k + 1) = DS.Tables(idx).Columns(k).ColumnName.ToString()
                        System.Math.Max(System.Threading.Interlocked.Increment(k), k - 1)
                    End While
                    rng = DirectCast(_sheet.Cells(r, DS.Tables(idx).Columns.Count), Range)
                    rng.EntireRow.Font.Bold = True
                    rng.EntireRow.Interior.ColorIndex = 30
                    rng.EntireRow.Font.ColorIndex = 40

                    &#039;Y a partir de aquí, montamos todos los datos del DataSet
                    r = 0
                    While r &lt; DS.Tables(idx).Rows.Count
                        k = 0
                        While k &lt; DS.Tables(idx).Columns.Count
                            _sheet.Cells(r + 9, k + 1) = DS.Tables(idx).Rows(r).ItemArray(k)
                            System.Math.Max(System.Threading.Interlocked.Increment(k), k - 1)
                        End While
                        System.Math.Max(System.Threading.Interlocked.Increment(r), r - 1)

                    End While
                    System.Math.Max(System.Threading.Interlocked.Increment(idx), idx - 1)
                End While

                If ficheros.File.Exists(ExcelName) Then
                    ficheros.File.Delete(ExcelName)
                End If

                &#039; Salimos del Excel 
                _excel.ActiveCell.Worksheet.SaveAs(ExcelName, XlFileFormat.xlOpenXMLWorkbook, Missing.Value, Missing.Value, Missing.Value, Missing.Value, _
                 Missing.Value, Missing.Value, Missing.Value, Missing.Value)
                _excel.Quit()

                &#039; Mostrar el excel
                _excel.Visible = False

                &#039; Matamos el proces si queda abierto
                deleteProcess()
            Catch ex As Exception
                Dim ss As String = ex.Message

                &#039; Matamos el proces si queda abierto
                deleteProcess(&quot;Excel&quot;)
            End Try

        End Sub

        Private Shared Sub deleteProcess(ByVal Process As String)

            Dim miproceso As System.Diagnostics.Process() = System.Diagnostics.Process.GetProcessesByName(Processo)

            For Each pc As System.Diagnostics.Process In miproceso
                pc.Kill()
            Next

        End Sub

    End Class
End Namespace</description>
		<content:encoded><![CDATA[<p>Esta es una clase en VB que genera un excel a partir de un DataSet.</p>
<p>Imports System<br />
Imports System.Collections.Generic<br />
Imports System.Text<br />
Imports System.Drawing</p>
<p>Imports Microsoft.Office.Interop.Excel<br />
Imports System.Reflection</p>
<p>Imports config = System.Configuration<br />
Imports ficheros = System.IO<br />
Imports Variables.cVariables</p>
<p>Namespace Exportar<br />
    Public Class ExportarDades</p>
<p>        Public Sub New()<br />
        End Sub</p>
<p>        Public Shared Sub Exportar_a_Excel(ByVal Titol As String, ByVal ExcelName As String, ByVal sheets As String, ByVal DS As DataSet)</p>
<p>            ' Prevenir conflicto de idiomas. Si no se pone genera este error:<br />
            '              Old format or invalid type library. (Exception from HRESULT: 0x80028018 (TYPE_E_INVDATAREAD))<br />
            System.Threading.Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.CreateSpecificCulture("en-US")</p>
<p>            Try</p>
<p>                Dim _excel As New Application()<br />
                Dim _wBook As Workbook = _excel.Workbooks.Add(Missing.Value)</p>
<p>                Dim idx As Integer = 0<br />
                While idx &lt; DS.Tables.Count</p>
<p>                    Dim _sheet As Worksheet = DirectCast(_wBook.Worksheets.Add(Missing.Value, Missing.Value, Missing.Value, Missing.Value), Worksheet)<br />
                    _sheet.Name = sheets</p>
<p>                    &#039; Situación del logo —si está en—: A1<br />
                    Dim imagen As Object = _sheet.Pictures.Insert(&quot;logo.jpg&quot;)<br />
                    Dim cell = _sheet.Cells(1, 1)</p>
<p>                    &#039;Centramos el ancho<br />
                    Dim ancho As Double = cell.Offset(0, 1).Left - cell.Left<br />
                    imagen.Left = cell.Left + ancho / 2 - imagen.Width / 2<br />
                    If imagen.Left &lt; 1 Then imagen.Left = 1<br />
                    &#039;Centramos el alto<br />
                    Dim alto As Double = cell.Offset(1, 0).Top - cell.Top<br />
                    imagen.Top = cell.Top + alto / 2 - imagen.Height / 2<br />
                    If imagen.Top &lt; 1 Then imagen.Top = 1</p>
<p>                    &#039;Suponemos que el logo ocupa 5 filas..., montamos el título del informe en la fila 6 i damos el format establecido.<br />
                    Dim r As Integer = 6<br />
                    _sheet.Cells(r, 1) = Titol.ToString<br />
                    Dim rng As Range = DirectCast(_sheet.Cells(r, 1), Range)<br />
                    rng.EntireRow.Font.Bold = True<br />
                    rng.EntireRow.Font.Size = 20<br />
                    rng.EntireRow.Interior.ColorIndex = 40<br />
                    rng.EntireRow.Font.ColorIndex = 30</p>
<p>                    &#039;2 lineas mes i montamos las cabeceras de las columnes i damos el format<br />
                    r += 2<br />
                    Dim k = 0<br />
                    While k &lt; DS.Tables(idx).Columns.Count<br />
                        _sheet.Cells(r, k + 1) = DS.Tables(idx).Columns(k).ColumnName.ToString()<br />
                        System.Math.Max(System.Threading.Interlocked.Increment(k), k - 1)<br />
                    End While<br />
                    rng = DirectCast(_sheet.Cells(r, DS.Tables(idx).Columns.Count), Range)<br />
                    rng.EntireRow.Font.Bold = True<br />
                    rng.EntireRow.Interior.ColorIndex = 30<br />
                    rng.EntireRow.Font.ColorIndex = 40</p>
<p>                    &#039;Y a partir de aquí, montamos todos los datos del DataSet<br />
                    r = 0<br />
                    While r &lt; DS.Tables(idx).Rows.Count<br />
                        k = 0<br />
                        While k &lt; DS.Tables(idx).Columns.Count<br />
                            _sheet.Cells(r + 9, k + 1) = DS.Tables(idx).Rows(r).ItemArray(k)<br />
                            System.Math.Max(System.Threading.Interlocked.Increment(k), k - 1)<br />
                        End While<br />
                        System.Math.Max(System.Threading.Interlocked.Increment(r), r - 1)</p>
<p>                    End While<br />
                    System.Math.Max(System.Threading.Interlocked.Increment(idx), idx - 1)<br />
                End While</p>
<p>                If ficheros.File.Exists(ExcelName) Then<br />
                    ficheros.File.Delete(ExcelName)<br />
                End If</p>
<p>                &#039; Salimos del Excel<br />
                _excel.ActiveCell.Worksheet.SaveAs(ExcelName, XlFileFormat.xlOpenXMLWorkbook, Missing.Value, Missing.Value, Missing.Value, Missing.Value, _<br />
                 Missing.Value, Missing.Value, Missing.Value, Missing.Value)<br />
                _excel.Quit()</p>
<p>                &#039; Mostrar el excel<br />
                _excel.Visible = False</p>
<p>                &#039; Matamos el proces si queda abierto<br />
                deleteProcess()<br />
            Catch ex As Exception<br />
                Dim ss As String = ex.Message</p>
<p>                &#039; Matamos el proces si queda abierto<br />
                deleteProcess(&quot;Excel&quot;)<br />
            End Try</p>
<p>        End Sub</p>
<p>        Private Shared Sub deleteProcess(ByVal Process As String)</p>
<p>            Dim miproceso As System.Diagnostics.Process() = System.Diagnostics.Process.GetProcessesByName(Processo)</p>
<p>            For Each pc As System.Diagnostics.Process In miproceso<br />
                pc.Kill()<br />
            Next</p>
<p>        End Sub</p>
<p>    End Class<br />
End Namespace</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentario en Mapeo de secuencias de PostgreSQL en NHibernate por Ronald pinto</title>
		<link>http://www.buayacorp.com/archivos/mapeo-de-secuencias-de-postgresql-en-nhibernate/#comment-43781</link>
		<dc:creator>Ronald pinto</dc:creator>
		<pubDate>Thu, 02 Feb 2012 12:34:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.buayacorp.com/archivos/mapeo-de-secuencias-de-postgresql-en-nhibernate/#comment-43781</guid>
		<description>Alex:

El ejemplo esta bueno, pero si me lo podias enviar a mi correo el ejemplo, por que baje intronhibernate.zip y al momento de descomprimir me sale error &quot;que no se puede abrir el archivo&quot;.

Muchas gracias</description>
		<content:encoded><![CDATA[<p>Alex:</p>
<p>El ejemplo esta bueno, pero si me lo podias enviar a mi correo el ejemplo, por que baje intronhibernate.zip y al momento de descomprimir me sale error "que no se puede abrir el archivo".</p>
<p>Muchas gracias</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentario en 15 herramientas gratuitas para detectar vulnerabilidades de Inyección de SQL por 15 herramientas para encontrar vulnerabilidades por inyección SQL &#124; OpenSecurity</title>
		<link>http://www.buayacorp.com/archivos/15-herramientas-gratuitas-para-detectar-vulnerabilidades-de-inyeccion-de-sql/#comment-43768</link>
		<dc:creator>15 herramientas para encontrar vulnerabilidades por inyección SQL &#124; OpenSecurity</dc:creator>
		<pubDate>Thu, 02 Feb 2012 10:02:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.buayacorp.com/archivos/15-herramientas-gratuitas-para-detectar-vulnerabilidades-de-inyeccion-de-sql/#comment-43768</guid>
		<description>[...] buayacorp leemos que los chicos de Security-Hacks han publicado una lista de 15 herramientas que tienen la [...]</description>
		<content:encoded><![CDATA[<p>[...] buayacorp leemos que los chicos de Security-Hacks han publicado una lista de 15 herramientas que tienen la [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentario en BConverter una aplicación MIDlet en J2ME por luis</title>
		<link>http://www.buayacorp.com/archivos/bconverter-un-aplicacion-midlet-en-j2me/#comment-43222</link>
		<dc:creator>luis</dc:creator>
		<pubDate>Tue, 24 Jan 2012 20:59:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.buayacorp.com/archivos/bconverter-un-aplicacion-midlet-en-j2me/#comment-43222</guid>
		<description>mira necesito ayuda para continuar una aplicacion en j2me con netbeans, vos me podes dar un empujon, por favor.
gracias</description>
		<content:encoded><![CDATA[<p>mira necesito ayuda para continuar una aplicacion en j2me con netbeans, vos me podes dar un empujon, por favor.<br />
gracias</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentario en Exportar el contenido de un GridView a Excel por Carlos Marx</title>
		<link>http://www.buayacorp.com/archivos/exportar-el-contenido-de-un-gridview-a-excel/#comment-42874</link>
		<dc:creator>Carlos Marx</dc:creator>
		<pubDate>Wed, 18 Jan 2012 19:49:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.buayacorp.com/archivos/exportar-el-contenido-de-un-gridview-a-excel/#comment-42874</guid>
		<description>Por que en mi pagina el nombre del archivo descargado me pone toda la ruta c_intetpub_reportes .... y no solo el nombre del archivo??</description>
		<content:encoded><![CDATA[<p>Por que en mi pagina el nombre del archivo descargado me pone toda la ruta c_intetpub_reportes .... y no solo el nombre del archivo??</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentario en Tablas con CSS por pp</title>
		<link>http://www.buayacorp.com/archivos/tablas-con-css/#comment-42774</link>
		<dc:creator>pp</dc:creator>
		<pubDate>Tue, 17 Jan 2012 17:09:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.buayacorp.com/archivos/tablas-con-css/#comment-42774</guid>
		<description>&lt;a href=&quot;&quot; title=&quot;&quot; rel=&quot;nofollow&quot;&gt; &lt;abbr title=&quot;&quot;&gt; &lt;acronym title=&quot;&quot;&gt; &lt;b&gt; &lt;blockquote cite=&quot;&quot;&gt; &lt;cite&gt; &lt;code&gt; &lt;del datetime=&quot;&quot;&gt; &lt;em&gt; &lt;i&gt; &lt;q cite=&quot;&quot;&gt; &lt;strike&gt; &lt;strong&gt;</description>
		<content:encoded><![CDATA[<p><a href="" title="" rel="nofollow"> <abbr title=""> <acronym title=""> <b><br />
<blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong></strong></strike></q></i></em></del></code></cite></p></blockquote>
<p></b></acronym></abbr></a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentario en Mostrar una imagen desde blob mysql usando PHP por jesus yoel</title>
		<link>http://www.buayacorp.com/archivos/mostrar-una-imagen-desde-blob-mysql-usando-php/#comment-42165</link>
		<dc:creator>jesus yoel</dc:creator>
		<pubDate>Thu, 12 Jan 2012 01:12:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.buayacorp.com/archivos/mostrar-una-imagen-desde-blob-mysql-usando-php/#comment-42165</guid>
		<description>hola soy jesus yoel busco amigos y amigas para conbersar y conpartir muchos momentos</description>
		<content:encoded><![CDATA[<p>hola soy jesus yoel busco amigos y amigas para conbersar y conpartir muchos momentos</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentario en Jugando con el nuevo perfil de Facebook por laura guzman</title>
		<link>http://www.buayacorp.com/archivos/jugando-con-el-nuevo-perfil-de-facebook/#comment-41625</link>
		<dc:creator>laura guzman</dc:creator>
		<pubDate>Fri, 06 Jan 2012 23:31:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.buayacorp.com/archivos/jugando-con-el-nuevo-perfil-de-facebook/#comment-41625</guid>
		<description>mi facebook es divino</description>
		<content:encoded><![CDATA[<p>mi facebook es divino</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentario en Jugando con el nuevo perfil de Facebook por laura guzman</title>
		<link>http://www.buayacorp.com/archivos/jugando-con-el-nuevo-perfil-de-facebook/#comment-41624</link>
		<dc:creator>laura guzman</dc:creator>
		<pubDate>Fri, 06 Jan 2012 23:30:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.buayacorp.com/archivos/jugando-con-el-nuevo-perfil-de-facebook/#comment-41624</guid>
		<description>jajjajajajujuujujjajujaju</description>
		<content:encoded><![CDATA[<p>jajjajajajujuujujjajujaju</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentario en Mostrar una imagen desde blob mysql usando PHP por anderson</title>
		<link>http://www.buayacorp.com/archivos/mostrar-una-imagen-desde-blob-mysql-usando-php/#comment-41090</link>
		<dc:creator>anderson</dc:creator>
		<pubDate>Mon, 02 Jan 2012 21:21:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.buayacorp.com/archivos/mostrar-una-imagen-desde-blob-mysql-usando-php/#comment-41090</guid>
		<description>muy bien por el post +10mi problema es q no se como pasar el valor del id de la foto, es decir yo quiero q me haga una busqueda y me muestre la foto pasando el id de esta,</description>
		<content:encoded><![CDATA[<p>muy bien por el post +10mi problema es q no se como pasar el valor del id de la foto, es decir yo quiero q me haga una busqueda y me muestre la foto pasando el id de esta,</p>
]]></content:encoded>
	</item>
</channel>
</rss>

