Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Faxing

How can I create an application to send faxes???

Comments

  • zibadianzibadian Posts: 6,349Member
    : How can I create an application to send faxes???
    :
    You can use the Microsoft Fax Service Extended COM. More info at: http://windowssdk.msdn.microsoft.com/en-us/library/ms684513.aspx
    You can just import the type-library into Delphi, if necessary.
  • edomingos_jredomingos_jr Posts: 83Member
    isnt that just for windows? I want it to be sent in delphi...
  • zibadianzibadian Posts: 6,349Member
    : isnt that just for windows? I want it to be sent in delphi...
    :
    COM objects are for all windows programming languages: Delphi, VC++, VB, etc. In fact several of the standard installed components are implemented as COM Objects, for example the TWebBrowser, docking managers, and database components.
    COM API is basically a framework to import objects into applications, without needing to worry about the implementation of those objects. For more info see Delphi help files under "COM Extensions".
  • edomingos_jredomingos_jr Posts: 83Member
    Cant u just make it clear, and tell me what to do? instead of using such words??? :) Im not a professional!! I need sort of, a step-by-step guide.
  • zibadianzibadian Posts: 6,349Member
    : Cant u just make it clear, and tell me what to do? instead of using such words??? :) Im not a professional!! I need sort of, a step-by-step guide.
    :
    Neither am I, but I can give you a quick step-by-setp guide. Based on the MSDN there are 2 ways of sending a fax: using the Win32 API or the COM API.

    Win32 API: http://windowssdk.msdn.microsoft.com/en-us/library/ms690908.aspx explains all with which functions to call.

    COM API: Here are the steps. The help files/MSDN contain information on the various functions and objects:
    1 - call CreateOleObject() to create an IFaxServer object
    2 - call IFaxServer.CreateDocument() to create an IFaxDoc object
    3 - use the properties/methods of the IFaxDoc to write the actual fax
    4 - call IFaxDoc.Send() to actually send the fax
    5 - Free all the created objects
    CreateOleObject() is described in the Delphi Helpfiles.
    IFaxServer: http://windowssdk.msdn.microsoft.com/en-us/library/ms692375.aspx
    IFaxDoc: http://windowssdk.msdn.microsoft.com/en-us/library/ms692281.aspx

    If your Delphi version doesn't recognize the IFaxServer or IFaxDoc, you need to import its type library (Project > Import Type Library).

    This is basically all the help I can give you, because I don't have a fax installed on my computer, and (as an amateur) using COM interfaces like this goes slightly over my head without testing.
  • Dr DelphiDr Delphi Posts: 4Member
    Can anyone please tell me how to send faxes using delphi.. or how to create a simple application that will send faxes and read from a table a list of fax #'s thanks
    Dr Delphi
  • Dr DelphiDr Delphi Posts: 4Member
    I actually figured out how to write this even better using C# within the RightFax Software.
    Dr Delphi
Sign In or Register to comment.