online cheap medications order generic bactrim price, and buy cheap online buy cheap discount lasix, and cheap pharmacy lipitor without rx, and online ordering accutane review, and order cheap how much acyclovir to kill, and buy cheapest synthroid order online, and pharmacy cheapest cheap baclofen pill, and order online directions for taking clomid, and online cheap medications cheap hydrochlorothiazide without rx, and cheap pharmacy purchase amoxil cod overnight delivery, and cheap pharmacy arimidex online overnight, and buy cheap online buy buy zithromax pill online, and order online online valtrex prescription in utah, and buy cheapest buy cheap discount online flagyl, and buy online zovirax (acyclovir) cheapest, and buy cheap how to buy prozac online without a rx, and cheap pharmacy cash on delivery paxil, and cheap pharmacy diflucan cod delivery next day, and purchase no prescription propecia cancer prevention, and generic medications neurontin and online overnight delivery, and purchase no prescription norvasc fedex shipping, and online ordering purchase doxycycline next day cod, and ordering online feminizing effects of premarin, and buy cheap online buspar and wellbutrin, and online cheap medications order overnight retin-a, and

Dynamic Grid coming in 0.1.4.8

I am about to release the next version of AlivePDF which is having a new nice feature I already talked about a few months ago, I know you guys needed this one for some projects, you can already download the new release of AlivePDF in the AlivePDF SVN which already contains a beta 0.1.4.8 branch. I will fix some minor stuff and release the final version next week.

This new grid feature will allow you to pass any ArrayCollection and let AlivePDF inject the data in the PDF as a nice table. This new feature is available through the addGrid method which is receiving a Grid object and a position. You can set options like colors and alternate row colors, or text alignement in cells.

I am currently thinking about adding a Microsoft Excel feature so that you can also call the export method on the Grid object and generate an Excel file having all those data in it. Let me know if you think you would like or need such a feature.

Here is a tiny demo which illustrates the power of this new addGrid feature :

A Flash animation should have appeared here, but it seems that your browser has an older version of the Flash Player or it is not installed at all. Please, install the last release of the Flash Player now, then reload this page.

Update : Here is the code being used for the demo above

var grid:Grid = new Grid ( dp.toArray(), 200, 120, new Array (40, 50, 40, 30), new Array ( Align.LEFT, Align.LEFT, Align.LEFT, Align.LEFT ), new RGBColor (0x666666), new RGBColor (0xCCCCCC), new RGBColor (0), true, new RGBColor ( 0x0 ), Joint.MITER );

myPDF.addPage();
myPDF.textStyle( new RGBColor(0), 1 );
myPDF.setFont ( FontFamily.ARIAL, Style.NORMAL, 12 );
myPDF.addGrid( grid, 5, 5 );

More stuff to come soon ! :)

