HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › Deployment / Configuration issues › Deploy in .net 2.0
- This topic has 5 replies, 2 voices, and was last updated Feb 17, 2010
17:23:50 byPD4ML.
-
AuthorPosts
-
February 17, 2010 at 16:44#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
February 17, 2010 at 16:52#27857This 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
February 17, 2010 at 17:00#27858It 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:
“<table id='detail' cellpadding='1px' cellspacing='1px' border='0' style='font-family: Verdana, Arial, sans-serif; font-size:12px;' width='700px'><tr>rn <td colspan='2'><img id='imgLogo' src='http://10.0.0.14/cappspurchasingtest/images/SSILLCSM.JPG' height='40px' width='120px' alt='Company logo' /> </td> <td colspan='4'> </td>rn </tr><tr>rn <td colspan='6' align='center'>NON-CONFORMANCE RECORD</td>rn</tr><tr>rn <td style='font-weight:bold;' >Status:</td>rn <td>VOIDED</td><td colspan='2'> </td>rn <td style='font-weight:bold;' >NCR #:</td>rn <td>25</td></tr>rn<tr>rn <td style='font-weight:bold;' >Originator: </td>rn <td>brant </td> <td colspan='2'> </td>rn <td style='font-weight:bold;' >Origin Date:</td>rn <td>2/12/2010</td></tr>rn<tr>rn <td colspan='4'> </td>rn <td style='font-weight:bold;' >Print Date:</td>rn <td>2/17/2010</td></tr>rn<tr>rn <td style='font-weight:bold;' >Part Number:</td>rn <td>01921231</td> <td colspan='2' align='center'>BR FR 1/4X7/8LG</td> <td colspan='2'> </td>rn </tr>rn<tr>rn <td style='font-weight:bold;' >NCR Quantity:</td>rn <td>3.00</td> <td style='font-weight:bold;' >Advanced Deviation:</td>rn <td>No</td> <td style='font-weight:bold;' >Inspection Number:</td>rn <td></td></tr>rn<tr>rn <td style='font-weight:bold;' >Document Type:</td>rn <td>Purchase Order</td> <td style='font-weight:bold;' >P/O,J/O,W/O#:</td>rn <td>10004</td> <td colspan='2'> </td>rn </tr>rn<tr>rn <td style='font-weight:bold;' >Supplier or Work Center:</td>rn <td>2419</td> <td colspan='2' align='center'>HOGGE PRECISION PARTS</td> <td colspan='2'> </td>rn </tr>rn<tr>rn <td style='font-weight:bold;' >Purchasing Agent:</td>rn <td>JES</td> <td colspan='2' align='center'> </td> <td colspan='2'> </td>rn </tr>rn<tr>rn <td colspan='6'><hr /></td>rn </tr>rn<tr>rn <td colspan='6' align='center' style='font-weight:bold' >REASON FOR REJECTION</td>rn </tr>rn<tr>rn <td colspan='6'><hr /></td>rn </tr>rn<tr>rn <td style='font-weight:bold;' >Reason Code(s): </td>rn <td colspan='5'></td></tr>rn<tr>rn <td style='font-weight:bold;' >Drawing Specification:</td>rn <td colspan='5'>d</td></tr>rn<tr>rn <td style='font-weight:bold;' >Problem / Descrepancy:</td> rn <td colspan='5'>d</td></tr>rn<tr>rn <td style='font-weight:bold;' >Q / C Comments:</td> rn <td colspan='5'>d</td></tr>rn<tr>rn <td colspan='6'> </td>rn </tr>rn<tr>rn <td colspan='6'><hr /></td>rn </tr>rn<tr>rn <td colspan='6' style='font-weight:bold; text-align:center' >MATERIAL DISPOSITION</td> rn </tr>rn<tr>rn <td colspan='6'><hr /></td>rn </tr>rn<tr>rn <td style='font-weight:bold;' >Disposition Responsibility:</td>rn <td colspan='2'>Engineering</td> <td style='font-weight:bold;' >Disposition Code:</td> rn <td colspan='2'></td></tr>rn<tr>rn <td style='font-weight:bold;' >Disposition By:</td>rn <td></td> <td style='font-weight:bold;' >Disposition Date:</td>rn <td></td> <td style='font-weight:bold;' >Rework/RMA#:</td>rn <td></td> </tr>rn<tr>rn <td style='font-weight:bold;' >Disposition Comments:</td>rn <td colspan='5'></td></tr>rn<tr>rn <td style='font-weight:bold;' >Authorized By:</td>rn <td></td> <td style='font-weight:bold;' >Authorized Date:</td>rn <td></td> <td colspan='2'> </td> rn </tr>rn<tr>rn <td colspan='6'><hr /></td>rn </tr>rn<tr>rn <td colspan='6' style='font-weight:bold; text-align:center;' >DISTRIBUTION LIST</td> rn </tr>rn<tr>rn <td colspan='6'><hr /></td>rn </tr>rn<tr>rn <td colspan='6'>brant, Charity Clear, </td></tr>rn<tr>rn <td colspan='6'><hr /></td> rn </tr></table>”February 17, 2010 at 17:20#27859Problem soved. Thanks a lot.
February 17, 2010 at 17:22#27860Could you please post the “outfile” content here or send it to support pd4ml com.
February 17, 2010 at 17:23 -
AuthorPosts
The forum ‘Deployment / Configuration issues’ is closed to new topics and replies.
