[DUG] Strange behavour - WebBrowser and ADO

2011-08-03 Thread Edward Huang
Hi, We have just noticed a strange behaviour recently, which I couldn't figure out how to resolve. The issue could have been there all the time, just we didn't used the sequence before. We have an application, uses ADO to connect to SQL Server database. Components used include TADOQuery,

[DUG] Produce PDF from text file

2011-08-03 Thread John Bird
Using D2007 and Rave reports - should be easy to produce a PDF version of a text file report. The reports need to be printed using a non-proportional font, which is why I would like to use PDF rather than Notepad (which is often set to display in proportional fonts and users do not know how to

Re: [DUG] Email/SMTP code

2011-08-03 Thread John Bird
Have code working now nicely, email me if anyone wants what I am using. Is there a way to find the default settings from Outlook or Registry for: 1 - smtp setting 2 - users email address (for the From: address) At present I have to ask the users for this, should ideally be set from default

Re: [DUG] Produce PDF from text file

2011-08-03 Thread Jeremy Coulter
On sourceforge there is a set of code that will produce a PDF and I use it to generate pretty much what you are doing, although I dont use a file, but input the text manuallybut you could read each line in and do the same. Its pretty simple. I will email you the link from work tomorrow.

Re: [DUG] Email/SMTP code

2011-08-03 Thread Ross Levis
I’m about to implement an option to send an automatic email when a problem occurs within the software. I would be interested in the final code. Save me some trial and error. Cheers, Ross. From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of John Bird

Re: [DUG] Produce PDF from text file

2011-08-03 Thread Jeremy Coulter
I have a feeling its this one now that I think of it. I wll confirm tomorrow: http://sourceforge.net/projects/powerpdf/ Jeremy -Original Message- From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of John Bird Sent: Wednesday, 3 August 2011 20:00 To: NZ

Re: [DUG] Why does this hang?

2011-08-03 Thread Ross Levis
Yeah, may be. Currently I've replaced the ProcessMessages with MainForm.Update which resolves the issue well enough I think. I don't want to make major changes as it's very stable now apart from this issue. Thanks anyway. -Original Message- From: delphi-boun...@delphi.org.nz

Re: [DUG] Produce PDF from text file

2011-08-03 Thread Jeremy Coulter
Hi. actually I was wrong, we use THIS code http://synopse.info/forum/viewtopic.php?id=59 Its pretty easy to use and has res. examples. Jeremy On Wed, Aug 3, 2011 at 10:46 PM, Jeremy Coulter jscoul...@gmail.com wrote: I have a feeling its this one now that I think of it. I wll confirm

Re: [DUG] Email/SMTP code

2011-08-03 Thread Ross Levis
I’m basically implementing the code below. I was wondering why the TIdText.Create and TIdAttachmentFile.Create’s don’t need to be freed. Does this occur automatically when the mail is sent? Ross. From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of

[DUG] HEX to decimal

2011-08-03 Thread Marshland Engineering
I cannot get the decimal equivalent of the number sent from my micro in Delphi !!! I am running and ATmega (micro) and it sends out a hex number corresponding to an A to D conversion. It is 8 bit. I'm using SerialNG to read the data with procedure TfDyno.SerialPortNGRxClusterEvent(Sender: