in

Data Techniques Forums

Error Scheduling Fax & Unable to get Filename for Port :

Last post 01-20-2009 5:42 PM by Admin. 15 replies.
Page 1 of 2 (16 items) 1 2 Next >
Sort Posts: Previous Next
  • 05-24-2004 7:33 AM

    • Kale
    • Top 500 Contributor
    • Joined on 05-24-2004
    • Posts 3

    Error Scheduling Fax & Unable to get Filename for Port :

    I have used Faxman in my application for sending faxes. The version used is Faxman 3.50.

    Periodically after a certain number of faxes are sent successfully I get the error mentioned below and the system hangs. Once I restart the system it starts working fine but again after some time it would give me the same error.

    "Error Scheduling Fax & Unable to get Filename for Port : faxport"

    Can some one help me on this front and is there any possible reasons and solutions to resolved the same.
  • 05-24-2004 9:19 AM In reply to

    Re: Error Scheduling Fax & Unable to get Filename for Port :

    Error Scheduling Fax, in this case, is probably the result of your code calling SendFax() before the FMF file is ready. Such that when you call SendFax() the file/s you passed to FaxMan1.FaxFiles property either do not exist, or exist in a different location, or have not been closed by the printer driver.

    If you are doing a "Print to Fax" solution, we strongly suggest that you key off of the PrintComplete event to A). Schedule your fax and/or B)Initiate the next print.
    support@data-tech.com
  • 05-25-2004 3:33 AM In reply to

    • Kale
    • Top 500 Contributor
    • Joined on 05-24-2004
    • Posts 3

    Re: Error Scheduling Fax & Unable to get Filename for Port :

    Dear Rusha,
    Thanks for your prompt response and sorry ofr the delayed acknowledgement.

    But as mentioned by you if that would have been the case would it not cause a problem from the very first fax sent out , I mean to say is that I am facing this problem in intervals after couple of faxes sent.

    Regards,
    Vipin
  • 05-25-2004 10:40 AM In reply to

    Re: Error Scheduling Fax & Unable to get Filename for Port :

    Two seperate issues, but VERY related.

    1st - Unable to get filename. The FaxMan printer driver was unable to create the fmf file in question.

    2nd - Error scheduling fax. If you told the printer driver to create "c:\faxes\fax001.fmf", and then set FaxMan1.FaxFiles="c:\faxes\fax001.fmf", but the driver returned "Unable to Get Filename", then when you call SendFax() you will get "Error scheduling fax" because the fmf file in question does not exist.

    Are you printing in a loop?

    When/Where do you call SendFax()?

    If you call SendFax() in the PrintComplete() event, then you KNOW the fmf file exists and it is ready, and you can call SendFax() safely.
    support@data-tech.com
  • 09-21-2005 11:07 AM In reply to

    Re: Error Scheduling Fax & Unable to get Filename for Port :

    I'm getting a simular error, unable to get filename for port.  What does that mean?  I noticed that when I have a bunch of files printed (loop), say from acrobat, and in the faxman printer queue to be printed.  I will get this error unable to get filename for port.  And when you clear the message I get another message saying there was an error found when printing document ...

    This is not a message from the application, it's from the printer driver/folder ... when, i look at the printer folder of the faxman printer, the document is frozen, unable to print the document.

    I'm using sdk 3.71 on W2000, document size is about 1-2MB each.  Any ideas on what the problem is?

    is fax printer/spool limited to memory?
  • 09-23-2005 9:15 AM In reply to

    Re: Error Scheduling Fax & Unable to get Filename for Port :

    Hi,

    The 'Unable to get Filename' means the printer driver ddidnt get a filename from a FaxMan printer control. When the driver goes to print it looks for a Printer Control who's AppID property is set to the same value as the Driver Port Name. If it finds one then it Fires the PrintStart event and wants to see the PrintFileName parameter set to the output filename. if that doesnt happen then you'll get the Unable to get Filename dialog.

    Make sure your app has the Printer Control on a loaded form, the AppId property set properly and the PrintStart event assigns a filename to the PrintFileName parameter.

    The document size wont affect this just the fact that the driver cant get a filename.

    Sean
    Data Techniques Online Support
  • 01-07-2009 4:34 PM In reply to

    Re: Error Scheduling Fax & Unable to get Filename for Port :

    I am getting the Similar problem "Unable to get Filename". I have installed a fax driver named "CLEANFAX". Everytime I am trying to print I am getting "Unable to get Filename for port:CLEANFAX". Where I will set the AppID Property?. I am not getting "FAXGETFILENAME" message also.

    Dont know where going wrong.

    I am using FAXMAN3

    P lease help.

    Thanks,

    NNMishra

  • 01-08-2009 9:05 AM In reply to

    Re: Error Scheduling Fax & Unable to get Filename for Port :

    Hi,

    Are you using the DLL interface or the ActiveX interface ? Its not clear since you mention the DLL windows message and also a property from the ActiveX.

  • 01-08-2009 6:00 PM In reply to

    Re: Error Scheduling Fax & Unable to get Filename for Port :

    I am using the Dll interface.

  • 01-12-2009 2:22 PM In reply to

    Re: Error Scheduling Fax & Unable to get Filename for Port :

    Hi,

    With the DLL interface you ust call FaxRegisterApp () and pass the name of the associated faxman Printer driver instance and then you must handle the FAXGETFILENAME notification which is called for your app to provide a filename.

    Look at the MFC Sample application for a working sample that uses a printer driver and handles these events.

  • 01-15-2009 4:00 PM In reply to

    Re: Error Scheduling Fax & Unable to get Filename for Port :

    Thanks for ur response. 

    I am calling the FaxRegisterApp in the following way

    pInfo = FaxRegisterApp("FAXDLG", hwndMain);

    where the FAXDLG is the port name of the  Fax Driver.  I am not receiving the GETFILENAME message. Dont know where I am going wrong.

    Please let me know.

  • 01-16-2009 9:16 AM In reply to

    Re: Error Scheduling Fax & Unable to get Filename for Port :

    Hi,

    Sorry I  thought you were using Faxman V 4 but I see you have Version 3. For Version 3 you need to pass the Port name ofthe printer as the first parameter of the FaxRegisterApp.

     

    Look at the MFC sample application which makes this call and handles the printer event.

  • 01-16-2009 2:12 PM In reply to

    Re: Error Scheduling Fax & Unable to get Filename for Port :

    I have done it in the same way as the MFC sample application. Still I am not getting FAXGETFILENAME message.

  • 01-16-2009 4:26 PM In reply to

    Re: Error Scheduling Fax & Unable to get Filename for Port :

    Lets see if we can narrow this down a bit:

    Does the sample MFC app work you ?

    Do you get any Fax messages in your application ?

    Make sure the value you pass to FaxRegisterApp matches exactly the port name of the faxman printer  driver you want to associated with.

  • 01-20-2009 1:28 PM In reply to

    Re: Error Scheduling Fax & Unable to get Filename for Port :

    Even in the MFC sample application I am not receiving the 'FAXGETFILENAME" message but its faxing the *.fmf file.

Page 1 of 2 (16 items) 1 2 Next >
Copyright 2009 Data Techniques, Inc. All Rights Reserved.