Welcome Guest Search | Active Topics | Sign In | Register

Convert aspx page with barcode to pdf Options
Cedric Mileham
Posted: Monday, January 16, 2012 2:59:39 AM
Rank: Newbie
Groups: Member

Joined: 1/6/2012
Posts: 4
I need to convert a reference number to a barcode and display it on my confirmation screen. This screen must then be converted to PDF and sent as an attachment with my confirmation email.

To display the barcode I put an 'Image' on my page and set the ImageUrl to a program that converts the reference number to a barcode,
i.e. imgBarcode.ImageUrl = "http://myurl/barcode.asp?code="referece number"&height=40&width=1&mode=code39"

This works correctly if I only display the page but if I try to render it to PDF I get the error: "Target can not be null"

Any suggestions?

I tried an alternative by adding a label to my page and setting the text to the reference number. I set the label font property to be 'Code 39' and uploaded the Code 39 font to my site for use with the style sheet. The page displays correctly, i.e. the barcode shows on the screen but when I open the PDF that was created, the barcode doesn't show, in stead the reference number is displayed in a normal font, i.e. Arial.

Can anyone please help. This is extremely urgent.

Thanks
eo_support
Posted: Monday, January 16, 2012 8:58:51 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

This might be a bug. Can you provide a test page so that we can take a look? The image approach should work. The font approach may not work because we only support TrueType font. There are other types of font Windows would display fine but it would hide the font data details from us, thus not working in PDF.

Thanks!
Cedric Mileham
Posted: Monday, January 16, 2012 10:43:55 AM
Rank: Newbie
Groups: Member

Joined: 1/6/2012
Posts: 4
I'll send you a private message with details of a test page.
eo_support
Posted: Monday, January 16, 2012 12:04:35 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Thanks for the test page, we wil look into it and get back to you as soon as possible.
eo_support
Posted: Tuesday, January 17, 2012 11:23:19 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

We have posted a new build (dll version 3.0.105.2) that should fix this problem. Please see your private message for the download location.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.