|
Rank: Newbie Groups: Member
Joined: 8/24/2011 Posts: 4
|
Hi EO
I dont understand this error.
i have : <%@ Register assembly="EO.Web" namespace="EO.Web" tagprefix="eo" %> and <eo:ASPXToPDF ID="ASPXToPDF1" runat="server"> </eo:ASPXToPDF> on a aspx page.
and Dim fileName As String = String.Format("Grand-Livre-{0:yyyy-MM-dd}.pdf", Now) ASPXToPDF1.RenderAsPDF(fileName)
how to pease? Regards
Marc
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
You are calling it too early. Try to call it inside an event handler (for example, a Button's Click event handler), or inside your Page_Load event.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 8/24/2011 Posts: 4
|
yes l call aspxtopdf in page_load event of an aspx page
and this is the last vb command...
regards
mc
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
That should work fine. Can you create a test project to demonstrate the problem and send it to us?
Thanks
|
|