FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Buscar | Temas de Hoy | Marcar Foros Como Leídos |
|
Herramientas | Buscar en Tema | Desplegado |
#1
|
|||
|
|||
Exportar datos a excel desde embarcadero c++
Hola, estoy intentando exportar datos de una consulta a una hoja excel, pero me da error, este es el código que utilizo:
Código PHP:
Gracias!! Última edición por ecfisa fecha: 12-11-2020 a las 14:29:04. Razón: Agregar etiquetas al código |
#2
|
||||
|
||||
Hola, bienvenido a clubdelphi, por favor, revisa nuestra guía de estilo, gracias
|
#3
|
|||
|
|||
Hola, ya me la he leído. El código que adjunto es el que teníamos en el Borland 5 pero al migrar a Embarcadero no funciona. No he encontrado en el foro otra manera de hacerlo en c++. Me da error de tipo de variable en la fila 23.
Gracias! |
#4
|
||||
|
||||
Hola tekito.
Cuando agregues código a tu mensaje usa las etiquetas: [php] ...codigo... [/php] para una mejor visualización, gracias. Saludos
__________________
Daniel Didriksen Guía de estilo - Uso de las etiquetas - La otra guía de estilo .... |
#5
|
|||
|
|||
Ok! Gracias!
|
#6
|
||||
|
||||
Y no podemos saber cuál es la línea 23 porque puede haber más código antes de lo que has publicado.
|
#7
|
|||
|
|||
Hola, la fila no ha cambiado, sigue siendo la 23, me da error en el tipo de variable.
Aquí: _libro.OlePropertyGet("Item",1).OlePropertySet("Name",hoja); Gracias. |
#8
|
||||
|
||||
Cita:
No sé qué tipo de variable espera, ni sabemos de qué tipo es tu variable "hoja", por ejemplo. Y recuerda usar las etiquetas de código, como te han comentado antes, gracias. |
#9
|
|||
|
|||
Tienes razón, hoja es de tipo texto:
Código PHP:
|
#10
|
||||
|
||||
Pues no sé, pero "propery set" parece que es para proporcionarle un valor a alguna propiedad, puede que espere un entero, por ejemplo número de página.
Mira esto. Y "habitantes" no creo que sea una propiedad. |
#11
|
|||
|
|||
Tienes razón espera un entero, si lo cambio por un entero funciona.
¿Pero la propiedad no sería "Name"? ¿No se haría así para ponerle nombre a la hoja de excel? Código PHP:
Muchas gracias! |
#12
|
|||
|
|||
¿me echáis una mano, porfa, que estoy atascado?
Saludos. |
#13
|
||||
|
||||
#14
|
|||
|
|||
Hola, ya lo conseguí, pongo el código:
Código PHP:
|
#15
|
||||
|
||||
Hola tekito, gracias por compartir la solución.
Saludos
__________________
Daniel Didriksen Guía de estilo - Uso de las etiquetas - La otra guía de estilo .... |
Herramientas | Buscar en Tema |
Desplegado | |
|
|
Temas Similares | ||||
Tema | Autor | Foro | Respuestas | Último mensaje |
Exportar a Excel desde builder 6.0 | damian2000 | C++ Builder | 9 | 22-06-2016 18:18:56 |
exportar datos desde excel a mysql | voldemmor | Varios | 7 | 02-04-2009 15:39:03 |
exportar a excel desde php | halizia | PHP | 22 | 29-11-2006 09:20:37 |
Exportar desde BDE a Excel | tamara | Servers | 1 | 03-10-2003 23:05:02 |
Exportar desde Tabla BDE a Excel | tamara | Conexión con bases de datos | 1 | 03-10-2003 18:20:03 |
|