Advertisement
idsystems

CPP_RAD_Ejercicio24

May 20th, 2012
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.56 KB | None | 0 0
  1. /* ej24_EscribirXLS
  2. Ejemplo para escribir archivos de Excel */
  3. #include <radc++.h>
  4.  
  5. Form form1("Microsoft Excel Escritura de archivo - RAD C++ Ejemplo");
  6.  
  7. rad_main()
  8.     XLS x; //create variable of class XLS
  9.     //Row and column must be ZERO based
  10.    
  11.     x.addCell(0,1,"name:");     x.addCell(1,1,"Ali Imran");
  12.     x.addCell(0,2,"email:");    x.addCell(1,2,"support@radcpp.com");
  13.     x.addCell(0,3,"age:");      x.addCell(1,3,"30");
  14.    
  15.     x.addCell(0,10,"RAD C++ XLS class test");
  16.    
  17.     x.writeFile("myfile.xls");
  18.  
  19.     form1.msgBox("File has been written");
  20.     Application.close();
  21. rad_end()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement