Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Using the WindowsXP FaxService from C#

Using the WindowsXP FaxService from C#

Scheduled Pinned Locked Moved C#
csharpvisual-studiocomdebuggingjson
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Alexandru Serban
    wrote on last edited by
    #1

    Hello everybody ! I want to use the WindowsXP FaxService COM API in my solution. I`m using Visual Studio .NET I added a reference to the FaxService TypeLibrary in the project and the generated NameSpace is FAXCOMEXLib. Then I wrote the following code: try { FAXCOMEXLib.FaxServerClass FaxServer=new FAXCOMEXLib.FaxServerClass(); // OK FaxServer.Connect(""); // OK FAXCOMEXLib.FaxFolders FaxFolders=FaxServer.Folders; // NOT OK } catch(Exception ex) { MessageBox.Show(ex.Message); } After creating the FaxServer object and connecting it to the local FaxService, the Properties that return an object (like Folders,InboundRouting,LoggingOptions) are not valid. There is a {System.InvalidCastException} in the Value of the Autos section in the debugger. Why? Thank you !

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups