Title: Are you looking for a better way to run your Business Enterprise
Thanks Jason

I will see if I can do that, but I am rather new to this!

Grateful for any help, so thank you for yours.

Kind regards - Peter


On 20/09/2012 20:00, [email protected] wrote:
I am trying to use HTTPSend from Synapse.  I need to send a file (name in cxTextEdit2) an email address >(name in cxDBTextEdit1) the contents of a Memo field (cxMemo1).  I also need to send some additional text ie 'Tax Office'.

I have tried to use HTTPSend as follows:

procedure TfITISPaymentG.cxSendReturnBtnClick(Sender: TObject);
var
  st: TFileStream;
begin
  Screen.Cursor := crHourGlass;
  st := TFileStream.Create(cxTextEdit2.Text, fmOpenRead    or fmShareDenyWrite);
  try
    // The next instruction sends URL, File name, EMail address, File and Memo text.
    HTTPPostFile('https://rc.gov.gg/API/SubmitReturnTest', ExtractFilename(cxTextEdit2.Text), >cxDBTextEdit1.Text, st, TStringList(cxMemo1.Lines));
  finally
    st.Free;
  end;
  Screen.Cursor := crDefault;
end;

I do not know how to send the additional text 'Tax Office'.

Can anyone please help?

Kind regards - Peter
-- 

Hi Peter,

I don't use a lot of the stock Delphi'esk classes, but I need on
occasions like this. Perhaps you can make a NEW TStringList and Copy the
contents from the one, add some blank lines and then add the other info
- you Tax Info? If I'm way off base, forgive me. Just trying to help
with a suggestion.

--Jason

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public


--

Are you looking for a more efficient way to run your Business?
Are you fed up with poor software that is hard to use?

We offer a range of standard computer software programs including

CI PAYROLL, HR, TIME BILLING, CLIENT MANAGEMENT,

GST, IFA and SALES ORDER PROCESSING Systems.

We have wide experience of resolving these important issues.
Alternatively we can undertake bespoke solutions designed for your

Company and provide you with a business specific solution.

T: Follow Software Essentials on Twitter

W: Software Essentials Website

------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to