Free Support Forum - aspose.com

ASPOSE WORDS PRINT from ASP.NET Application

Dear Sir, Madam,

We are encountering issues when printing from aspose word while on the production server (ASP.NET Application).

The code found on your website works fine while debugging on a single computer, but nothing happens when published on a production server. (Even though configuration is equivalent)

Public Function ImprimeFichier(ByVal element As T_Document) As Integer
Dim maFacadeDocument As New FacadeDocument(_ID_SITE)
Dim wprint As Aspose.Words.Rendering.AsposeWordsPrintDocument

wdocument = New Document(maFacadeDocument.RecupereNomFichierAvecChemin(element))
'wdocument.Print()

' à tester, en principe, impression sur l'imprimante par défaut
wprint = New Aspose.Words.Rendering.AsposeWordsPrintDocument(wdocument)
wprint.Print()

wprint = Nothing
wdocument = Nothing
End Function

There are no errors generated. The code just seems to “hang” on the Print instruction weather sent to a default printer or a specified one.

Could you please let us know where we may find further instructions concerning this matter?

Cordially

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. Does the some particular document causes the problem or the problem occurs when you try to print any Word document? Could you please attach your document here for testing? I will check the issue on my side and provide you more information.

Also, maybe in your case, there is sense to use printing approach as described here:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net-and-java/howto-print-a-document-on-a-server-via-the-xpsprint-api.html

Best regards.

Hi,

We currently using :
- Windows Server 2003 and IIS 6.0 on our production server
- Windows XP on our client machine

XPSPrint dll doesn’t seem to be avaible for this plateform (only Vista or Seven).
Correct me if i am wrong.

Please advise.

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. Yes, you are right, this feature is available in Windows Vista, Windows 7 and Windows 2008 server.

Best regards.