Comments 82

  1. Adam wrote:

    Getting better all the time. The generated PDF spills “com” and “be.com” onto pages 3 and 5 for me, but it looks pretty good otherwise.

    Posted 27 Feb 2009 at 3:21 am
  2. Adam wrote:

    Sorry to double comment, but.. having the Excel option would be pretty nice; and would get us away from the server side generation of that, which would be really nice…

    Posted 27 Feb 2009 at 3:22 am
  3. Gonçalo Fortes wrote:

    Great job. It keeps exchanging the order of the columns, though.
    The excel would be great! :D

    Posted 27 Feb 2009 at 3:00 pm
  4. Thibault Imbert wrote:

    Hi Gonçalo,

    Cool you like it !

    Order of columns should be fixed now :)

    Posted 27 Feb 2009 at 3:19 pm
  5. Fabien wrote:

    Great job, again what a great job !!!
    (“ah la la, toujours aussi époustouflant !”)

    Posted 27 Feb 2009 at 8:05 pm
  6. sleepycoder wrote:

    Great job on the library. Am really looking forward to it continuing to grow in features.

    Testing the about grid demo on a red hat linux results in a pdf that is not readable (error #3), but it works great on windows and mac. Anyone experience this?

    Thanks.

    Posted 27 Feb 2009 at 8:33 pm
  7. Thibault Imbert wrote:

    Hi sleepycoder,

    Yes, there is a bug in the linux Flash Player in the ByteArray.writeMultiByte method. I will try adding a specific workaround for the linux player in next AlivePDF release.

    Thibault

    Posted 28 Feb 2009 at 12:22 am
  8. bebensiganteng wrote:

    yes, capabilities to port the document to excel is definitely needed. it will open a plethora of innovative application which we as flash developer can do
    and i thank you sir for your brilliant work

    Posted 28 Feb 2009 at 5:39 pm
  9. Gonçalo Fortes wrote:

    Hello! About the exchanging of the lines, can you please put the code for the above example? Because in your example it doesn’t exchange. I have already tried with a direct array and with parameters that come from a dataGrid. Maybe it’s my mistake…

    Posted 02 Mar 2009 at 2:19 pm
  10. Gonçalo Fortes wrote:

    Still the same behaviour using your code.
    I build my array dinamically:

    var: ar: ArrayCollection = new ArrayCollection();

    for(…){
    var o:Object = new Object();
    o = {a:1, b:2};
    ar.addItem(o);
    }

    Something like this. But when it prints the pdf, the order of the columns in the header row is not right:

    b a
    1 2
    1 2

    Not wanting to abuse, but it would be very helpfull if we can pass another array with the header titles, instead of using the names of the variables.

    Posted 02 Mar 2009 at 4:38 pm
  11. Gonçalo Fortes wrote:

    Not only the header row is affected, but all of them are. If you prefer, I’ll transfer this question to the forum…

    Posted 02 Mar 2009 at 4:47 pm
  12. Gonçalo Fortes wrote:

    I think I got it: in PDF.as line 2967 you have a sort method.I believe that in your example it works because the column titles are already in alphabetical order. If I remove this sort method, the titles will be aligned with the values.
    But still, can’t get the values to be printed with the order that I create the object…

    Posted 02 Mar 2009 at 5:04 pm
  13. Thibault Imbert wrote:

    Hi Gonçalo,

    There was a bug in a previous release I uploaded the day I announced the 0.1.8 release. The bug was exactly what you are talking about. Make sure you have the latest version available in 0.1.4.8 tag branch.

    I made some tests right now and your code is working fine.

    let me know,

    Thibault

    Posted 02 Mar 2009 at 5:23 pm
  14. Thibault Imbert wrote:

    By the way, yes I am thinking about including a feature where you could pass an array with the header titles.

    Thanks,

    Thibault

    Posted 02 Mar 2009 at 5:26 pm
  15. Gonçalo Fortes wrote:

    Got it! ;)
    Thanks.

    Posted 02 Mar 2009 at 7:30 pm
  16. al wrote:

    great work!

    but if ArrayCollection have complicate data type and the export pdf will pop

    “pdf an unrecognized token “NaN” was found”

    why?

    Posted 03 Mar 2009 at 6:08 am
  17. SunPatel wrote:

    I have created a demo app for generating pdf from a VBox with dynamic child….it
    doesn’t work either. Take a look. I am using Flex4 SDK to save the PDF locally in FP 10.

    <![CDATA[
    import org.alivepdf.images.ResizeMode;
    import org.alivepdf.saving.Method;
    import org.alivepdf.images.ImageFormat;
    import org.alivepdf.pages.Page;
    import org.alivepdf.display.*;
    import org.alivepdf.layout.*
    import org.alivepdf.pdf.PDF;

    private var mPDF:PDF;

    private function onPDFCreate():void
    {
    mPDF = new PDF(Orientation.PORTRAIT, Unit.MM, Size.A4 );
    mPDF.setDisplayMode( Display.FULL_PAGE, Layout.SINGLE_PAGE );
    mPDF.setTitle(‘Module’);
    for(var i:int=0; i

    Need a quick solution…please help!!

    Posted 03 Mar 2009 at 7:15 pm
  18. Thibault Imbert wrote:

    Hi SunPatel,

    Can you tell me more about the problem ? Images should be included and you don’t see them ?

    Thibault

    Posted 03 Mar 2009 at 7:23 pm
  19. SunPatel wrote:

    Hi Thibault
    Thanks for helping me on this and yes you are correct…the images are not included and we are getting blank pdf pages. We are using the latest build of alivepdf.

    <![CDATA[
    import org.alivepdf.images.ResizeMode;
    import org.alivepdf.saving.Method;
    import org.alivepdf.images.ImageFormat;
    import org.alivepdf.pages.Page;
    import org.alivepdf.display.*;
    import org.alivepdf.layout.*
    import org.alivepdf.pdf.PDF;

    private var mPDF:PDF;

    private function onPDFCreate():void
    {
    mPDF = new PDF(Orientation.PORTRAIT, Unit.MM, Size.A4 );
    mPDF.setDisplayMode( Display.FULL_PAGE, Layout.SINGLE_PAGE );
    mPDF.setTitle(‘Module’);
    for(var i:int=0; i

    Need a quick solution…please help!!

    Posted 03 Mar 2009 at 11:13 pm
  20. SunPatel wrote:

    Im not able to paste the complete code here for some reason…so i put we put it here as well

    http://code.google.com/p/alivepdf/issues/detail?id=69

    Posted 03 Mar 2009 at 11:15 pm
  21. Thibault Imbert wrote:

    Hi SunPatel,

    Try passing false to the keepTransformation parameter of the addImage method.

    let me know,

    Thibault

    Posted 04 Mar 2009 at 12:29 am
  22. Phiphou wrote:

    Thibault,

    Bravo, c’est vrai que c’était indispensable!

    Tellement que je n’ai pu attendre et j’ai développé ma propre méthode AddGrid(). Dans celle-ci, je propose de reprendre les headers à chaque nouvelle page pour les gros tableaux.

    Tu parlais d’un array pour ceux-ci. Peut-être peux tu reprendre l’idée ?

    Sinon, à quand le SVG dans AlivePDF ?

    Posted 04 Mar 2009 at 2:35 am
  23. Alex Z wrote:

    Hi, Thibault Imbert :

    if ArrayCollection have complicate data such as long string or special characters and more than 10 columns , export pdf will pop
    “pdf an unrecognized token “NaN” was found” and some pages are blank, is here has a reasonable explaination ?

    Thanks in advance !

    Posted 04 Mar 2009 at 4:16 am
  24. Noel wrote:

    var ar: ArrayCollection = new ArrayCollection();
    var i:int;
    for(i=1;i<=10;i++){
    var o:Object = new Object();
    o = {a:1, b:2, name:’Noel D’, age:22};
    ar.addItem(o);

    Hi when i save the above array to pdf the fields get sorted in ascending order (a, age, b ,Name) in the pdf
    How to keep the same order as in the object?

    Posted 04 Mar 2009 at 9:50 am
  25. Esau wrote:

    Hi !

    I download the PDF.as but when I try to build my application in eclipse I have this error

    Description Resource Path Location Type
    1071: Syntax error: expected a definition keyword (such as function) after attribute OCTYPE, not html. PDF.as ProvaFlex/flex_src/org/alivepdf/pdf line 1 Flex Problem

    Thanks

    Posted 04 Mar 2009 at 12:04 pm
  26. Roy wrote:

    Any Alpha PNG support coming in new release?

    Posted 04 Mar 2009 at 8:06 pm
  27. kamiseq wrote:

    hej,
    my problem is that when I open the pdf file everything is ok, but then if I move scrollbar in acrobat reader then everything disappear….

    any ideas??

    Im using addGrid function as shown above

    Posted 05 Mar 2009 at 12:19 am
  28. Vitaliy Tsvayer wrote:

    I could not find a way to add vertical text. So, in case someone needs this functionality you can add the following function into PDF class:

    public function addVerticalText ( text:String, x:Number=0, y:Number=0):void
    {
    var s:String = sprintf(‘BT %.2f %.2f %.2f %.2f %.2f %.2f Tm (%s) Tj ET’,
    0, 1, -1, 0, x*k, (currentPage.h-y)*k, escape(text));
    if (underline && text !=”) s += ‘ ‘+doUnderline(x,y,text);
    if (colorFlag) s = ‘q ‘ + addTextColor + ‘ ‘ + s +’ Q’;
    write(s);
    }

    Posted 05 Mar 2009 at 1:20 am
  29. Vitaliy Tsvayer wrote:

    By the way, you can scale text as well. In addVerticalFunction you can replace 0, 1, -1, 0 to something like 0, scale, -scale, 0. And to write scaled horizontal text instead of 0, scale, -scale, 0 you write scale, 0, 0, scale. Well, is seems like instead of addVerticalText this function could replace addText and become more generic.

    Posted 05 Mar 2009 at 11:39 am
  30. kundleyans wrote:

    Is there any example to embed a swf file in pdf? We have a scenario wherein we show a hierarchical collapsible/expandible chart in flex which we wish to export to a pdf wherein it should have the same capabilities of expand/ collapse. So, if we could embed a swf file, it would suffice our purpose. thanks in advance.

    Posted 05 Mar 2009 at 4:18 pm
  31. Dal Mon wrote:

    Is it possible to change the custom resolution when someone opens a PDF?

    I have to tell my users to change their settings manually to use System Settings (96 pixels per inch)

    Edit -> Preferences -> Page Display -> Resolution -> Custom Settings

    I wonder if it’s possible to embed this info in the pdf header somewhere so that the PDF Reader uses the specified resolution.

    Posted 06 Mar 2009 at 1:34 am
  32. Nadeem wrote:

    HI ! ! I have been using alivePDF for quite a long time…so far it’s quite good…but I’m still wondering in heaven when i need to generate multipage PDF …. my data is coming dynamically in datagrid..and i need all the roecrds to be saved in pdf file..how can i achieve this??? please give me solution..it’s very urgent..also till now there is no link for the latest release..which was supposed to be provided this week…please reply me soon…i’m very worried on how to generate multipage PDF……

    Posted 07 Mar 2009 at 10:18 am
  33. Nadeem wrote:

    also..the demo provided is displaying error….

    Posted 07 Mar 2009 at 10:22 am
  34. Nadeem wrote:

    Does anybody know from where should I download AlivePDF0.1.4.8???i.e. the latest one…please reply me soon…..

    Posted 07 Mar 2009 at 10:38 am
  35. Thibault Imbert wrote:

    Hi Nadeem,

    You can download the latest version of AlivePDF in the SVN available here :

    http://code.google.com/p/alivepdf/source/browse/#svn/tags/alivepdf-0.1.4.8/src/main/flex/org

    best,

    Thibault

    Posted 07 Mar 2009 at 3:13 pm
  36. Thibault Imbert wrote:

    Hi kundleyans,

    SWF embedding should come in the next release, stay tuned !

    best,

    Thibault

    Posted 09 Mar 2009 at 12:03 am
  37. Nadeem wrote:

    Hi Thibault…

    Thanks for the code….can u please tell me when i’m converting into pdf ….the pdf is blank and displaying the error ..”An unrecognized token ‘NAN’ was found”..Sirm why i’m getting this error ..here is the code…please help me..
    [Bindable]
    private var dp:ArrayCollection=new ArrayCollection([
    {A:'A',B:'Nadeem',C:'Song 1',D: 100},
    {A:'B',B:'Ashish',C:'Song 2',D: 100},
    {A:'C',B:'Rupesh',C:'Song 3',D: 100},
    {A:'D',B:'Mamta',C:'Song 4',D: 100},
    ]);
    private function generatePDF ():void
    { myPDF = new PDF( Orientation.PORTRAIT, Unit.MM, Size.LETTER );

    var grd:NadeemGrid = new NadeemGrid(dp.toArray(), 200, 120, new Array (40, 50, 40, 30), new Array ( Align.LEFT, Align.LEFT, Align.LEFT, Align.LEFT ), new RGBColor (0×666666), new RGBColor (0xCCCCCC), new RGBColor (0), true, new RGBColor ( 0×0 ), Joint.MITER);
    //grd.d
    //var g:Grid= new Grid(insGrid.toString());

    myPDF.addPage();
    myPDF.textStyle( new RGBColor(0), 1 );
    myPDF.setFont ( FontFamily.ARIAL, Style.NORMAL, 12 );
    myPDF.addGrid(grd, 5, 5 );

    myPDF.save( Method.REMOTE, “http://localhost/test/create.php”, “drawing.pdf” );

    }

    Posted 09 Mar 2009 at 8:10 am
  38. Matthieu wrote:

    I have the same code of you Nadem but it work …

    I have a problem with the height of the different cells. The height is not dynamic with the size of the characters.

    Good job Thibault nice development ! :)

    Posted 10 Mar 2009 at 12:39 pm
  39. Matthieu wrote:

    I have found where is the “bug” for the height of your cells.

    In the class PDF.as method addRow we have define the height in hard at 5 !

    I have change the value to 12 and I will adapt the code to put the height of the cell directly to the Grid !

    Code for method addRow:

    public function addRow(data:Array):void
    {
    var nb:int = 0;
    var lng:int = data.length;

    for(var i:int=0;i<lng;i++) nb = Math.max(nb,nbLines(widths[i],data[i]));

    var h:Number = 12*nb;
    var x:Number;
    var y:Number;
    var a:String;
    var w:Number;

    var rect:Rectangle = new Rectangle(x,y,w,h);

    for(i=0;i<lng;i++)
    {
    a = (aligns == null) ? Align.LEFT : aligns[i] != null ? aligns[i] : Align.LEFT;
    rect.x = x = getX();
    rect.y = y = getY();
    rect.width = w = widths[i];
    drawRect( rect );
    addMultiCell(w,12,data[i],0,a);
    setXY(x+w,y);
    }
    newLine(h);
    }

    Posted 10 Mar 2009 at 12:57 pm
  40. JPM974 wrote:

    Bonjour,

    Super boulot ! Je suis en train de tester la version 0.1.4.8 mais il semblerait que les x et y d’insertion (pdf.addGrid(x, y, grid)) ne soient pas pris en compte…

    Bonjour chez vous

    Posted 10 Mar 2009 at 1:29 pm
  41. Thibault Imbert wrote:

    Salut JPM974,

    Je viens de me rendre compte de cet oubli oui, merci !!

    Je corrige ça de suite et update la release 0.1.4.8.

    Thibault

    Posted 10 Mar 2009 at 10:25 pm
  42. Thibault Imbert wrote:

    Salut JPM974,

    Tu peux dès à présent télécharger la version 0.1.4.8 du SVN elle est corrigée et te permet désormais de spécifier une position pour la grille :)

    http://code.google.com/p/alivepdf/source/browse/#svn/tags/alivepdf-0.1.4.8/src/main/flex/org

    Thibault

    Posted 11 Mar 2009 at 2:01 pm
  43. Clive wrote:

    Firstly, Thank you Thibault for sharing your great work.

    The max columns allowed before the PDF breaks is 4, for example, this will NOT work:

    dp.addItem( { firstName : “Bob”, lastName : “Groove”, city : “Paris”, xxx : “xxx”, yyy:”yyy” } );
    dp.addItem( { firstName : “Bob”, lastName : “Wise”, city : “Paris”, xxx : “xxx”, yyy:”yyy” } );
    dp.addItem( { firstName : “Bob”, lastName : “Wise”, city : “Paris”, xxx : “xxx”, yyy:”yyy” } );
    dp.addItem( { firstName : “Bob”, lastName : “Wise”, city : “Paris”, xxx : “xxx”, yyy:”yyy” } );

    Additionally, it shouldn’t print the mx_internal_uid fields in a dataprovider array

    Thanks

    Posted 11 Mar 2009 at 10:35 pm
  44. JPM974 wrote:

    Nickel ! Merci.

    Posted 12 Mar 2009 at 7:33 am
  45. Nadeem wrote:

    Hi…Matthieu…

    I don’t know how the same code works for you..though i’m still getting the same error ” an unrecognised token ‘NAN’ was found”….after changing the cell height from 5 to 12….please somebody help me out..is there any restriction on the verison of Adobe reader…???..please i need help URGENTLY ! ! !…

    Posted 12 Mar 2009 at 11:33 am
  46. JPM974 wrote:

    Bonjour,

    Suite à de nouveaux tests, j’ai pu constater que l’ordre des colonnes du tableau généré dans le pdf par addGrid() ne correspondait pas à l’ordre d’origine (dataGrid dans mon cas). Pour palier à cet inconvénient, je me suis permis de modifier tes 2 scripts grid.as et PDF.as en ajoutant, dans le constructeur de la classe Grid, un tableau contenant les headers des colonnes, dans le bon ordre.
    Le tableau est ensuite utilisé dans la méthode addGrid() au lieu de buffer[0] et les 2 sort deviennent alors inutiles.
    Je pense qu’un tel comportement devrait plus correspondre à l’attente des utilisateurs (paramètre optionnel ?).
    Qu’en penses-tu ?

    Cordialement.

    Posted 12 Mar 2009 at 3:27 pm
  47. Thibault Imbert wrote:

    Salut JPM974,

    Tout à fait, je suis en train de terminer une nouvelle release qui permet de spécifier un tableau pour spécifier l’ordre ainsi que le nom des headers.

    J’ai fais d’autres modifs aussi, je vais poster ça très prochainement. Tu peux m’envoyer tes sources modifier par email (thibault [at] bytearray.org) si possible ? J’aimerai voir ton approche pour voir si je n’ai rien oublié :)

    Merci bcp !

    Thibault

    Posted 12 Mar 2009 at 3:35 pm
  48. Thibault Imbert wrote:

    Salut JPM974,

    J’ai posté une nouvelle version de la release 0.1.4.8 qui offre plus de souplesse au niveau gestion des colonnes (nom, ordre, etc).

    J’aimerai avoir tes retours là dessus ! Merci !

    Thibault

    Posted 12 Mar 2009 at 8:24 pm
  49. JPM974 wrote:

    Cool ! Très bien la simplification. Le résultat est le même qu’avec ma “rustine” mais le code est plus propre.

    Merci pour ton efficacité et bon WE.

    Posted 13 Mar 2009 at 10:10 am
  50. Thiago wrote:

    please, I tried the PDF file on WINDOWS, and it works perfectly,
    thought, when I tried it on my GNU Linux (I use Ubuntu 8.10)
    it doesn’t open the file and says it can’t recognize octect stream file (I’m using the C# Create.cs file)

    personally, I think it has something to do with the PDF file being so small, there might be something missing so Linux can load it.

    Hope myself to be of use.

    Posted 17 Mar 2009 at 9:57 pm
  51. Israel Martinez wrote:

    Great Work!!!!

    I suggest Excel export too.

    Posted 17 Apr 2009 at 4:45 am
  52. yazmin wrote:

    Hi,

    The code look great for the job I’m doing, I tried it out but I’m having some problems when I tried to generate the pdf file, the code is as follows:

    private function pdfSave():void
    {
    var dp:ArrayCollection = new ArrayCollection ();
    dp.addItem( { firstName : “Bob”, lastName : “Groove”, city : “Paris” } );
    dp.addItem( { firstName : “Bob”, lastName : “Wise”, city : “Paris” } );
    dp.addItem( { firstName : “Bob”, lastName : “Wise”, city : “Paris” } );
    dp.addItem( { firstName : “Bob”, lastName : “Wise”, city : “Paris” } );

    var grid:Grid = new Grid ( dp.toArray(), 200, 100,
    new RGBColor (0x00CCFF),
    new RGBColor (0xFFFFFF),new RGBColor(0), true, new RGBColor ( 0×0 ), Joint.ROUND );

    myPdf = new PDF(Orientation.PORTRAIT,Unit.CM,Size.LETTER);
    myPdf.setDisplayMode(Display.FULL_WIDTH);
    myPdf.addPage();
    myPdf.textStyle(new RGBColor(0),1);
    Alert.show(String(grid));
    myPdf.addGrid( grid,5, 5 );
    myPdf.save(Method.REMOTE,”http://localhost/phpmyadmin/FlexProjects/ejemplos/create.php”,Download.ATTACHMENT,”GeneratedPdf.pdf”);
    }
    Thank in advance…

    Posted 23 Apr 2009 at 1:34 am
  53. gkg wrote:

    Hi,

    I am using the grid component to print data grid.

    I have a few columns which have Renderers.

    One of the renderer puts images depending on the data value.

    But I could not find anything on the Grid to show those.

    Can somebody please tell me if it possible with AlivePdf.

    Thanks

    Posted 07 May 2009 at 5:59 pm
  54. Rodislav wrote:

    Hi,

    my post is about problems on linux –
    try writeObject() method instead of writeBytes(), first test worked for me.. i think it will work

    Posted 10 May 2009 at 4:09 pm
  55. Farook wrote:

    I am using the AlivePDF in my Flex Application.
    When the number of columns is more (eg : above 10) the pdf generated is not opening. It throws error “Cannot open document(109)”.
    Is there any restriction on the number columns that are being exported?
    If there is a way to handle this .. please share the sample code.

    Thanks in advance

    Posted 15 May 2009 at 4:02 pm
  56. Rodrigo Portillo wrote:

    Should you publicate an example source-code with addGrid ??

    Posted 08 Jun 2009 at 3:04 pm
  57. vasanth wrote:

    Can anybody give the working sample of grid export.

    Posted 02 Jul 2009 at 10:33 am
  58. vasanth wrote:

    can anybody give a working grid export sample

    Posted 02 Jul 2009 at 10:35 am
  59. Henry wrote:

    I’m newbie on Flex Development, if anyone has a complete example of working dynamic grid export example? thank you very much

    Posted 18 Jul 2009 at 4:02 pm
  60. Michael wrote:

    Hello
    i just want a little help
    i want to open or download a PDF file from my flash by button as in the above example.
    thanks.

    Posted 29 Jul 2009 at 7:45 am
  61. David Émond wrote:

    Hi, I try to add a grid in my pdf and I have a problem. See this message error :

    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at org.alivepdf.pdf::PDF/nbLines()[/Users/timbert/Documents/Flex Builder 3/AlivePDF/src/main/flex/org/alivepdf/pdf/PDF.as:3014]
    at org.alivepdf.pdf::PDF/getRect()[/Users/timbert/Documents/Flex Builder 3/AlivePDF/src/main/flex/org/alivepdf/pdf/PDF.as:2972]
    at org.alivepdf.pdf::PDF/addGrid()[/Users/timbert/Documents/Flex Builder 3/AlivePDF/src/main/flex/org/alivepdf/pdf/PDF.as:2923]
    at TableauPDF/CreatePDF()[C:\Documents and Settings\demond\My Documents\Flex Project\_Example_Flash10-3D\TableauPDF\src\TableauPDF.mxml:60]
    at TableauPDF/___TableauPDF_Button1_click()[C:\Documents and Settings\demond\My Documents\Flex Project\_Example_Flash10-3D\TableauPDF\src\TableauPDF.mxml:74]

    I use flex3 and alivePDF 1.4.9

    Please help me. Thanks

    Posted 04 Aug 2009 at 4:42 pm
  62. David Émond wrote:

    Sorry, the real message associated with alivePDF 1.4.9 is : (the lines problems are differents)

    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at org.alivepdf.pdf::PDF/nbLines()[/Users/timbert/Documents/Flex Builder 3/AlivePDF/src/main/flex/org/alivepdf/pdf/PDF.as:3079]
    at org.alivepdf.pdf::PDF/getRect()[/Users/timbert/Documents/Flex Builder 3/AlivePDF/src/main/flex/org/alivepdf/pdf/PDF.as:3037]
    at org.alivepdf.pdf::PDF/addGrid()[/Users/timbert/Documents/Flex Builder 3/AlivePDF/src/main/flex/org/alivepdf/pdf/PDF.as:2988]
    at TableauPDF/CreatePDF()[C:\Documents and Settings\demond\My Documents\Flex Project\_Example_Flash10-3D\TableauPDF\src\TableauPDF.mxml:83]
    at TableauPDF/___TableauPDF_Button1_click()[C:\Documents and Settings\demond\My Documents\Flex Project\_Example_Flash10-3D\TableauPDF\src\TableauPDF.mxml:103]

    Posted 04 Aug 2009 at 4:49 pm
  63. davidemond wrote:

    Hi all, I found my problem. You must set the textStyle and the Font before added the grid. Thanks at all.

    myPDF.textStyle( new RGBColor(0), 1 );
    myPDF.setFont ( FontFamily.ARIAL,Style.BOLD, 12 );

    Posted 04 Aug 2009 at 5:09 pm
  64. Marty wrote:

    I would REALLY love to see the Excel export feature! Do you know when it will be available?
    Thanks for your hard work on this!

    Posted 13 Aug 2009 at 11:10 pm
  65. Mallik wrote:

    Hey looks great. I love it. But seems like we need to create AlivePDF Grids with the dataprovider. I needed something similar to this but I have a canvas that srolls with static charts and grids and I want AlivePDF to readjust and print the whole canvas ignoring the scrollbar. Is it going to be possible to create a image of the whole canvas and allow AlivePDF to figure out how many pages it needs to fit the who big fat image of h: 1900 w: 600 ??

    Please post any suggestions

    Thanks

    -Mallik

    Posted 02 Sep 2009 at 3:47 pm
  66. Chach088 wrote:

    Hello
    i just want a little help
    i want to open or download a PDF file from my flash by button as in the above example.
    thanks.

    Posted 09 Sep 2009 at 6:27 am
  67. Chach088 wrote:

    please can bring the resource of Dynamic Grid example coming in 0.1.4.8

    Posted 09 Sep 2009 at 6:29 am
  68. Anthony wrote:

    this was too cool an excel file would be great!!! keep it up

    Posted 10 Sep 2009 at 6:52 am
  69. krunal panchal wrote:

    Hi All,

    ….
    myPDF.addPage();
    myPDF.textStyle( new RGBColor(0), 1 );
    myPDF.setFont ( FontFamily.ARIAL, Style.NORMAL, 12 );
    myPDF.addGrid(grd, 5, 5 );

    myPDF.save( Method.REMOTE, ?http://localhost/test/create.aspx?, ?drawing.pdf? );
    }

    I redirecting this to aspx page.
    It is working fine in IE7 but not working in IE8. Though i have used the frameset/frame in my aspx page.

    can anybody have idea on this?

    Thanks,
    Krunal Panchal

    Posted 06 Oct 2009 at 4:58 pm
  70. Wyssinet wrote:

    Anybody have an solution to convert
    the Pixel from flash to MM from alivepdf?

    Posted 13 Oct 2009 at 7:59 pm
  71. auzzieb53 wrote:

    I’ve been scouring the forum for a solution to the addImage question, basically one of my array items for my gridColum is actually a link to an image, what would be the most effective way of making that an show up as an actual image?

    Posted 15 Oct 2009 at 5:27 am
  72. chinmoy wrote:

    I have a similar problem , but in my case I have a VBox which has Flex charts . I use the addImageStream() method. The alivePdf doesn’t print the charts which are not visible due to the scroll bar. I need a solution as soon as possible, it’s urgent.

    Thanks in advance !!

    Posted 23 Oct 2009 at 7:21 pm
  73. Nathan wrote:

    How do I simply add an existing dataGrid to my pdf? using myPDF.addImage makes it blotchy and blown up. I need a clean dataGrid.

    Posted 25 Oct 2009 at 4:28 am
  74. Geoffrey McRae wrote:

    Here is a quick and dirty fix to the linux flashplayer bug.

    In PDF.as change the following two occurences…

    at around line 3510 from:

    compressedPages.writeMultiByte(page.content+”\n”, “windows-1252″ );

    to:

    for(var pos: int; pos < page.content.length; ++pos)
    compressedPages.writeByte(page.content.charCodeAt(pos));
    compressedPages.writeByte(10);

    at around line 3915 from:

    else
    buffer.writeMultiByte( content+"\n", "windows-1252" );

    to:

    else {
    var s: String = content;
    for(var pos: int; pos < s.length; ++pos)
    buffer.writeByte(s.charCodeAt(pos));
    buffer.writeByte(10);
    }

    Posted 30 Oct 2009 at 3:25 am
  75. Thibault Imbert wrote:

    Hi Geoffrey,

    Yes, I included such a patch yesterday in the latest trunk version :

    http://code.google.com/p/alivepdf/source/browse/trunk/AlivePDFBeta/src/org/alivepdf/pdf/PDF.as

    Thanks!

    Thibault

    Posted 30 Oct 2009 at 10:40 am
  76. al wrote:

    Hi

    May I kindly request the code(full) for the dynamic column demo as seen above, as I would like to study this further

    Thank you in advance

    Posted 11 Mar 2010 at 11:30 am
  77. firsttimeuser wrote:

    Hello,
    I copied your Grid sample code (above) to a test pgm and the Flex 4/Flash builder displays several compilation errors for the Grid constructor line. All have to do with Imlicit coercion of a value of type Array to an unrelated type org.alivepdf.colors.IColor. The docs don’t show the args you are passing in your sample code so please explain.
    Thanks

    Posted 17 May 2010 at 6:27 am
  78. Naveen wrote:

    hi,

    i want to export the data from the dataGrid to PDF, with custom cell colors can any one help me at this.

    Thanks in Advance.

    Posted 15 Jun 2010 at 7:14 am
  79. Ved Jha wrote:

    how you are saving the file into local.

    Can i try something like this:
    var f:FileReference = new FileReference();
    var bytes:ByteArray = this.pdf.save(Method.LOCAL);
    f.save(bytes, ?drawing.pdf?);

    but FileReference Obj.save?() is not there.

    ANy sujjestion will be very helpfull.

    Posted 24 Jun 2010 at 8:56 am
  80. Selcuk Artut wrote:

    Sorting issue : My simple solution

    I have created a new ArrayCollection, and initializing headers with my ordered indices a,b,c,d, …

    var cols:ArrayCollection = new ArrayCollection();

    for(var i:int = 0 ; i < PropertiesAC.length ; i++){
    var o:Object = {amoduleTypeName: PropertiesAC[i].moduleTypeName,
    bmoduleName: PropertiesAC[i].moduleName,
    cfunctionName: PropertiesAC[i].functionName,
    ddimensions: MainScene.cube[i].w +"x"+ MainScene.cube[i].h+"x"+ MainScene.cube[i].d+" cm",
    ematerialName: PropertiesAC[i].materialName,
    faccesoryName: PropertiesAC[i].accesoryName,
    gprice: " EURO"
    };
    cols.addItem(o);
    }

    and also manipulated GridColumn.as class as;

    public function get headerText():String
    {
    return _headerText.substring(1,_headerText.length);
    }
    to get rid of initial indice.

    I hope it helps someone.

    Posted 11 Sep 2010 at 12:47 am
  81. Atul wrote:

    Hi,

    I would like to export to PDF a hierarchical data.
    One of the example image is at http://i.msdn.microsoft.com/ms742521.DataBinding_HierarchicalDataTemplate%28en-us,VS.100%29.png

    How can I achieve this structure using AlivePDF? Thanks!

    Posted 09 Nov 2010 at 3:31 pm
  82. Gomer wrote:

    I agree! excel desired!

    Thank you very much for alive pdf…. it’s great and I’ve only seen a little bit of it! congrats

    Posted 05 Oct 2011 at 11:22 pm

Post a Comment

Your email is never published nor shared. Required fields are marked *