Greetings, I need to print a document type (constancy of study) taking data from a table .DBF, I use the MiTPrint library but does not allow me justify the text, I have been looking but not print using word that combines achievement information in the table with the text, if I do it manually in the word can do but since I did not apply because I could not know the commands needed, if any of you has done something similar I appreciate your help and an example to guide me to solve the problem, thanks for your time.
Saludos, necesito imprimir un documento tipo (constancia de estudio) tomando los datos de una tabla .DBF, utilizo la libreria MiTPrint pero no me permite justificar y por ello la descarte, he estado buscando como imprimir utilizando word pero no logro que se combine la información de la tabla con el texto, si lo hago de forma manual dentro del word lo puedo hacer pero desde la aplicación que hice no he podido debido a que no conozco los comandos necesarios, si alguno de ustedes ha hecho algo similar agradezco su ayuda y un ejemplo que me guie para solucionar el problema, gracias por su tiempo.
Juan A. Sierra S.
Barinas - Venezuela
OLE + Word
Moderator: Rathinagiri
- jas_sierra
- Posts: 18
- Joined: Sat Aug 23, 2008 2:13 pm
- DBs Used: DBF, Starting In MySQL
- Location: Barinitas - Venezuela
Re: OLE + Word
Hi my friend,
Please, so kind, see an sample in "C:\hmg\SAMPLES\OLE".
I hope that help.
My best regards,
Please, so kind, see an sample in "C:\hmg\SAMPLES\OLE".
I hope that help.
My best regards,
Re: OLE + Word
Hello,
IMHO, it will be better to copy the text to clip board and then paste it to any word processors - MS-Word, Open Office Write etc. So that, your app can be used in any computer, where there is no MS Office. And your app will not depend on MS Word
Please correct me, if I can't understand your problem.
With best regards.
Sudip
IMHO, it will be better to copy the text to clip board and then paste it to any word processors - MS-Word, Open Office Write etc. So that, your app can be used in any computer, where there is no MS Office. And your app will not depend on MS Word
Please correct me, if I can't understand your problem.
With best regards.
Sudip
With best regards,
Sudip
Sudip
- Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: OLE + Word
I think that, our friend wants to justify both the right and left side while printing the text/paragraph stored in a dbf table.
IMHO if we can create the logic to justify the text, it can be used in the printing function itself. Then, we don't need OLE/Word.
IMHO if we can create the logic to justify the text, it can be used in the printing function itself. Then, we don't need OLE/Word.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
Re: OLE + Word
Hola Juan Sierra,
Fijate en este ejemplo que adjunto.
Basicamente reemplaza lo que esta entre "[]" (corchetes) por los datos de la tabla que utilises, luego lo abres con "word" y desde alli lo imprimes.
Es para la "hmg extendida". Supongo que con pocas modificaciones, deberia funcionar para la hmg oficial.
útiliza un archivo "rtf" muy simple de hacer con "word". No necesitas usar OLE ni nada de eso.!
Espero que sea lo que buscas.
Saludos !
Walter
Fijate en este ejemplo que adjunto.
Basicamente reemplaza lo que esta entre "[]" (corchetes) por los datos de la tabla que utilises, luego lo abres con "word" y desde alli lo imprimes.
Es para la "hmg extendida". Supongo que con pocas modificaciones, deberia funcionar para la hmg oficial.
útiliza un archivo "rtf" muy simple de hacer con "word". No necesitas usar OLE ni nada de eso.!
Espero que sea lo que buscas.
Saludos !
Walter
- Attachments
-
- DBF2WORD.rar
- (458.79 KiB) Downloaded 339 times
Nada se pierde. Todo se transforma. (Lavoussier)
Nothing is lost. Everything changes.
Nothing is lost. Everything changes.
- esgici
- Posts: 4543
- Joined: Wed Jul 30, 2008 9:17 pm
- DBs Used: DBF
- Location: iskenderun / Turkiye
- Contact:
Re: OLE + Word
Hi Rathirathinagiri wrote:IMHO if we can create the logic to justify the text, it can be used in the printing function itself.
This will be wonderful
Regards
--
Esgici
Viva INTERNATIONAL HMG
- jas_sierra
- Posts: 18
- Joined: Sat Aug 23, 2008 2:13 pm
- DBs Used: DBF, Starting In MySQL
- Location: Barinitas - Venezuela
Re: OLE + Word
Saludos gracias a todos por su atención e ideas para solucionar el problema, el amigo tave2009 aporto la solución en función de mis necesidades, nuevamente mil gracias por su atención.
SET "http://translate.google.co.ve" ON
Greetings thank everyone for their attention and ideas to solve the problem, the friend tave2009 provided the solution according to my needs, again many thanks for your attention.
SET "http://translate.google.co.ve" ON
Greetings thank everyone for their attention and ideas to solve the problem, the friend tave2009 provided the solution according to my needs, again many thanks for your attention.