> Actually I made my application in asp.net and as per the link you send me
> i
> try to write the code but i not get the " oApp = new Application" and also
OK, the other way of doing this in VBA is as follows:
Set oApp = CreateObject("Word.Application")
However, I don't know how you do that in asp.net . Also, in theory you
should verify that the object was created.
> when i used the code given by you for printing the .tif file it prompt me
> that "Operation Failed : Printer is not installed on the machine"
If you have already modified the following line to correspond to your Fax
Printer's name
Const sFaxPrinter = "Fax"
then the only other thing I can suggest is that you may need to alter the
code here, as I suggest (I'm not sure how you could execute this if you had
not managed to set oApp anyway :-)
' don't change the printer if it is already
' correctly set up
' (I had problems when I tried to switch
' to the fax printer in code)
' you may need to adjust this for your
' fax printer name
If Left(sActivePrinter, 3) <> sFaxPrinter Then
oApp.ActivePrinter = sFaxPrinter
End If
Peter Jamieson
> Hi Peter,
>
[quoted text clipped - 224 lines]
>> >> >> >> >
>> >> >> >> > Mitesh Patel