473,799 Members | 3,224 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need help in asp.net ~ urgent

4 New Member
I'm doing my final year project which is web-based fax server. I'm using the faxcomexlib library that inside the visual studio 2005 to do the fax function. I had done the send fax part. But now i facing the problem on the receiving fax part. I can know there have incoming queue fax. but after i input the number that i want the information, it become nothing and error come out. Thanks for view the post and giving comments.

here's the code (refer from msdn) that i use for the receive fax function :-
Expand|Select|Wrap|Line Numbers
  1. Dim objFaxServer As New FAXCOMEXLib.FaxServer
  2. Dim collFaxIncomingJobs As FaxIncomingJobs
  3. Dim objFaxIncomingJob As FaxIncomingJob
  4.  
  5. 'Error handling
  6. On Error GoTo Error_Handler
  7.  
  8. 'Connect to the fax server
  9. objFaxServer.Connect "zeus-lap"
  10.  
  11. 'Get the collection of jobs in the incoming queue
  12. Set collFaxIncomingJobs = objFaxServer.Folders.IncomingQueue.GetJobs
  13.  
  14. 'Display the number of jobs in the collection
  15. MsgBox "There are " & collFaxIncomingJobs.Count & " jobs in the incoming queue."
  16.  
  17. Dim n As Long
  18.  
  19. 'Get the job
  20. n = InputBox("Input the item number for which you want information.")
  21. Set objFaxIncomingJob = collFaxIncomingJobs.Item(n)
  22.  
  23. 'Refresh the job object (job is in process of being received, you
  24. 'want current information)
  25. objFaxIncomingJob.Refresh
  26.  
  27. 'Display the job properties
  28. MsgBox "Available operations: " & objFaxIncomingJob.AvailableOperations & _
  29. vbCrLf & "Caller ID: " & objFaxIncomingJob.CallerId & _
  30. vbCrLf & "CSID: " & objFaxIncomingJob.CSID & _
  31. vbCrLf & "Current page: " & objFaxIncomingJob.CurrentPage & _
  32. vbCrLf & "Device ID: " & objFaxIncomingJob.DeviceId & _
  33. vbCrLf & "Extended status: " & objFaxIncomingJob.ExtendedStatus & _
  34. vbCrLf & "Extended status code : " & objFaxIncomingJob.ExtendedStatusCode & _
  35. vbCrLf & "Job ID: " & objFaxIncomingJob.Id & _
  36. vbCrLf & "Job type: " & objFaxIncomingJob.JobType & _
  37. vbCrLf & "Retries: " & objFaxIncomingJob.Retries & _
  38. vbCrLf & "Routing information: " & objFaxIncomingJob.RoutingInformation & _
  39. vbCrLf & "Size: " & objFaxIncomingJob.Size & _
  40. vbCrLf & "Status: " & objFaxIncomingJob.Status & _
  41. vbCrLf & "Transmission start: " & objFaxIncomingJob.TransmissionStart & _
  42. vbCrLf & "Transmission end: " & objFaxIncomingJob.TransmissionEnd & _
  43. vbCrLf & "TSID: " & objFaxIncomingJob.TSID
  44.  
  45. 'Allow user to cancel the selected fax
  46. Dim CancelString As String
  47. CancelString = InputBox("Cancel this fax (Y/N)?")
  48. If CancelString = "Y" Then objFaxIncomingJob.Cancel
  49.  
  50. 'Allow user to open the selected fax
  51. Dim OpenString As String
  52. OpenString = InputBox("Open this fax (Y/N)?")
  53. If OpenString = "Y" Then
  54.     Dim FileName As String
  55.     FileName = InputBox("Provide path and name of file for TIFF copy, e.g. c:\MyFax.tiff")
  56.     objFaxIncomingJob.CopyTiff (FileName)
  57.  
  58.     'Open the tiff file
  59.     Dim A As Object
  60.     Set A = CreateObject("wscript.shell")
  61.     A.run FileName
  62. End If
  63. Exit Sub
  64.  
  65. Error_Handler:
  66.     'Implement error handling at the end of your subroutine. This 
  67.     ' implementation is for demonstration purposes
  68.     MsgBox "Error number: " & Hex(Err.Number) & ", " & Err.Description
  69.  
Mar 13 '08 #1
1 1360
zeuscc
4 New Member
I'm doing my final year project which is web-based fax server. I'm using the faxcomexlib library that inside the visual studio 2005 to do the fax function. I had done the send fax part. But now i facing the problem on the receiving fax part. I can know there have incoming queue fax. but after i input the number that i want the information, it become nothing and error come out. Thanks for view the post and giving comments.

here's the code (refer from msdn) that i use for the receive fax function :-
Expand|Select|Wrap|Line Numbers
  1. Dim objFaxServer As New FAXCOMEXLib.FaxServer
  2. Dim collFaxIncomingJobs As FaxIncomingJobs
  3. Dim objFaxIncomingJob As FaxIncomingJob
  4.  
  5. 'Error handling
  6. On Error GoTo Error_Handler
  7.  
  8. 'Connect to the fax server
  9. objFaxServer.Connect "zeus-lap"
  10.  
  11. 'Get the collection of jobs in the incoming queue
  12. Set collFaxIncomingJobs = objFaxServer.Folders.IncomingQueue.GetJobs
  13.  
  14. 'Display the number of jobs in the collection
  15. MsgBox "There are " & collFaxIncomingJobs.Count & " jobs in the incoming queue."
  16.  
  17. Dim n As Long
  18.  
  19. 'Get the job
  20. n = InputBox("Input the item number for which you want information.")
  21. Set objFaxIncomingJob = collFaxIncomingJobs.Item(n)
  22.  
  23. 'Refresh the job object (job is in process of being received, you
  24. 'want current information)
  25. objFaxIncomingJob.Refresh
  26.  
  27. 'Display the job properties
  28. MsgBox "Available operations: " & objFaxIncomingJob.AvailableOperations & _
  29. vbCrLf & "Caller ID: " & objFaxIncomingJob.CallerId & _
  30. vbCrLf & "CSID: " & objFaxIncomingJob.CSID & _
  31. vbCrLf & "Current page: " & objFaxIncomingJob.CurrentPage & _
  32. vbCrLf & "Device ID: " & objFaxIncomingJob.DeviceId & _
  33. vbCrLf & "Extended status: " & objFaxIncomingJob.ExtendedStatus & _
  34. vbCrLf & "Extended status code : " & objFaxIncomingJob.ExtendedStatusCode & _
  35. vbCrLf & "Job ID: " & objFaxIncomingJob.Id & _
  36. vbCrLf & "Job type: " & objFaxIncomingJob.JobType & _
  37. vbCrLf & "Retries: " & objFaxIncomingJob.Retries & _
  38. vbCrLf & "Routing information: " & objFaxIncomingJob.RoutingInformation & _
  39. vbCrLf & "Size: " & objFaxIncomingJob.Size & _
  40. vbCrLf & "Status: " & objFaxIncomingJob.Status & _
  41. vbCrLf & "Transmission start: " & objFaxIncomingJob.TransmissionStart & _
  42. vbCrLf & "Transmission end: " & objFaxIncomingJob.TransmissionEnd & _
  43. vbCrLf & "TSID: " & objFaxIncomingJob.TSID
  44.  
  45. 'Allow user to cancel the selected fax
  46. Dim CancelString As String
  47. CancelString = InputBox("Cancel this fax (Y/N)?")
  48. If CancelString = "Y" Then objFaxIncomingJob.Cancel
  49.  
  50. 'Allow user to open the selected fax
  51. Dim OpenString As String
  52. OpenString = InputBox("Open this fax (Y/N)?")
  53. If OpenString = "Y" Then
  54.     Dim FileName As String
  55.     FileName = InputBox("Provide path and name of file for TIFF copy, e.g. c:\MyFax.tiff")
  56.     objFaxIncomingJob.CopyTiff (FileName)
  57.  
  58.     'Open the tiff file
  59.     Dim A As Object
  60.     Set A = CreateObject("wscript.shell")
  61.     A.run FileName
  62. End If
  63. Exit Sub
  64.  
  65. Error_Handler:
  66.     'Implement error handling at the end of your subroutine. This 
  67.     ' implementation is for demonstration purposes
  68.     MsgBox "Error number: " & Hex(Err.Number) & ", " & Err.Description
  69.  
Or anybody have a better way to do the receive fax job ?
Mar 14 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1652
by: Rahul S. | last post by:
Hey all: I need urgent information how to set the environment in Visual.NET wiritng in C. I am working with a licensed version of the Analyze 6.0 software from mayo clinic. I need to write code in C using AVW functions that are licensed by Mayo clinic. In order to access the AVW library of functions, I need to set the
3
1746
by: Rahul S. | last post by:
Hey all: I need urgent information how to set the environment in Visual.NET wiritng in C. I am working with a licensed version of the Analyze 6.0 software from mayo clinic. I need to write code in C using AVW functions that are licensed by Mayo clinic. In order to access the AVW library of functions, I need to set the
28
3071
by: Tamir Khason | last post by:
Follwing the struct: public struct TpSomeMsgRep { public uint SomeId;
16
2971
by: | last post by:
Hi all, I have a website running on beta 2.0 on server 2003 web sp1 and I keep getting the following error:- Error In: http://www.mywebsite.org/WebResource.axd?d=5WvLfhnJp5Lc8WhQSD4gdA2&t=632614619884218750 -------------------------------------------------------------------------------- System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed. at...
15
4646
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to communicate with a MySQL database table on a web server, from inside of my company's Access-VBA application. I know VBA pretty well but have never before needed to do this HTTP/XML/MySQL type functions.
2
9099
by: Max Power | last post by:
Hi All I am coding a small app in that swaps specific files between a client and server. All files and locations are set at both sides. I want my app to show a file list, based on the file names, from the local and remote machine..... Local is not a problem and works OK. but I am trying :: Form1.getFile.FileName = Inet1.Execute("ftp://ftp.server.net", "DIR") and I
3
6478
by: N. Spiker | last post by:
I am attempting to receive a single TCP packet with some text ending with carriage return and line feed characters. When the text is send and the packet has the urgent flag set, the text read from the socket is missing the last character (line feed). When the same text is sent without the urgent flag set, all of the characters are read. I'm reading the data using the blocking read call of the network stream class. The .NET...
3
7629
by: Noremac | last post by:
My google skills must be dwindling. I am trying to determine how in ASP.NET 2.0 I can get the ReturnUrl querystring variable in Forms Authentication to contain the absolute url. Just like others that have posed this question, we are an enterprise environment that has multiple websites across multiple servers and we are trying to setup Web SSO for our public internet site that will be accessible by our clients. ASP.NET seems to have...
9
1696
needhelp123
by: needhelp123 | last post by:
Can any one send me a quick sort simple logic pogram... its very urgent urgent
1
2123
by: psantosh12 | last post by:
Hello Frnds Please need help to resolve error.......... it is very very urgent........ The error is Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. Details: To enable the details of...
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9538
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10470
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10247
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10023
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7561
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6803
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5459
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2935
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.