Gracias Benjo y pregunta
Publicado por vibet (25 intervenciones) el 26/01/2005 01:33:43
Gracias benjo por ayudarme con el código para mostrar imágenes en excel, ya logré yo por mi lado extraerlas de la base de datos,
Sabrías como dar un formato fijo a la foto que exporto a excel, he probado grabando macros pero me dice que el ojeto no admite esa propiedad , te dejo un fragmento
xExcel.ActiveSheet.Pictures.Insert (Rst!foto)
xExcel.Selection.Height = 59.25'A PARTIR DE AQUÍ TENGO EL PROBLEMA
Selection.ShapeRange.Width = 59.25
Selection.ShapeRange.Rotation = 0#
Selection.ShapeRange.IncrementTop 61.5
xExcel.Range("G8").Select
xExcel.ActiveSheet.Pictures.Insert (Rst!logo)
Selection.ShapeRange.Height = 59.25
Selection.ShapeRange.Width = 59.25
Selection.ShapeRange.Rotation = 0#
xExcel.Range("A1").Select
Me.MousePointer = vbDefault
xExcel.Visible = True
Set xExcel = Nothing
End Sub
Sabrías como dar un formato fijo a la foto que exporto a excel, he probado grabando macros pero me dice que el ojeto no admite esa propiedad , te dejo un fragmento
xExcel.ActiveSheet.Pictures.Insert (Rst!foto)
xExcel.Selection.Height = 59.25'A PARTIR DE AQUÍ TENGO EL PROBLEMA
Selection.ShapeRange.Width = 59.25
Selection.ShapeRange.Rotation = 0#
Selection.ShapeRange.IncrementTop 61.5
xExcel.Range("G8").Select
xExcel.ActiveSheet.Pictures.Insert (Rst!logo)
Selection.ShapeRange.Height = 59.25
Selection.ShapeRange.Width = 59.25
Selection.ShapeRange.Rotation = 0#
xExcel.Range("A1").Select
Me.MousePointer = vbDefault
xExcel.Visible = True
Set xExcel = Nothing
End Sub
Valora esta pregunta


0