Hello,
I am using the evaluation version of DynamicPDF Generator v5.0.1 for ASP.NET and I am having a problem trying to display the updated information on a GridView component when calling the DrawToWeb procedure. If I were to comment out the DrawToWeb call, the information on the GridView get updated on the screen correctly when calling DataBind(). Any help is appreciated. Thanks.
-------------------------------------------------------------------
ceTe.DynamicPDF.Document pdfDocument = new ceTe.DynamicPDF.Document();
ceTe.DynamicPDF.Page page = new ceTe.DynamicPDF.Page(PageSize.Letter, PageOrientation.Portrait, 0.0f);
ceTe.DynamicPDF.PageElements.Label label = new ceTe.DynamicPDF.PageElements.Label("test", 5, 16, 200, 100, ceTe.DynamicPDF.Font.CourierBold, 11);
page.Elements.Add(label);
pdfDocument.Pages.Add(page);
InfoGridView.DataBind();
pdfDocument.DrawToWeb("DynamicPDF.pdf", true);
GridView data does not get updated when calling DrawToWeb
Re: GridView data does not get updated when calling DrawToWeb
Support · Oct 15, 2008Hello,
We will do some testing using the GridView and we will post the updates on this issue as soon as we get the details.
Thanks,
ceTe Software Support Team.
Re: GridView data does not get updated when calling DrawToWeb
Support · Oct 16, 2008Hello,
The DrawToWeb method will write the PDF data to the Response object. It will not be possible to see the contents on the page when using the DrawToWeb method.
Thanks,
ceTe Software Support Team.
Re: GridView data does not get updated when calling DrawToWeb
Forum member · Oct 21, 2008Do you have any suggestion on how I can get around this? I am trying to print invoices using the DrawToWeb method. Once printed the InforGridView is suppose to refresh with invoices that I have not yet printed.
Thanks
Re: GridView data does not get updated when calling DrawToWeb
Support · Oct 22, 2008Hello,
It is not possible to update the grid view when calling the DrawToWeb method. You can only do one thing whether calling the DrawToWeb or updating the grid view.
You may have to save the PDF to the server using the Draw method which takes the file path to save and then update the grid view. Here you can give a link to open the PDF if the user wants to view the PDF. User will have to click the link which opens the saved PDF on a new browser window or in the same browser.
Thanks,
ceTe Software Support Team.