|
Rank: Newbie Groups: Member
Joined: 4/16/2013 Posts: 7
|
hi, i have some images (barcode in my case) generated at runtime when a button il clicked, if i generate a pdf, it's empty. When i place the same code in the load event even my pdf is right, can you help me, please?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
That makes sense. Your code that generate contents runtime must be called one way or another. Calling from page load is one way to do it.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 4/16/2013 Posts: 7
|
Hi, but i'd like to generate my barcodes after clicking the button (and not in the load event) and then create the pdf, but in this case the pdf generated is empty, the barcodes i see in the page is not in my pdf... thanks
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
I am not sure how you generate your bar code. But if you use ASPXToPDF, then you should be able to use the same code inside your page load event as well as the button click event. As a simple test, comment out the RenderAsPDF call. And the page renders correctly on screen with your bar code, then it should render correctly with ASPXToPDF.
Thanks!
|
|