81
I would like to put a two-line text with the ItemCaption function, so I tried "<img>2</img>View <br> Single Page", but the result is that the <br> is ignored. Is it possible to have multiple-lines captions (different toolbar-height)

public void init()
{
	;

	super();

	exprint1.ToolBarFormat("-1,100,101,102,106,-1,103,-1,104,-1,105,1000[ww=1],(\"\"/\"\")");
	exprint1.ItemCaption(1000/*0x3e8 | exToolBarPrint*/,"Line1<br>Line2<br>Line3");
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
80
I would like to put a two-line text with the ItemCaption function, so I tried "<img>2</img>View <br> Single Page", but the result is that the <br> is ignored. Is it possible to have multiple-lines captions (same toolbar-height)

public void init()
{
	;

	super();

	exprint1.ToolBarFormat("-1,100,101,102,106,-1,103,-1,104,-1,105,1000[ww=1]");
	exprint1.ItemCaption(1000/*0x3e8 | exToolBarPrint*/,"<font ;7>Line1<br>Line2");
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
79
I use the ItemCaption property to customize the interface in Italian. All is ok, but I don't understand in the ItemCaptionEnum enum what I have to use to customize the 'Printer...' button in page setup (bottom left)

public void init()
{
	;

	super();

	exprint1.PrintExt(exprint1);
	exprint1.ItemCaption(12/*exSetupPrinter*/,"Stampante");
	exprint1.Preview();
}
78
What are the predefined keywords the Caption/ExtraCaption supports

public void init()
{
	str var_s;
	;

	super();

	exprint1.PrintExt(exprint1);
	exprint1.CaptionAlignment(0/*exLeft*/);
	var_s = "`<b>object</b>:` + object + `<br><b>opages</b>:` + opages+ `<br><b>opage</b>:` + opage+ `<br><b>pages</b>:` + pages+ `<br><b>pag";
	var_s = var_s + "e</b>:` + page";
	exprint1.Caption(var_s);
	exprint1.Preview();
}
77
Is it possible to display different captions for different pages (sample 2)

public void init()
{
	str var_s;
	;

	super();

	exprint1.PrintExt(exprint1);
	var_s = "`<font ;24>` + (page = pages ? `last` : ( ( page - 1 ) array(`first`,`second`,`third`,`forth`,`fifth`,`sixth`,`seventh`,`eighth`";
	var_s = var_s + ",`ninth`,`tenth`) ) )";
	exprint1.ExtraCaption("extra",COMVariant::createFromStr(var_s));
	exprint1.Preview();
}
76
Is it possible to display different captions for different pages (sample 1)

public void init()
{
	;

	super();

	exprint1.PrintExt(exprint1);
	exprint1.Caption("`<font ;24>` + (page mod 2 ? `odd` : `even`)");
	exprint1.Preview();
}
75
Is it possible to maximize the Print and Print Preview mainframe
public void init()
{
	;

	super();

	exprint1.PrintExt(exprint1);
	exprint1.PreviewState(2/*exPreviewStateMaximized*/);
	exprint1.Preview();
}
74
Can I preview the pages with no margins ( compact )

public void init()
{
	;

	super();

	exprint1.PrintExt(exprint1);
	exprint1.PreviewSettings(3/*exPreviewShowCompact*/,COMVariant::createFromBoolean(true));
	exprint1.PreviewSettings(0/*exPreviewShowPageNumbers*/,COMVariant::createFromBoolean(true));
	exprint1.PreviewSettings(1/*exPreviewPageNumberFormat*/,"<b><font ;14><out 000000><fgcolor=FFFFFF><%page%></fgcolor></out></font>");
	exprint1.Preview();
}
73
I have noticed that I can zoom the pages in the Print and Print-Preview, using the middle mouse buttons. How can I disable this
public void init()
{
	;

	super();

	exprint1.PrintExt(exprint1);
	exprint1.PreviewSettings(9/*exPreviewAllowMiddleZoom*/,COMVariant::createFromBoolean(false));
	exprint1.Preview();
}
72
Is it possible to display the page number with the same size on the Preview workspace

public void init()
{
	;

	super();

	exprint1.PrintExt(exprint1);
	exprint1.PreviewSettings(0/*exPreviewShowPageNumbers*/,COMVariant::createFromBoolean(true));
	exprint1.PreviewSettings(1/*exPreviewPageNumberFormat*/,"<b><font ;14><out 000000><fgcolor=FFFFFF><%page%></fgcolor></out></font>");
	exprint1.Preview();
}
71
How can I prevent zooming the page whe user clicks it
public void init()
{
	;

	super();

	exprint1.PrintExt(exprint1);
	exprint1.PreviewSettings(8/*exPreviewAllowToggleZoom*/,COMVariant::createFromBoolean(false));
	exprint1.Preview();
}
70
How can I select/unselect the pages to be printed when user right clicks the page in the preview
public void init()
{
	;

	super();

	exprint1.PrintExt(exprint1);
	exprint1.PreviewSettings(7/*exPreviewAllowUnprintPage*/,COMVariant::createFromBoolean(false));
	exprint1.Preview();
}
69
How can I prevent scrolling the pages by drag and drop
public void init()
{
	;

	super();

	exprint1.PrintExt(exprint1);
	exprint1.PreviewSettings(6/*exPreviewAllowDragScroll*/,COMVariant::createFromBoolean(false));
	exprint1.Preview();
}
68
How can I prevent scrolling the pages using the mouse wheel
public void init()
{
	;

	super();

	exprint1.PrintExt(exprint1);
	exprint1.PreviewSettings(5/*exPreviewAllowWheelScroll*/,COMVariant::createFromBoolean(false));
	exprint1.Preview();
}
67
How can I change the preview's background color

public void init()
{
	;

	super();

	exprint1.PrintExt(exprint1);
	exprint1.PreviewSettings(4/*exPreviewBackColor*/,COMVariant::createFromInt(16777215));
	exprint1.Preview();
}
66
How do I change the message "The number of pages being loaded is: 100. Do you want to continue

public void init()
{
	;

	super();

	exprint1.UILimitPagesCountMessage("The number of pages being loaded is: <%count%>. Do you want to continue?");
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
65
I'm asked every time after 100 pages loaded, to continue. Is there any way to change/prevent that (sample 2)
public void init()
{
	;

	super();

	exprint1.UILimitPagesCountMessage("");
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
64
I'm asked every time after 100 pages loaded, to continue. Is there any way to change/prevent that (sample 1)
public void init()
{
	;

	super();

	exprint1.UILimitPagesCount(-1);
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
63
Is it possible to export/copy the pages to a file (*.emf or any other extension determines the control to save the pages in EMF format)
public void init()
{
	;

	super();

	exprint1.PrintExt(exprint1);
	exprint1.CopyTo("C:\\Temp\\Page%i.emf");
}
62
Is it possible to export/copy the pages to a file (*.pdf, exports the pages to PDF format. The %i flag has no effect if using PDF format, as all pages are saved to a single document)
public void init()
{
	;

	super();

	exprint1.PrintExt(exprint1);
	exprint1.CopyTo("C:\\Temp\\Page.pdf");
}
61
Is it possible to export/copy the pages to a file (*.png, exports the pages to PNG format)
public void init()
{
	;

	super();

	exprint1.PrintExt(exprint1);
	exprint1.CopyTo("C:\\Temp\\Page%i.png");
}
60
Is it possible to export/copy the pages to a file (*.tif *.tiff, exports the pages to TIFF format)
public void init()
{
	;

	super();

	exprint1.PrintExt(exprint1);
	exprint1.CopyTo("C:\\Temp\\Page%i.tiff");
}
59
Is it possible to export/copy the pages to a file (*.gif, , exports the pages to GIF format)
public void init()
{
	;

	super();

	exprint1.PrintExt(exprint1);
	exprint1.CopyTo("C:\\Temp\\Page%i.gif");
}
58
Is it possible to export/copy the pages to a file (*.jpg *.jpe *.jpeg *.jfif, exports the pages to JPEG format)
public void init()
{
	;

	super();

	exprint1.PrintExt(exprint1);
	exprint1.CopyTo("C:\\Temp\\Page%i.jpg");
}
57
Is it possible to export/copy the pages to a file (*.bmp *.dib *.rle, exports the pages to BMP format)
public void init()
{
	;

	super();

	exprint1.PrintExt(exprint1);
	exprint1.CopyTo("C:\\Temp\\Page%i.bmp");
}
56
The Preview is automatically closed after I create the object. Is it possible to close it, when user closes the Preview
public void init()
{
	;

	super();

	exprint1.AutoRelease(false);
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
55
How do I change the paper's frame

public void init()
{
	;

	super();

	exprint1.PageFrameStyle(1/*exPageFrameSolid*/);
	exprint1.PageFrameColor(WinApi::RGB2int(255,0,0));
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
54
How cam I prevent resizing the paper's margins

public void init()
{
	;

	super();

	exprint1.ShowMargins(false);
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
53
Is it possible to place the Print and Print Preview window at the bottom of the Z order
public void init()
{
	;

	super();

	exprint1.Foreground(1);
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
52
Is it possible to place the Print and Print Preview window at the top (sample 2)
public void init()
{
	;

	super();

	exprint1.Foreground(-2);
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
51
Is it possible to place the Print and Print Preview window at the top of the Z-order (sample 1)
public void init()
{
	;

	super();

	exprint1.Foreground(-1);
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
50
I am using the eXPrint to print my object, but when I print the document a watermark logo is displayed. Is there any way to prevent that
public void init()
{
	;

	super();

	exprint1.RuntimeKey("XXX");
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
49
I've noticed that the page starts at 1. Can I change that

public void init()
{
	;

	super();

	exprint1.StartPageNumber(10);
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
48
Is it possible to display the page count right after the page number

public void init()
{
	;

	super();

	exprint1.PageNumberFormat("<%page%>/<%count%>");
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
47
How do I encode/decode plain text

public void init()
{
	str sDecode,sEncode;
	;

	super();

	sEncode = exprint1.Encode64Text("AAAAAAAAAABBBBBBBBBBCCCCCCCCCCDDDDDDDDDD");
	print( "Encoded:" );
	print( sEncode );
	sDecode = exprint1.Decode64Text(sEncode);
	print( "Decoded:" );
	print( sDecode );
}
46
How do I programmatically encode an icon file to BASE64 string (Images)

public void init()
{
	str sEncodeIcon;
	;

	super();

	sEncodeIcon = exprint1.Encode64Icons("c:\\exontrol\\images\\setup.ico");
	exprint1.Images(sEncodeIcon);
	exprint1.Caption("This is an icon <img>7</img> loaded from BASE64 encoded string");
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
45
How do I programmatically encode a picture file to BASE64 string (HTMLPicture)

public void init()
{
	str sEncodePicture;
	;

	super();

	sEncodePicture = exprint1.Encode64("c:\\exontrol\\images\\zipdisk.gif");
	exprint1.HTMLPicture("pic1",sEncodePicture);
	exprint1.Caption("This is a picture <img>pic1:96</img> loaded from BASE64 encoded string");
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
44
How do I find the number of pages
// Click event - Occurs when the user clicks a button in the toolbar.
void onEvent_Click(int   _ID,int   _SelectedID)
{
	;
	print( "Pages:" );
	print( exprint1.PagesCount() );
}

public void init()
{
	;

	super();

	exprint1.ToolBarFormat("1001");
	exprint1.ItemCaption(1001/*0x3e9 | exToolBarClose*/,"Pages");
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
43
How do I specify the range of pages to be printed

public void init()
{
	;

	super();

	exprint1.PrintExt(exprint1);
	exprint1.PageRange("1,4");
	exprint1.Preview();
}
42
My control uses transparency, and so the print and print-preview does not show as on the screen. What can I do
public void init()
{
	;

	super();

	exprint1.PrintExt(exprint1);
	exprint1.AsScreen(true);
	exprint1.Preview();
}
41
How do I get a list of available printers

public void init()
{
	;

	super();

	print( exprint1.Printers() );
}
40
Is it possible to assign an extra title or caption to the document

public void init()
{
	;

	super();

	exprint1.ExtraCaption("Left","Left-Title",COMVariant::createFromInt(0),COMVariant::createFromInt(0));
	exprint1.ExtraCaption("Right","Right-Title",COMVariant::createFromInt(0),COMVariant::createFromInt(2));
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
39
Can I change/customize the toolbar

// Click event - Occurs when the user clicks a button in the toolbar.
void onEvent_Click(int   _ID,int   _SelectedID)
{
	;
	print( "Click" );
	print( _ID );
	print( _SelectedID );
}

// Refresh event - Notifies your application when the pages are refreshed.
void onEvent_Refresh()
{
	;
	exprint1.ItemCaption(-201/*0xffffff37 | exPage*/,"Printer: <fgcolor=808080>Xerox</fgcolor>");
	exprint1.ItemToolTip(-201/*0xffffff37 | exPage*/,"Xerox");
	exprint1.ItemCaption(200/*0xc8 | exPrinting*/,"<img>7</img> Orientation: Landscape #1");
	exprint1.ItemToolTip(200/*0xc8 | exPrinting*/,"Page Orientation");
	exprint1.ItemCaption(201/*0xc9 | exCancel*/,"<img>8</img> Size: Letter\\r\\nLetter #1\\r\\nA4#9\\r\\nA5#11\\r\\nA6#70");
	exprint1.ItemToolTip(201/*0xc9 | exCancel*/,"Paper Size");
	exprint1.ItemCaption(202/*0xca | exPrintPreview*/,"<img>9</img> <fgcolor 0000FF>Scale <sha ;;0>1 x 1");
	exprint1.ItemToolTip(202/*0xca | exPrintPreview*/,"Adjust To and Fit-To");
}

public void init()
{
	str var_s;
	;

	super();

	var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql";
	var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1BGWBQwuwiNFmHRoqxSNE+NRolyCNEeTRohyyND2ZRocziNDOfRoX0SNCmlRoS1CNC";
	var_s = var_s + "GrRoO1yGoYzjWyv9nGz83D/3D83W53e93m/3774j/4j743F47/fXN5nO38ajsoEez60Z2gA7IzXKDIb/7vf6/a8fbjXVjSz9T/rnqWfss2333z4P04H34W55r65/8fL/";
	var_s = var_s + "n+/58vu6SNj2PY8mAV5YFaf5XFcVh/leWJYn+WBaFsf5bj8HJ/nAWI4w9EENQ5C0MQlCkHQhCRXwbA8Eo29z4K1GTbPy+scPw+0buS5D9wDAB8SFAiMumABYFgV6KSWi";
	var_s = var_s + "hZjqFR/nIXxFH+c5aDRKsryjKZ/ydKEmSZJBXRmAEapeHk0H+GM1n+FE3H+D84n+0QLn+B87n+BM9H+Ac+zIlkzLK+Ucx5Qsdv050BH+e1GUXRroyKjZXlmWswH7JZoF";
	var_s = var_s + "WP0LDsGB/m0Ugq0/UNOU8Z9NTBJkJwrGL1vbVz40NQlDxy5dFUYex/nnXZ/nlX0iI4jZYFuXkujuFp/l+R4p1TJZYjuF5/2faNmogZxVD7LsnwsXBgTIWtwT+lYlXIf4";
	var_s = var_s + "gXOf4b3Uf4W3af4SXgf4N3mf4J3sf4GXzcSVXBSsbVpHVZt45chHwf564RXtfnfhh/nbh9gOmGZbj+HkPFdLFnhjJbeIfjp/mYVA85BkTdIhj6KFhTp/m+VozxJDrZlv";
	var_s = var_s + "mcyF8PwlGopmbZwjeZlvfawUHHuA6Jgkh4QeuFHkf52aaf51agf5zaniJcO8f5wlyQOnlsNWuZeWI7BdkBTZGfD+H+e580vtVL7Oh5mbLaWxaeWuXnVrusFxrerCCf5f";
	var_s = var_s + "FeUx/l0PolGsX5BinnKNCxxp/idyB/iLyZ/h3yx/sCGU2zeEHOn+DHQTJxHFcJw3AcFf7eUU3579bIEB0VgtHVzXZ56Zp1ZaqQYhakY5NH+bxUi1hxnE6f5ZboZRSDtX";
	var_s = var_s + "R7YMeNf+hpZ5+cf/leZ5GxnaZpOeB4Xekyf5cEFvxtlGOh/nSXBH6YXJIn+cZSjloCefj+Z2fd9P10+Uo7/oV5oTsnWj3bS65RUA4CwEHpAsf48IHNPaib9XA/4Fj0H+";
	var_s = var_s + "FWDAkSRM9RKOoaKYxZLQV0ciBo9GDDvegP8d48oLQrhbCkeEJoRkPey08aCDRbh9BsmQYItBVLJESFwaowRHBmcWRkMkSR/hciYP8KcTx/rkCUP8IMVV0rrMI2MyAJYe";
	var_s = var_s + "RFGoL+IMQ4fP/K6DZAQ/WkNKH+PGNjs2DsJjTGweMKmGjpjsfdqY5h/hUj5BojJJwAACWELYXY/xaB3BYP8XoiwnsOHirlpo72HDvgsMgUYdR/yWkwO2Sjt5JDthjJmS";
	var_s = var_s + "8hg6gpWkLgXyZBeSrTIMUSQbYjlJldLAjcq1ilnBnHYdI8Izu5l8fZ2UfAqR+JSRmQRK1JqVIoOUcg4X0jqHY08dg8GmDzN4LIPDG5sMbHZNaaU1B0DpHXM8dqS1Vyql";
	var_s = var_s + "YTAN86x/honcP8ME8R/uNCwP8J893JOUTQxYGc/YyAAltP8rYHDxnToMgVSNCVg0KoPH8jUxyXCuRakscI4hxPwHOOof4xRRPohCp4dguGvUha9R+jYoX0DjHOOlrFFk";
	var_s = var_s + "l0SQaRsXdM6BFPpnIUuZJSM06ABTynxJKgU7qCTYV9E1qkPFoHZKA6RmuCGyKMKg/6n1RqY4KpKX6j1FpiRqgJMA7VfH+HGsQ/w11lH/EkMkS4mxPWYEutw/whVxn/V0";
	var_s = var_s + "2pS0Dh6SQgxFSDZzixlQhqHTUhnINHNYOwEO6/SpnOg9BqSEXB7rxLWdJW66V1LC+MH74hBWZssWIiwPiV2gI8SCDdQqeVDJuRCzpSB/B/IeRsQAAQ/j+thbK2hGrYhw";
	var_s = var_s + "AdbW2dtbdEqC+PolQEAEEqAePC2txLa3BJJbm3ZGQB2xt6AAcAD7nEZIfdK25D7W2vAAQEA=";
	exprint1.Images(COMVariant::createFromStr(var_s));
	exprint1.ToolBarFormat("-1,100,-1,101,102,106,-1,(200/201,-1,202),|,(-1,(-201/(103,-1,104,-1,105))):216");
	exprint1.Options("FitToPage = 1x1");
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
38
Can I add or display icons or images in the document's title

public void init()
{
	str var_s;
	;

	super();

	var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql";
	var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0";
	var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN";
	var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=";
	exprint1.Images(COMVariant::createFromStr(var_s));
	exprint1.HTMLPicture("pic1","c:\\exontrol\\images\\zipdisk.gif");
	exprint1.Caption("<img>7</img> This is the new <img>pic1</img> document's title");
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
37
How can I change the icons on the captions / tooltips being shown on the toolbar of the Print and Print-Preview

public void init()
{
	str var_s;
	;

	super();

	exprint1.ReplaceIcon(COMVariant::createFromInt(0),COMVariant::createFromInt(-1));
	var_s = "gBJJgBAIGAAHAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql";
	var_s = var_s + "Vq1XrFZrVbqkQib/rlfsVhslllVelloqdqs8Ps1vuFtsFdt1putxvF0ucrtlRr1/u95wVrt2AvdWvuDxVVxNbxsZx+LyVCw1iyNQyuTzWbzmdz2f0Gh0Wj0ml02n1Gp1";
	var_s = var_s + "Wr1mt12v2Gx2Wz2m1neXwlgyu4p2Zsu8v2BrPAvUt4lP4+94Vc5PD5dL3eF6WHxnPsnNzHWpuR7HQ7Vm7vK6nZ6nhou+rXc7/e8ca81E9HO9vp6dh+PM9e2/X7/n9/z/";
	var_s = var_s + "sWiwfJXAaPJAkSSAAkqUQWnC/nAf5wI2f54QpCZ8H+fCNngOkOI2YAHRAjZAAfEkRxKB6UIQhCNxXFSDxfFiNRcjUSRNGsUQ+D5gA/DY/ngP8JwhIcIwpI0KwrDElQzD";
	var_s = var_s + "kmw6OkQSjEIHRtFEqyvFMXS1GEty7Lkvy1LExRRHkyx2D8gTTH4/oCA=";
	exprint1.Images(COMVariant::createFromStr(var_s));
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
36
Is it possible to change/customize the captions / tooltips being shown on the toolbar of the Print and Print-Preview

public void init()
{
	;

	super();

	exprint1.ItemCaption(2/*exClose*/,"<img>6</img> <fgcolor FF0000><b>Inchide");
	exprint1.ItemToolTip(2/*exClose*/,"Inchide preview");
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
35
Is it possible somehow to get/set all settings of the printer

public void init()
{
	;

	super();

	print( exprint1.Settings(256/*exAllFields*/) );
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
34
How do I get the current's page size as described in the Paper Size field

public void init()
{
	;

	super();

	print( exprint1.Settings(11/*exFormName*/) );
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
33
How can I get the size of the page, in pixels

public void init()
{
	;

	super();

	exprint1.Settings(0/*exPaperSize*/,COMVariant::createFromInt(9));
	print( "Width (pixels): " );
	print( exprint1.ClientWidth() );
	print( "Height (pixels): " );
	print( exprint1.ClientHeight() );
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
32
How can I get the size of the page, in dots

public void init()
{
	;

	super();

	exprint1.Settings(0/*exPaperSize*/,COMVariant::createFromInt(9));
	print( "Width (dots): " );
	print( exprint1.Settings(12/*exPaperWidth*/) );
	print( "Height (dots): " );
	print( exprint1.Settings(13/*exPaperHeight*/) );
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
31
How can I display inches instead of millimeters

public void init()
{
	;

	super();

	exprint1.Settings(10/*exDisplayInch*/,COMVariant::createFromInt(0));
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
30
How can I display millimeters instead of inches

public void init()
{
	;

	super();

	exprint1.Settings(10/*exDisplayInch*/,COMVariant::createFromInt(1));
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
29
How can I change the paper's bottom margin

public void init()
{
	;

	super();

	exprint1.Settings(9/*exBottomMargin*/,COMVariant::createFromInt(0));
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
28
How can I change the paper's right margin

public void init()
{
	;

	super();

	exprint1.Settings(8/*exRightMargin*/,COMVariant::createFromInt(0));
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
27
How can I change the paper's top margin

public void init()
{
	;

	super();

	exprint1.Settings(7/*exTopMargin*/,COMVariant::createFromInt(0));
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
26
How can I change the paper's left margin

public void init()
{
	;

	super();

	exprint1.Settings(6/*exLeftMargin*/,COMVariant::createFromInt(0));
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
25
How do I specify the print quality
public void init()
{
	;

	super();

	print( exprint1.Settings(5/*exPrintQuality*/) );
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
24
How do I specify the number of copies
public void init()
{
	;

	super();

	print( exprint1.Settings(4/*exPrinterCopies*/) );
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
23
How do I get the current printer's name

public void init()
{
	;

	super();

	print( exprint1.Settings(3/*exPrinterName*/) );
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
22
How do I change the page's orientation to portrait (method 2)

public void init()
{
	;

	super();

	exprint1.Settings(2/*exPageOrientation*/,COMVariant::createFromInt(1));
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
21
How do I change the page's orientation to landscape (method 2)

public void init()
{
	;

	super();

	exprint1.Settings(2/*exPageOrientation*/,COMVariant::createFromInt(2));
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
20
How do I change the paper's source
public void init()
{
	;

	super();

	exprint1.Settings(1/*exPaperSource*/,COMVariant::createFromInt(7));
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
19
How can I change the paper's size to A4

public void init()
{
	;

	super();

	exprint1.Settings(0/*exPaperSize*/,COMVariant::createFromInt(9));
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
18
How do I change the page's orientation to portrait (method 1)

public void init()
{
	;

	super();

	exprint1.PageOrientation(1/*exPortrait*/);
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
17
How do I change the page's orientation to landscape (method 1)

public void init()
{
	;

	super();

	exprint1.PageOrientation(2/*exLandscape*/);
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
16
Is there any Fit-To option for print and print preview

public void init()
{
	;

	super();

	exprint1.Options("FitToPage = 2 x 2");
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
15
Is there any Fit-To-Page / Fit-To Tall option for print and print preview

public void init()
{
	;

	super();

	exprint1.Options("FitToPage = x 2");
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
14
Is there any Fit-To-Page / Fit-To Wide option for print and print preview

public void init()
{
	;

	super();

	exprint1.Options("FitToPage = 2 x");
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
13
Is there any Fit-To-Page / Adjust-To option for print and print preview

public void init()
{
	;

	super();

	exprint1.Options("FitToPage = 25%");
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
12
Is there any Fit-To-Page option for print and print preview

public void init()
{
	;

	super();

	exprint1.Options("FitToPage = On");
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
11
How can I display the document's title to a different place

public void init()
{
	;

	super();

	exprint1.CaptionAlignment(0/*exLeft*/);
	exprint1.CaptionPosition(1/*exFooter*/);
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
10
How can I display the page numbers to a different place

public void init()
{
	;

	super();

	exprint1.PageNumbersPosition(0/*exHeader*/);
	exprint1.PageNumbersAlignment(2/*exRight*/);
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
9
How do I hide the page numbers

public void init()
{
	;

	super();

	exprint1.ShowPageNumbers(false);
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
8
Is it possible to display the page's index and count in the document's title

public void init()
{
	;

	super();

	exprint1.Caption("<font ;16>This is the page number <%page%> from <%count%> pages.");
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
7
How do I change the document's title

public void init()
{
	;

	super();

	exprint1.Caption("<font ;16>This is your new <b>title</b>.");
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
6
How do I programmatically print the control, not using the Print-Preview mainframe

public void init()
{
	;

	super();

	exprint1.PrintExt(exprint1);
	exprint1.DoPrint(COMVariant::createFromBoolean(true));
}
5
How can I print and print-preview the control (method 2)

public void init()
{
	;

	super();

	exprint1.PrintExts(COM::createFromVariant(exprint1));
	exprint1.Preview();
}
4
How do I get the version of the eXPrint control
public void init()
{
	;

	super();

	print( exprint1.Version() );
}
3
How do I change the font to display the page's caption (method 2)

public void init()
{
	;

	super();

	exprint1.Caption("<font ;24>Untitled Document");
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
2
How do I change the font to display the page's caption (method 1)

public void init()
{
	;

	super();

	exprint1.Font().Size(24);
	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}
1
How can I print and print-preview the control (method 1)

public void init()
{
	;

	super();

	exprint1.PrintExt(exprint1);
	exprint1.Preview();
}