Delphi and Kylix

Moderators: pritaeas
Number of threads: 7244
Number of posts: 19051

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Faxing Posted by edomingos_jr on 29 Jul 2006 at 5:21 AM
How can I create an application to send faxes???
Report
Re: Faxing Posted by zibadian on 29 Jul 2006 at 6:06 AM
: 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.
Report
Re: Faxing Posted by edomingos_jr on 29 Jul 2006 at 6:09 AM
isnt that just for windows? I want it to be sent in delphi...
Report
Re: Faxing Posted by zibadian on 29 Jul 2006 at 6:29 AM
: 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".
Report
Re: Faxing Posted by edomingos_jr on 29 Jul 2006 at 6:33 AM
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.
Report
Re: Faxing Posted by zibadian on 29 Jul 2006 at 7:12 AM
: 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.
Report
Sending Faxes using D2006 or 2007 Posted by Dr Delphi on 8 Aug 2008 at 7:30 AM
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
Report
Re: Sending Faxes using D2006 or 2007 Posted by Dr Delphi on 19 Jan 2010 at 7:05 PM
I actually figured out how to write this even better using C# within the RightFax Software.
Dr Delphi



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.