Re: Re: Problem by sendig a fax

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Raghavendra R [MSFT] (raghavr_at_online.microsoft.com)
Date: 03/15/04

  • Next message: Tony: "Re: Cover pages"
    Date: Mon, 15 Mar 2004 20:55:40 +0530
    
    

    Sorry Peter, I think I'm helpless here unless I can repro the problem
    my-self. But I don't have ASP expertise. Last thing I can ask you to try is
    to ensure the Fax Service ACL has the following ACEs (as listed in the
    article you sent)
    SYSTEM
    INTERACTIVE
    Everyone
    Administrators
    IUSR_<machinename>*
    IWAM_<machinename>*

    * These accounts exist only if IIS is installed on the computer.

    Make sure that all these accounts got Send Fax permission on Fax Server.

    -- 
    Raghavendra R
    Microsoft Printing, Imaging and Fax Team
    This posting is provided "AS IS" with no warranties, and confers no rights.
    Please do not send email directly to this alias. This alias is for newsgroup
    purposes only.
    "Peter Haider" <phvie@juhu.deutschland> wrote in message
    news:uJLV2XpCEHA.3132@TK2MSFTNGP11.phx.gbl...
    > Raghavendra,
    >
    > i think, that i moved a step forwards; but only one step :-((
    >
    > I did following:
    >
    > 1) Configured the office component as described in the article (dcom)
    > http://support.microsoft.com/default.aspx?scid=kb;EN-US;288366
    >
    > 2) tested with following code in my asp / vbscript application....
    >
    > Dim A2kApp
    > Dim A2kCmd
    > Set A2kApp = Server.createObject("Access.Application")
    > A2kApp.OpenCurrentDatabase
    > "c:\inetpub\wwwroot\myapplication\database\myaccessdb.mdb"
    > Set A2kCmd = A2kApp.DoCmd
    > A2kCmd.OpenReport "mylabels" (the standard printer driver was an PDF
    printer
    > driver)
    > Set A2kapp = Nothing
    > Set A2kCmd = Nothing
    >
    > The report "mylabels" had an function inside, which sent the genereated
    > output (in pdf form)
    > to the fax service - WITHOUT any problem.
    >
    > So, what is the difference between:
    > - acting directly with the faxserver in my script and
    > - acting with the faxserver over an office component??
    >
    > An answer would help me great!!
    >
    > Best regards
    > Peter Haider
    >
    > "Peter Haider" <phvie@juhu.deutschland> schrieb im Newsbeitrag
    > news:%23gZojUk$DHA.3960@TK2MSFTNGP10.phx.gbl...
    > > Hi,
    > >
    > > this is the problem once more:
    > >
    > > .... struggle with a problem using windows 2000 small business server
    > > (SP4) - fax server
    > > running under my ASP web application (using faxcom.dll version 1.0)
    > >
    > > The sending of an fax - like the example below - works manually very
    well
    > > (with file open and print to the fax printer from the desktop) - logged
    on
    > > as a normal user.
    > >
    > > But my code under ASP doesnt work (access rights for directory, to read
    > the
    > > file and to access to the fax server is given for the IUSER... -
    anonymous
    > > user)
    > >
    > > Here is the ASP / VB Script Code:
    > >
    > > Dim Faxserver
    > > Dim FaxDoc
    > > Dim JobNo
    > > Dim Filename
    > >
    > > Set Faxserver = Server.Createobject("Faxserver.Faxserver")
    > >
    > > >> Once tried with an empty string one time with the following entry -
    in
    > > both cases the same result / error
    > > FaxServer.Connect("gericom.sbs.office")  / FaxServer.Connect("")
    > >
    > > Filename = server.MapPath("Orders/10173.pdf")
    > > Set FaxDoc = FaxServer.CreateDocument(Filename)
    > >
    > > FaxDoc.SendCoverpage = 0
    > > FaxDoc.RecipientName = "Arnold"
    > > FaxDoc.SenderName = "Peter"
    > > FaxDoc.FaxNumber = "12345678"
    > > FaxDoc.SenderFax = "87654321"
    > > JobNo = FaxDoc.Send()
    > > Set FaxDoc = Nothing
    > > FaxServer.Disconnect()
    > > Set FaxServer = Nothing
    > >
    > > When i start this programm, the system seams to hang and after a short
    > time,
    > > there appears an error 0x8007000D (Data is invalid??) at the line
    > > FaxDoc.Send()
    > >
    > > If i change the File from the "10173.pdf" to "sample.txt" it doesnt
    stop,
    > > but i do not see the faxjob in the faxqueue (anything to do with the
    > > extension???)
    > >
    > > Has anyone of you a tip for me?
    > >
    > > Best Regards Peter Haider
    > >
    > >
    > >
    > > "Raghavendra R [MSFT]" <raghavr@online.microsoft.com> schrieb im
    > Newsbeitrag
    > > news:40361811$1@news.microsoft.com...
    > > > If I understand correctly, you are trying to Fax a PDF document with a
    > > > VBScript Application. Right? With just the information you gave, I
    have
    > no
    > > > clue.
    > > >
    > > > Can you please give more details
    > > > a) Share out your VBScript code (assuming it's same as in the article
    > > link,
    > > > please tell us what you are passing for FaxMachine parameter for
    SendFax
    > > > method. I think you should be sending an empty string.)
    > > > b) What's the error returned by the API call (which is FaxDoc.Send
    > > probably)
    > > > you are making?
    > > >
    > > > Also you can check the following to trouble-shoot the problem
    > > > a) Are you able to manually Fax that document?
    > > > b) Is your program working for other document types?
    > > >
    > > > -- 
    > > > Raghavendra R
    > > > Microsoft Printing, Imaging and Fax Team
    > > > This posting is provided "AS IS" with no warranties, and confers no
    > > rights.
    > > > Please do not send email directly to this alias. This alias is for
    > > newsgroup
    > > > purposes only.
    > > >
    > > > "Peter Haider" <phvie@juhu.deutschland> wrote in message
    > > > news:e9rGoeP6DHA.2480@TK2MSFTNGP10.phx.gbl...
    > > > > Hi newsgroup,
    > > > >
    > > > > i use windows2000 small business server and want to send a fax,
    using
    > > the
    > > > > local fax printer (fax server)
    > > > >
    > > > > Now the problem: i want to fax (send) a acrobat-pdf file and i want
    to
    > > > send
    > > > > this pdf file
    > > > >
    > > > > from my asp / vbscript application, generated by the anonymous user
    > > > >
    > > > > Any one an idea, why it doesnt work?
    > > > >
    > > > > I read the article at microsoft support
    > > > >
    > > > >
    > >
    http://support.microsoft.com/default.aspx?scid=kb;en-us;303647&Product=asp
    > > > >
    > > > > but my system still says NO!
    > > > >
    > > > > I cant belive, that it do NOT work,
    > > > >
    > > > > Any help or tip would be great,
    > > > >
    > > > > best regards
    > > > >
    > > > > Peter Haider
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    > >
    >
    >
    

  • Next message: Tony: "Re: Cover pages"

    Relevant Pages

    • Re: VB 6.0 to Launch excel
      ... Jason V ... "Peter T" wrote: ... Dim xlapp As Excel.Application 'The Excel application object ...
      (microsoft.public.excel.programming)
    • Re: Button Color based on cell
      ... new Conditional Formats it's extremely difficult and way beyond what's ... Dim nClr As Long ... Dim rCel As Range ... "Peter T" wrote: ...
      (microsoft.public.excel.programming)
    • Re: Populate a multi-dimensional array from Ranges
      ... This helps a lot Peter! ... Dim i As Long ... Dim arr ... I want to end up with an array called newArray ...
      (microsoft.public.excel.programming)
    • Re: Copy and Paste Charts as Picture in Different Workbook
      ... Peter, ... Sub CopyChartsToPictures(wsSource As Worksheet, wsDest As Worksheet) ... containing charts. ... Dim chtObj As ChartObject ...
      (microsoft.public.excel.programming)
    • Re: Making a fax merge
      ... Thanks again for the help Peter. ... > for each record in the data source) you could try the following macro. ... > Dim bFaxServerAvailable As Boolean ... > Set oFaxPorts = Nothing ...
      (microsoft.public.word.mailmerge.fields)