[lazarus] Camera and Component

2007-03-29 Thread Darmawan Sugiarto
Any one know... 
how to use scanner and camera at lazarus ???
How to convert delphi component to lcl ???


 

No need to miss a message. Get email on-the-go 
with Yahoo! Mail for Mobile. Get started.
http://mobile.yahoo.com/mail 

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] PostgreSQL

2007-03-29 Thread Darmawan Sugiarto
Tomorrow i tried to add PQreset to my code... but It's
still not work...

May be there is a problem at the compiler...

Have an Idea ?


--- Joost van der Sluis <[EMAIL PROTECTED]> wrote:

> On Thu, 2007-03-29 at 14:52 +0200, Bram Kuijvenhoven
> wrote:
> > Darmawan Sugiarto wrote:
> > > It's OK... now I know If I don't have this error
> if I compile my code in 
> > > first time... but the second, third, and soon I
> have this error... So I 
> > > restart Lazarus and my code work clearly...
> > > If I run my exe (without lazarus) I don't have
> this error...
> > 
> > Hmm, that's interesting. I also had problems with
> my (commandline) DB aware app when running it from
> Lazarus (Win XP, pressing F9 in Laz): it would not
> connect, but give me an exception instead. When
> starting it from Explorer or the command prompt, all
> was fine.
> 
> Isn't that simply because the exception is caught in
> a try-finally
> statement? Outside the debugger you don't notice
> that. 
> 
> It could be for example that if it fails finding
> libmysqlclient.so, it
> tries mysqlclient.so ? (I don't know this for sure,
> but could the
> problem be something like this?)
> 
> Joost
> 
>
_
>  To unsubscribe: mail
> [EMAIL PROTECTED] with
> "unsubscribe" as the Subject
>archives at
> http://www.lazarus.freepascal.org/mailarchives
> 



 

Don't get soaked.  Take a quick peek at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Anybody on this list use Firebird database with Lazarus?

2007-03-29 Thread Lee Jenkins

[EMAIL PROTECTED] wrote:
try with http://www.progdigy.com/modules.php?name=UIB, support Lazarus 
and works fine for Firebird, Interbase and Yaffil. Include several 
components:




I've used UIB components in Laz myself and they are good.

Recently, I tried the PDO stuff and while it's not TDataset decendant, I 
really like it.  It supports FB as well as MySQL as well.  I hope they 
end up putting SQLITE support as well.  That would round off my 
databases nicely.


http://pdo.sourceforge.net/

--

Warm Regards,

Lee


_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] PostgreSQL

2007-03-29 Thread Joost van der Sluis
On Thu, 2007-03-29 at 14:52 +0200, Bram Kuijvenhoven wrote:
> Darmawan Sugiarto wrote:
> > It's OK... now I know If I don't have this error if I compile my code in 
> > first time... but the second, third, and soon I have this error... So I 
> > restart Lazarus and my code work clearly...
> > If I run my exe (without lazarus) I don't have this error...
> 
> Hmm, that's interesting. I also had problems with my (commandline) DB aware 
> app when running it from Lazarus (Win XP, pressing F9 in Laz): it would not 
> connect, but give me an exception instead. When starting it from Explorer or 
> the command prompt, all was fine.

Isn't that simply because the exception is caught in a try-finally
statement? Outside the debugger you don't notice that. 

It could be for example that if it fails finding libmysqlclient.so, it
tries mysqlclient.so ? (I don't know this for sure, but could the
problem be something like this?)

Joost

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Re: How can I contribute?

2007-03-29 Thread Roozbeh GHolizadeh
On Thu, 29 Mar 2007 16:49:58 +0330, Felipe Monteiro de Carvalho  
<[EMAIL PROTECTED]> wrote:



Hello,

On 3/29/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]>  
wrote:

Now, the software works (not as it was supposed to, but at least it's
customer-proof).


good to know the wince port was sucessful =)


I am really glad to hearing that too.
Certainly in wince era bug reports will help a lot.As almost i havent had  
time to test any components.
And ofcourse having more visitiors mean having more users which might mean  
having more wince users too.So it defently will help too!


--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Anybody on this list use Firebird database with Lazarus?

2007-03-29 Thread Graeme Geldenhuys

I have been using Firebird with Lazarus in a commercial environment
for over a year now, with great success.  I highly recommend the FBLib
Firebird Library [http://fblib.altervista.org] with Lazarus.  The
reason I chose FBLib over SqlDB (that comes with Free Pascal) is
because FBLib has support for the Firebird Services (remote backup,
restore,  gfix, log viewing, etc) that SqlDB currently doesn't
support.  I needed those Firebird Services in my applications.

Unfortunately I can't help you with ODBC, never had the need to use it before.

Regards,
 - Graeme -


On 3/29/07, Howard Lee Harkness <[EMAIL PROTECTED]> wrote:

Anybody on this list use Firebird database with Lazarus? I'm looking
for general information on this, and I ran into a dead end while
trying to find the ODBC drivers, so I'm hoping somebody here has found
a better way -- or knows where to find those drivers.
--
[EMAIL PROTECTED]

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives




--
Graeme Geldenhuys

There's no place like S34° 03.168'  E018° 49.342'

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Anybody on this list use Firebird database with Lazarus?

2007-03-29 Thread Joao Morais

[EMAIL PROTECTED] wrote:

try with http://www.progdigy.com/modules.php?name=UIB, support Lazarus 
and works fine for Firebird, Interbase and Yaffil.


You have also ZeosLib - http://zeos.firmos.at



El jue, 29-03-2007 a las 10:23 -0500, Howard Lee Harkness escribió:

Anybody on this list use Firebird database with Lazarus? I'm looking
for general information on this, and I ran into a dead end while
trying to find the ODBC drivers, so I'm hoping somebody here has found
a better way -- or knows where to find those drivers.


--
Joao Morais

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Anybody on this list use Firebird database with Lazarus?

2007-03-29 Thread Razvan Adrian Bogdan

On 3/29/07, Howard Lee Harkness <[EMAIL PROTECTED]> wrote:

Anybody on this list use Firebird database with Lazarus? I'm looking
for general information on this, and I ran into a dead end while
trying to find the ODBC drivers, so I'm hoping somebody here has found
a better way -- or knows where to find those drivers.


You have many options, the recommended way would be (as Michael said)
to use the SQLDB, other options are Zeos, UIB and others, you may
check the Lazarus wiki for more info :)

Razvan

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Anybody on this list use Firebird database with Lazarus?

2007-03-29 Thread [EMAIL PROTECTED]
try with http://www.progdigy.com/modules.php?name=UIB, support Lazarus
and works fine for Firebird, Interbase and Yaffil. Include several
components:

TJvUIBDatabase. 
TJvUIBTransaction.
TJvUIBQuery.
TJvUIBBackup.
TJvUIBRestore.
TJvUIBScript.
TJvUIBDataSet read only).
TJvUIBRepair.
TJvUIBSecurity.
TJvUIBEvents.
TJvUIConfig.


El jue, 29-03-2007 a las 10:23 -0500, Howard Lee Harkness escribió:

> Anybody on this list use Firebird database with Lazarus? I'm looking
> for general information on this, and I ran into a dead end while
> trying to find the ODBC drivers, so I'm hoping somebody here has found
> a better way -- or knows where to find those drivers.


Re: [lazarus] Document editing (doc, rtf) and/or interfacing with external editors

2007-03-29 Thread Luiz Americo Pereira Camara

Luiz Americo Pereira Camara wrote:

Razvan Adrian Bogdan wrote:

On 3/29/07, Florian Klaempfl <[EMAIL PROTECTED]> wrote:

Razvan Adrian Bogdan schrieb:
> Win only is enough for now but Lazarus doesn't support ActiveX (COM)

It does?


Florian i don't understand what you mean, does Laz have an ActiveX
importer of some sort that i don't know of ?
It's possible to use ActiveX under windows using fpc/Lazarus. I have 
an example app that does OLE drag and drop.


