I am develping a program to create an rtf file.The rtf file will be having images in it that will form a border around the page.
Here is the code so far:
#include "rtflib.h"
#include "globals.h"
#include "errors.h"
void main()
{
// Set RTF document font and color table
char font_list[] = "Times New Roman;Arial;";
char color_list[] = "0;0;0;255;0;0;192;192;192;255;255;255";
// Open RTF file
rtf_open( "Sample2.rtf", font_list, color_list );
rtf_load_image("Picture.jpg", 50, 50);
rtf_load_image("Picture.jpg", 50, 50);
rtf_load_image("Picture.jpg", 50, 50);
rtf_load_image("Picture.jpg", 50, 50);
rtf_load_image("Picture.jpg", 50, 50);
rtf_load_image("Picture.jpg", 50, 50);
rtf_load_image("Picture.jpg", 50, 50);
rtf_load_image("Picture.jpg", 50, 50);
rtf_load_image("Picture.jpg", 50, 50);
rtf_load_image("Picture.jpg", 50, 50);
rtf_close();
}
However instead of forming a border, the images are at the center of the page one after the other.
Is there any way by which i can make them form a border? something like allignment?