Generates XML files for DeltaPro from Amazon invoices
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
956 B

7 years ago
#include <stdio.h>
#include <conio.h>
#include "libxl.h"
int main()
{
BookHandle book = xlCreateBook();
if(book)
{
FontHandle font;
FormatHandle format;
SheetHandle sheet;
font = xlBookAddFont(book, 0);
xlFontSetName(font, "Impact");
xlFontSetSize(font, 36);
format = xlBookAddFormat(book, NULL);
xlFormatSetAlignH(format, ALIGNH_CENTER);
xlFormatSetBorder(format, BORDERSTYLE_MEDIUMDASHDOTDOT);
xlFormatSetBorderColor(format, COLOR_RED);
xlFormatSetFont(format, font);
sheet = xlBookAddSheet(book, "Custom", 0);
if(sheet)
{
xlSheetWriteStr(sheet, 2, 1, "Format", format);
xlSheetSetCol(sheet, 1, 1, 25, 0, 0);
}
if(xlBookSave(book, "format.xls")) printf("\nFile format.xls has been created.\n");
}
printf("\nPress any key to exit...");
_getch();
return 0;
}