Creating PDF from a Flex DataGrid
Does anyone have code/component to create a PDF from a Flex Data Grid?
-I know you can take a image shot and pass that to the XFAHelper but that would only show one page. -We created a PDF Template with a table and we can bind in the rows into table as XML – this works well IF you know the column names and widths up front.
We have a dynamic data grid that the user can add in new columns and rearrange/resize columns at will. How do we get this dynamic data grid to present in a “Paged” PDF.
Thanks for your help,
Anthony
Has no one needed to do this?
Has anyone tried printing a data grid with IText?
On Aug 14, 12:45 pm, Anthony DeBonis wrote: > Does anyone have code/component to create a PDF from a Flex Data Grid? > > -I know you can take a image shot and pass that to the XFAHelper but > that would only show one page. > -We created a PDF Template with a table and we can bind in the rows > into table as XML – this works well IF you know the column names and > widths up front. > > We have a dynamic data grid that the user can add in new columns and > rearrange/resize columns at will. How do we get this dynamic data > grid to present in a “Paged” PDF. > > Thanks for your help, > > Anthony
There is a sample for doing this in LC DS and BlazeDS. Source code is included.
There are also methods available such as getDataGridTitle()
D
Hi I have done it once using livecycle ES on the backend. If that is what you want, I think I can write up a simple process and send it to you thanks girish
On Aug 17, 9:59 am, Duane Nickull wrote: > There is a sample for doing this in LC DS and BlazeDS. Source code is > included. > > There are also methods available such as getDataGridTitle() > > D > > On Mon, Aug 17, 2009 at 6:30 AM, Anthony DeBonis wrote: > > > > > > > Has no one needed to do this? > > > Has anyone tried printing a data grid with IText? > > > On Aug 14, 12:45 pm, Anthony DeBonis wrote: > > > Does anyone have code/component to create a PDF from a Flex Data Grid? > > > > -I know you can take a image shot and pass that to the XFAHelper but > > > that would only show one page. > > > -We created a PDF Template with a table and we can bind in the rows > > > into table as XML – this works well IF you know the column names and > > > widths up front. > > > > We have a dynamic data grid that the user can add in new columns and > > > rearrange/resize columns at will. How do we get this dynamic data > > > grid to present in a “Paged” PDF. > > > > Thanks for your help, > > > > Anthony > > — > ****************************** > Speaking only for Duane’s Worldhttp://www.duanesworldtv.org/http://technoracle.blogspot.com > “I don’t know what I want to be when I grow up” > ******************************
Duane,
Can you tell me what sample you are looking at?
http://localhost:8400/lcds-samples/pdfgen/index.html only takes a screen shot as far as I can tell + the columns are know but ours are dynamic. var snapshot:ImageSnapshot = ImageSnapshot.captureImage (balanceSheet); balanceSheetImage = ImageSnapshot.encodeImageAsBase64 (snapshot);
snapshot = ImageSnapshot.captureImage(earnings); earningsImage = ImageSnapshot.encodeImageAsBase64 (snapshot);
Thanks for your help,
Anthony
On Aug 17, 12:59 pm, Duane Nickull wrote: > There is a sample for doing this in LC DS and BlazeDS. Source code is > included. > > There are also methods available such as getDataGridTitle() > > D > > On Mon, Aug 17, 2009 at 6:30 AM, Anthony DeBonis wrote: > > > > > > > Has no one needed to do this? > > > Has anyone tried printing a data grid with IText? > > > On Aug 14, 12:45 pm, Anthony DeBonis wrote: > > > Does anyone have code/component to create a PDF from a Flex Data Grid? > > > > -I know you can take a image shot and pass that to the XFAHelper but > > > that would only show one page. > > > -We created a PDF Template with a table and we can bind in the rows > > > into table as XML – this works well IF you know the column names and > > > widths up front. > > > > We have a dynamic data grid that the user can add in new columns and > > > rearrange/resize columns at will. How do we get this dynamic data > > > grid to present in a “Paged” PDF. > > > > Thanks for your help, > > > > Anthony > > — > ****************************** > Speaking only for Duane’s Worldhttp://www.duanesworldtv.org/http://technoracle.blogspot.com > “I don’t know what I want to be when I grow up” > ******************************
Yes please it would help – getting no where on this should be simple item.
On Aug 17, 1:44 pm, LiveCycle Lifeline wrote: > Hi > I have done it once using livecycle ES on the backend. If that is what > you want, I think I can write up a simple process and send it to you > thanks > girish > > On Aug 17, 9:59 am, Duane Nickull wrote: > > > There is a sample for doing this in LC DS and BlazeDS. Source code is > > included. > > > There are also methods available such as getDataGridTitle() > > > D > > > On Mon, Aug 17, 2009 at 6:30 AM, Anthony DeBonis wrote: > > > > Has no one needed to do this? > > > > Has anyone tried printing a data grid with IText? > > > > On Aug 14, 12:45 pm, Anthony DeBonis wrote: > > > > Does anyone have code/component to create a PDF from a Flex Data Grid? > > > > > -I know you can take a image shot and pass that to the XFAHelper but > > > > that would only show one page. > > > > -We created a PDF Template with a table and we can bind in the rows > > > > into table as XML – this works well IF you know the column names and > > > > widths up front. > > > > > We have a dynamic data grid that the user can add in new columns and > > > > rearrange/resize columns at will. How do we get this dynamic data > > > > grid to present in a “Paged” PDF. > > > > > Thanks for your help, > > > > > Anthony > > > — > > ****************************** > > Speaking only for Duane’s Worldhttp://www.duanesworldtv.org/http://technoracle.blogspot.com > > “I don’t know what I want to be when I grow up” > > ******************************