Some remarks:
 - Unlike Delphi, Lazarus does not provides ActiveX components so you 
have to import then at hand, using the ole32 functions (found in 
ActiveX unit)
 - The ActiveX unit that comes with fpc204 has wrong calling 
convention. Fixed in trunk/2.2
You should be aware of some differences to Delphi unit also. See: 
http://www.mail-archive.com/fpc-devel@lists.freepascal.org/msg07205.html


Luiz

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Anybody on this list use Firebird database with Lazarus?

2007-03-29 Thread Howard Lee Harkness

Ok, thanks -- I didn't know that there was a native connection.

BTW, I did find the ODBC driver.

On 3/29/07, Michael Van Canneyt <[EMAIL PROTECTED]> wrote:



On Thu, 29 Mar 2007, Howard Lee Harkness wrote:

> Anybody on this list use Firebird database with Lazarus? I'm looking
> for general information on this, and I ran into a dead end while
> trying to find the ODBC drivers, so I'm hoping somebody here has found
> a better way -- or knows where to find those drivers.

Why don't you use the native firebird connection from sqldb ?
It works out of the box ?

Michael.

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives




--
[EMAIL PROTECTED]

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Document editing (doc, rtf) and/or interfacing with external editors

2007-03-29 Thread Luiz Americo Pereira Camara

Razvan Adrian Bogdan wrote:

On 3/29/07, Florian Klaempfl <[EMAIL PROTECTED]> wrote:

Razvan Adrian Bogdan schrieb:
> Win only is enough for now but Lazarus doesn't support ActiveX (COM)

It does?


Florian i don't understand what you mean, does Laz have an ActiveX
importer of some sort that i don't know of ?
It's possible to use ActiveX under windows using fpc/Lazarus. I have an 
example app that does OLE drag and drop.


Some remarks:
 - Unlike Delphi, Lazarus does not provides ActiveX components so you 
have to import then at hand, using the ole32 functions (found in ActiveX 
unit)
 - The ActiveX unit that comes with fpc204 has wrong calling 
convention. Fixed in trunk/2.2


Luiz

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Anybody on this list use Firebird database with Lazarus?

2007-03-29 Thread Michael Van Canneyt


On Thu, 29 Mar 2007, Howard Lee Harkness wrote:

> Anybody on this list use Firebird database with Lazarus? I'm looking
> for general information on this, and I ran into a dead end while
> trying to find the ODBC drivers, so I'm hoping somebody here has found
> a better way -- or knows where to find those drivers.

Why don't you use the native firebird connection from sqldb ? 
It works out of the box ?

Michael.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Anybody on this list use Firebird database with Lazarus?

2007-03-29 Thread Howard Lee Harkness

Anybody on this list use Firebird database with Lazarus? I'm looking
for general information on this, and I ran into a dead end while
trying to find the ODBC drivers, so I'm hoping somebody here has found
a better way -- or knows where to find those drivers.
--
[EMAIL PROTECTED]

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Document editing (doc, rtf) and/or interfacing with external editors

2007-03-29 Thread Felipe Monteiro de Carvalho

On 3/29/07, Razvan Adrian Bogdan <[EMAIL PROTECTED]> wrote:

however i
still have to find those docs for the plugin API, the idea is i need
to create some GUI extension that would allow using special fonts wich
will be used by clicking on buttons on a toolbar or by key


in that case, I sugest working on creating a pascal binding for the
uno interface.

--
Felipe Monteiro de Carvalho

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Document editing (doc, rtf) and/or interfacing with external editors

2007-03-29 Thread Razvan Adrian Bogdan

On 3/29/07, Felipe Monteiro de Carvalho
<[EMAIL PROTECTED]> wrote:

One alternative is to simply call Abiword as a external app.

http://www.abisource.com/

It´s a very capable rtf editor, cross-platform and free (in all
meanings). Plus, it´s so small (the windows installer has 5 mb) that
you can just distribute it along with your application.

Another good thing is that it´s light, and runs on old computers,
contrary to ms office and openoffice which are both very heavy.


Felipe, AbiWord looks interesting, it doesn't support all .doc
variants MSOffice and OpenOffice support but it's nice, however i
still have to find those docs for the plugin API, the idea is i need
to create some GUI extension that would allow using special fonts wich
will be used by clicking on buttons on a toolbar or by key
combinations, it would have been easier if there were some components
to directly edit doc or rtf files but interfacing with already built
editor would be good too, however the fonts i will be using are
unicode(2 byte) fonts.

Razvan

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Document editing (doc, rtf) and/or interfacing with external editors

2007-03-29 Thread Razvan Adrian Bogdan

On 3/29/07, Florian Klaempfl <[EMAIL PROTECTED]> wrote:

Razvan Adrian Bogdan schrieb:
> Win only is enough for now but Lazarus doesn't support ActiveX (COM)

It does?


Florian i don't understand what you mean, does Laz have an ActiveX
importer of some sort that i don't know of ?

Razvan

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Document editing (doc, rtf) and/or interfacing with external editors

2007-03-29 Thread Florian Klaempfl
Razvan Adrian Bogdan schrieb:
> Win only is enough for now but Lazarus doesn't support ActiveX (COM)

It does?

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] How can I contribute?

2007-03-29 Thread Felipe Monteiro de Carvalho

Hello,

On 3/29/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Now, the software works (not as it was supposed to, but at least it's
customer-proof).


good to know the wince port was sucessful =)


However I want to say that I'm making a lot of new Lazarus users,
teaching them how to use the software, components, and compilation;


Althougth coding is the most obvious way, one can help lazarus in many
different ways, and teaching it is certainly one of them =)

thanks,
--
Felipe Monteiro de Carvalho

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Document editing (doc, rtf) and/or interfacing with external editors

2007-03-29 Thread Felipe Monteiro de Carvalho

One alternative is to simply call Abiword as a external app.

http://www.abisource.com/

It´s a very capable rtf editor, cross-platform and free (in all
meanings). Plus, it´s so small (the windows installer has 5 mb) that
you can just distribute it along with your application.

Another good thing is that it´s light, and runs on old computers,
contrary to ms office and openoffice which are both very heavy.

--
Felipe Monteiro de Carvalho

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Document editing (doc, rtf) and/or interfacing with external editors

2007-03-29 Thread [EMAIL PROTECTED]
You can try porting http://sourceforge.net/projects/uno-pas-bridge/

El jue, 29-03-2007 a las 15:43 +0300, Adrian Maier escribió:

> On 3/29/07, Razvan Adrian Bogdan <[EMAIL PROTECTED]> wrote:
> > On 3/29/07, Adrian Maier <[EMAIL PROTECTED]> wrote:
> > > 1)It is possible to run any of those editors from within a Lazarus 
> > > application,
> > > as separate processes.
> >
> > That wouldn't be a problem, yes.
> 
> In this case , it looks like this is the way to go.
> http://wiki.lazarus.freepascal.org/Executing_External_Programs
> 
> > > 2)OpenOffice can be run as a server that waits for connections and can
> > > communicate with other programs. I have seen a Java application that
> > > was batch processing documents in several steps : one of those steps
> > > was to use OpenOffice for converting from doc to xml  .
> > > So,  in theory it should be possible for a Lazarus application to do the 
> > > same
> > > thing and communicate with OpenOffice through sockets .   I don't know 
> > > exactly
> > > how much of OpenOffice's  functionality is available for the programs 
> > > that are
> > > connecting to it.
> >
> > OOo has Java and C++ support as well as scripting even for VB syntax
> > but no pascal or plain C, i have no idea how the protocol looks like.
> 
> I don't know more about the protocol either.  You'll have to do some research
> in OO's  docs.
> But,  assuming that OpenOffice is a server who is waiting for tcp/ip
> connections ,
> it wouldn't matter which language is the client written with. Once you
> understand
> the protocol it should be possible to implement in pascal a client for it .
> 
> 
> > > 3)As far as i know, it is not possible to embed MS Office through OLE
> > > (it's not crosss-platform...).
> >
> > Win only is enough for now but Lazarus doesn't support ActiveX (COM)
> >
> > Razvan
> >
> > _
> >  To unsubscribe: mail [EMAIL PROTECTED] with
> > "unsubscribe" as the Subject
> >archives at http://www.lazarus.freepascal.org/mailarchives
> >
> 
> 


Re: [lazarus] PostgreSQL

2007-03-29 Thread Bram Kuijvenhoven

Darmawan Sugiarto wrote:
It's OK... now I know If I don't have this error if I compile my code in 
first time... but the second, third, and soon I have this error... So I 
restart Lazarus and my code work clearly...

If I run my exe (without lazarus) I don't have this error...


Hmm, that's interesting. I also had problems with my (commandline) DB aware app 
when running it from Lazarus (Win XP, pressing F9 in Laz): it would not 
connect, but give me an exception instead. When starting it from Explorer or 
the command prompt, all was fine.

IIRC I had this when connecting to both MySQL and MySQL through ODBCt. I always 
thought it was due to the combination of Lazarus + GDB + the MySQL client lib, 
but maybe the problems are more general, as you have this with PostGreSQL.


Just did some tests: the first time I press F9, my program runs successfully, 
but from the the second time on it just keeps raising EODBCExceptions!

Created an empty project with a TODBCConnection and a TSQLTransaction (from the 
SQLDb tab), set properties to connect to my MySQL DB, pressed F9 and voilà: 
first time all is ok (after a fresh start of Lazarus), second time not. I now 
also see the error message:

 Could not connect with connection string "DRIVER=MySQL ODBC 3.51 
Driver;UID=myUsername;PWD=myPassword;DATABASE=myDatabase;". ODBC error details: 
Record 1: SqlState: HYT00; NativeError: 2004; Message: [MySQL][ODBC 3.51 Driver]Can't 
create TCP/IP socket (10106).

It is indeed the MyODBC driver complaining here, and the error is 'Can't create 
TCP/IP socket'.

Tried to use TMySQL50Connection; same behaviour, though I get a different 
Exception: it complains that it can't find libmysql.dll. Again, this exception 
does not occur when running from Explorer or the first time after Lazarus 
starts.

Copy & pasted libmysql.dll to the local directory: now I get a 
'MySQL50Connecion1 : Server connect failed' message. (But first time all is ok; 
also when ran from Explorer.) Not a very informative error, but I bet it is again 
due to the Can't create TCP/IP socket error. IIRC back in the days my commandline 
DB app mentioned above connected using the MySQL client lib directly (instead of 
though ODBC) I got the 'Can't create TCP/IP socket' error when ran from Laz. (I 
never noticed back then that this error did not occur when running it the first 
time.)

Tried to reset the debugger in Lazarus (Run -> Reset debugger): ah right, now I 
can run my program one time without failures again. Note: From GDB (ran from 
cygwin) I can run my test program as often as I want, but this is of course not 
the same GDB executable, neither does it receive the same parameters and input as 
the Laz GDB.

Unfortunately I do not have a PosrtGres db engine set up, so I can't test that 
at the moment.


Maybe something is going wrong with the environmental variables??? Why can't it 
suddenly find the mysql lib? And why can't the mysql client connect?

My Lazarus is 0.9.20, FPC 2.0.4, OS: Win XP SP2, MySQL client & server: 5.0.27 
for Win32. (I also had this error in times when I worked with MysQL 4.x or maybe 
even 3.x)


Any ideas?


Regards,

Bram

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Document editing (doc, rtf) and/or interfacing with external editors

2007-03-29 Thread Adrian Maier

On 3/29/07, Razvan Adrian Bogdan <[EMAIL PROTECTED]> wrote:

On 3/29/07, Adrian Maier <[EMAIL PROTECTED]> wrote:
> 1)It is possible to run any of those editors from within a Lazarus 
application,
> as separate processes.

That wouldn't be a problem, yes.


In this case , it looks like this is the way to go.
http://wiki.lazarus.freepascal.org/Executing_External_Programs


> 2)OpenOffice can be run as a server that waits for connections and can
> communicate with other programs. I have seen a Java application that
> was batch processing documents in several steps : one of those steps
> was to use OpenOffice for converting from doc to xml  .
> So,  in theory it should be possible for a Lazarus application to do the same
> thing and communicate with OpenOffice through sockets .   I don't know exactly
> how much of OpenOffice's  functionality is available for the programs that are
> connecting to it.

OOo has Java and C++ support as well as scripting even for VB syntax
but no pascal or plain C, i have no idea how the protocol looks like.


I don't know more about the protocol either.  You'll have to do some research
in OO's  docs.
But,  assuming that OpenOffice is a server who is waiting for tcp/ip
connections ,
it wouldn't matter which language is the client written with. Once you
understand
the protocol it should be possible to implement in pascal a client for it .



> 3)As far as i know, it is not possible to embed MS Office through OLE
> (it's not crosss-platform...).

Win only is enough for now but Lazarus doesn't support ActiveX (COM)

Razvan

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives




--
Adrian Maier

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Document editing (doc, rtf) and/or interfacing with external editors

2007-03-29 Thread Razvan Adrian Bogdan

On 3/29/07, Adrian Maier <[EMAIL PROTECTED]> wrote:

1)It is possible to run any of those editors from within a Lazarus application,
as separate processes.


That wouldn't be a problem, yes.


2)OpenOffice can be run as a server that waits for connections and can
communicate with other programs. I have seen a Java application that
was batch processing documents in several steps : one of those steps
was to use OpenOffice for converting from doc to xml  .
So,  in theory it should be possible for a Lazarus application to do the same
thing and communicate with OpenOffice through sockets .   I don't know exactly
how much of OpenOffice's  functionality is available for the programs that are
connecting to it.


OOo has Java and C++ support as well as scripting even for VB syntax
but no pascal or plain C, i have no idea how the protocol looks like.


3)As far as i know, it is not possible to embed MS Office through OLE
(it's not crosss-platform...).


Win only is enough for now but Lazarus doesn't support ActiveX (COM)

Razvan

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Document editing (doc, rtf) and/or interfacing with external editors

2007-03-29 Thread Adrian Maier

On 3/29/07, Razvan Adrian Bogdan <[EMAIL PROTECTED]> wrote:

I have 2 questions about document editing with Lazarus/FPC and i hope
that someone reading the list might know the answer to at least one of
them, the "best" way would probably be editing documents internally in
a Lazarus app but it might be a bit of a problem so interfacing with
external editors is a good alternative.

Is there any way to edit documents in doc/rtf format with lazarus ?
How to interface with external document editors like MS Office,
OpenOffice, AbiWord, etc. ?


1)It is possible to run any of those editors from within a Lazarus application,
as separate processes.

2)OpenOffice can be run as a server that waits for connections and can
communicate with other programs. I have seen a Java application that
was batch processing documents in several steps : one of those steps
was to use OpenOffice for converting from doc to xml  .
So,  in theory it should be possible for a Lazarus application to do the same
thing and communicate with OpenOffice through sockets .   I don't know exactly
how much of OpenOffice's  functionality is available for the programs that are
connecting to it.

3)As far as i know, it is not possible to embed MS Office through OLE
(it's not crosss-platform...).


--
Adrian Maier

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Test

2007-03-29 Thread Leonardo M. Ramé



_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Document editing (doc, rtf) and/or interfacing with external editors

2007-03-29 Thread Razvan Adrian Bogdan

I have 2 questions about document editing with Lazarus/FPC and i hope
that someone reading the list might know the answer to at least one of
them, the "best" way would probably be editing documents internally in
a Lazarus app but it might be a bit of a problem so interfacing with
external editors is a good alternative.

Is there any way to edit documents in doc/rtf format with lazarus ?
How to interface with external document editors like MS Office,
OpenOffice, AbiWord, etc. ?

Razvan

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives