Welcome Guest Search | Active Topics | Sign In | Register

runtime generated contend issues Options
Marco Marella
Posted: Tuesday, April 16, 2013 11:38:54 AM
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?
eo_support
Posted: Tuesday, April 16, 2013 2:49:41 PM
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!
Marco Marella
Posted: Wednesday, April 17, 2013 2:41:17 AM
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
eo_support
Posted: Wednesday, April 17, 2013 8:34:06 AM
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!


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.