|
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
|
|
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!
|
|
Rank: Newbie Groups: Member
Joined: 1/6/2012 Posts: 4
|
I'll send you a private message with details of a test page.
|
|
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.
|
|
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!
|
|