Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #26335

    I downloaded the trial version for .NET pd4ml.pro.trial.dotnet20.351.
    It is running fine when I debug it.
    But after I deploy it to the server to let the manager decide if this is what we will purchase. It give error “The file is damaged and could not be repaired”.
    Is this a license issue or something else?
    If it is a license issue, how can I get the trial version in our server for a certain time, so the decision making people can review it?

    Thanks

    #27857

    This is most likely happening because there is some stray HTML being output after/before the PDF stream is getting created.

    I would recommend to save PDF to the hard drive and to open it with a text editor. Make sure it starts with %PDF-1.4 and ends with %%EOF

    #27858

    It is running fine in my computer though.
    Our application need to pop up this PDF report in the window, and let user to save it to their disks if they want to.
    Below is the code I use to convet a html string to pdf:

    MemoryStream mstr = new MemoryStream(Encoding.ASCII.GetBytes(strHtml));
    pd4ml.render(mstr, outfile);

    below is the value of strHtml in debug mode:

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

     
    NON-CONFORMANCE RECORD
    Status: VOIDED   NCR #: 25
    Originator: brant   Origin Date: 2/12/2010
      Print Date: 2/17/2010
    Part Number: 01921231 BR FR 1/4X7/8LG  
    NCR Quantity: 3.00 Advanced Deviation: No Inspection Number:
    Document Type: Purchase Order P/O,J/O,W/O#: 10004  
    Supplier or Work Center: 2419 HOGGE PRECISION PARTS  
    Purchasing Agent: JES    

    REASON FOR REJECTION

    Reason Code(s):
    Drawing Specification: d
    Problem / Descrepancy: d
    Q / C Comments: d
     

    MATERIAL DISPOSITION

    Disposition Responsibility: Engineering Disposition Code:
    Disposition By: Disposition Date: Rework/RMA#:
    Disposition Comments:
    Authorized By: Authorized Date:  

    DISTRIBUTION LIST

    brant, Charity Clear,

    #27859

    Problem soved. Thanks a lot.

    #27860

    Could you please post the “outfile” content here or send it to support pd4ml com.

    #27861

    @nereid wrote:

    Problem soved. Thanks a lot.

    Glad you solved it.

Viewing 6 posts - 1 through 6 (of 6 total)

The forum ‘Deployment / Configuration issues’ is closed to new topics and replies.