Corrupt PDF Files

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

Corrupt PDF Files

Postby dCipher » Mon Nov 19, 2012 4:11 pm

HI

I have an application that people access from Terminal Services and occasionally when they generate a pdf it is corrupt. The pdf seems to generate normally and then part way through it looks like all the text is over written in the top right hand corner. If you generate the report and view with vpeview it is always correct. This problem shows up intermittently only in pdf generation. The application is running on Windows 2003. Any ideas to the possible cause? I am using VPE6.1 Professional.

Thanks,
Simon
dCipher
 
Posts: 18
Joined: Wed Apr 27, 2011 7:41 pm

Re: Corrupt PDF Files

Postby IDEAL Software Support » Tue Nov 20, 2012 9:28 am

You are the only customer reporting such a problem. Maybe it has to do with the machine configuration, for example installed fonts.

If you are really sure that v6.10 is used on this machine - and not an older version, please e-mail us source code which makes the problem reproducible. If this is not possible (because it is a random problem), you can also send us also the VPE document file plus the garbled PDF file. Send both to our support e-mail address.
IDEAL Software Support
 
Posts: 1621
Joined: Thu Nov 18, 2004 4:03 pm

Re: Corrupt PDF Files

Postby dCipher » Thu Nov 22, 2012 3:47 am

It is not reproducible and only happens intermittently. Since no one else has reported this problem I will monitor it more and see if there are any clues as to the cause. It is most definitely version 6.1.
dCipher
 
Posts: 18
Joined: Wed Apr 27, 2011 7:41 pm

Re: Corrupt PDF Files

Postby IDEAL Software Support » Thu Nov 22, 2012 1:24 pm

Since you are talking about a server application: If it is multi-threaded, make sure to set the property "EnableMultiThreading = true".

Have you already done this?
IDEAL Software Support
 
Posts: 1621
Joined: Thu Nov 18, 2004 4:03 pm

Re: Corrupt PDF Files

Postby dCipher » Mon Apr 13, 2015 8:54 pm

Hi

I finally discovered what was causing the corrupt PDF files. The users were emailing the pdf reports to customers however they occasionally left the email message empty. The application uses CDOsys.dll to send the email and attachments. When this happens the email attachment gets corrupted. So the pdf generated by VPE is fine the problem arises in how the attachment is handled when the email message is empty.

Simon
dCipher
 
Posts: 18
Joined: Wed Apr 27, 2011 7:41 pm

Re: Corrupt PDF Files

Postby IDEAL Software Support » Tue Apr 14, 2015 12:34 pm

Thank you for the updated information. CDOsys is from Microsoft. Don't they provide an updated version that fixes the problem?

If you are using Extended MAPI, maybe you can workaround this problem by instructing VPE to use Simple MAPI (or vice versa). See the property MAPIType.
IDEAL Software Support
 
Posts: 1621
Joined: Thu Nov 18, 2004 4:03 pm

Re: Corrupt PDF Files

Postby dCipher » Tue Apr 14, 2015 2:17 pm

I am currently using the version that is available on Windows 2012 R2 so the simplest solution was for me to guarantee the message is never empty. So if the user does not include a message I just force the message to be "No message". Simple and effective.

Simon
dCipher
 
Posts: 18
Joined: Wed Apr 27, 2011 7:41 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 9 guests

cron