Visualizzazione dei risultati da 1 a 5 su 5
  1. #1

    problema con 'Microsoft.Office.Interop.Word._Application'

    Salve a tutti,
    ho questo "piccolissimo" problema che affligge le mie notti da due settimane ormai: sto sviluppando un sito che deve creare un file in PDF. Utilizzando la dll save_as_pdf faccio in questo modo:
    ho creato un modello in rtf lo utilizzo come modello per il pdf, ci scrivo il codice html (ahimè è una tabella html) all'interno e lo salvo come pdf!!! Tutto funziona finchè utilizzo diciamo così il localhost ma.....una volta pubblicato sui server di Aruba....questo è il risultato
    codice:
    
    Server Error in '/' Application.
    --------------------------------------------------------------------------------
    
    Could not load type 'Microsoft.Office.Interop.Word._Application' from assembly '[nome_dominio], Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. The type is marked as eligible for type equivalence, but the containing assembly is not loaded as fully trusted. 
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
    
    Exception Details: System.TypeLoadException: Could not load type 'Microsoft.Office.Interop.Word._Application' from assembly 'econline, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. The type is marked as eligible for type equivalence, but the containing assembly is not loaded as fully trusted.
    
    Source Error: 
    
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  
    
    Stack Trace: 
    
    
    [TypeLoadException: Could not load type 'Microsoft.Office.Interop.Word._Application' from assembly 'econline, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. The type is marked as eligible for type equivalence, but the containing assembly is not loaded as fully trusted.]
       econline.pag_registri.btn_genera_Click(Object sender, EventArgs e) in pag_registri.aspx.vb:3373
       System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563
    
     
    
    
    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
    adesso io mi chiedo.........PERCHE'? Sto impazzendo, ringrazio tutti coloro che vorranno aiutarmi.

  2. #2
    ciao,
    come detto in diversi post su questo forum, NON bisogna utilizzare gli Interop di office.
    Tanto più se si ha un provider tipo aruba!!!!!!!!!!!!

    cerca in questo forum la risposta a questo quesito.

    ciao

  3. #3
    Con la libreria iTextSharp dovresti risolvere tutti i problemi.
    Sul mio blog trovi un articolo ed un esempio scaricabile :
    ecco il link http://zannino1973.wordpress.com/201...on-itextsharp/
    Sul mio blog qualche utile risorsa per JQuery, HTML5 , CSS3 , PHP , ASP.NET , WCF SERVICE REST & SOAP ed altro ancora http://zannino1973.wordpress.com

  4. #4
    Ti ringrazio......sei stato gentilissimo!!! Problema risolto!

  5. #5
    Per curiosità come hai risolto ?
    Sul mio blog qualche utile risorsa per JQuery, HTML5 , CSS3 , PHP , ASP.NET , WCF SERVICE REST & SOAP ed altro ancora http://zannino1973.wordpress.com

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.