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)

with AxPrint1 do
begin
	ToolBarFormat := '-1,100,101,102,106,-1,103,-1,104,-1,105,1000[ww=1],(""/"")';
	set_ItemCaption(EXPRINTLib.ItemCaptionEnum($380 Or Integer(EXPRINTLib.ItemCaptionEnum.exToolBarPrint)),'Line1<br>Line2<br>Line3');
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
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)

with AxPrint1 do
begin
	ToolBarFormat := '-1,100,101,102,106,-1,103,-1,104,-1,105,1000[ww=1]';
	set_ItemCaption(EXPRINTLib.ItemCaptionEnum($380 Or Integer(EXPRINTLib.ItemCaptionEnum.exToolBarPrint)),'<font ;7>Line1<br>Line2');
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
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)

with AxPrint1 do
begin
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	set_ItemCaption(EXPRINTLib.ItemCaptionEnum.exSetupPrinter,'Stampante');
	Preview();
end
78
What are the predefined keywords the Caption/ExtraCaption supports

with AxPrint1 do
begin
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	CaptionAlignment := EXPRINTLib.AlignmentEnum.exLeft;
	Caption := '`<b>object</b>:` + object + `<br><b>opages</b>:` + opages+ `<br><b>opage</b>:` + opage+ `<br><b>pages</b>:` + pages+ `<br><b>pag' + 
	'e</b>:` + page';
	Preview();
end
77
Is it possible to display different captions for different pages (sample 2)

with AxPrint1 do
begin
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	ExtraCaption('extra','`<font ;24>` + (page = pages ? `last` : ( ( page - 1 ) array(`first`,`second`,`third`,`forth`,`fifth`,`sixth`,`seventh`,`eighth`' + 
	',`ninth`,`tenth`) ) )',Nil,Nil);
	Preview();
end
76
Is it possible to display different captions for different pages (sample 1)

with AxPrint1 do
begin
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Caption := '`<font ;24>` + (page mod 2 ? `odd` : `even`)';
	Preview();
end
75
Is it possible to maximize the Print and Print Preview mainframe
with AxPrint1 do
begin
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	PreviewState := EXPRINTLib.PreviewStateEnum.exPreviewStateMaximized;
	Preview();
end
74
Can I preview the pages with no margins ( compact )

with AxPrint1 do
begin
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	set_PreviewSettings(EXPRINTLib.PreviewFieldsEnum.exPreviewShowCompact,TObject(True));
	set_PreviewSettings(EXPRINTLib.PreviewFieldsEnum.exPreviewShowPageNumbers,TObject(True));
	set_PreviewSettings(EXPRINTLib.PreviewFieldsEnum.exPreviewPageNumberFormat,'<b><font ;14><out 000000><fgcolor=FFFFFF><%page%></fgcolor></out></font>');
	Preview();
end
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
with AxPrint1 do
begin
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	set_PreviewSettings(EXPRINTLib.PreviewFieldsEnum.exPreviewAllowMiddleZoom,TObject(False));
	Preview();
end
72
Is it possible to display the page number with the same size on the Preview workspace

with AxPrint1 do
begin
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	set_PreviewSettings(EXPRINTLib.PreviewFieldsEnum.exPreviewShowPageNumbers,TObject(True));
	set_PreviewSettings(EXPRINTLib.PreviewFieldsEnum.exPreviewPageNumberFormat,'<b><font ;14><out 000000><fgcolor=FFFFFF><%page%></fgcolor></out></font>');
	Preview();
end
71
How can I prevent zooming the page whe user clicks it
with AxPrint1 do
begin
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	set_PreviewSettings(EXPRINTLib.PreviewFieldsEnum.exPreviewAllowToggleZoom,TObject(False));
	Preview();
end
70
How can I select/unselect the pages to be printed when user right clicks the page in the preview
with AxPrint1 do
begin
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	set_PreviewSettings(EXPRINTLib.PreviewFieldsEnum.exPreviewAllowUnprintPage,TObject(False));
	Preview();
end
69
How can I prevent scrolling the pages by drag and drop
with AxPrint1 do
begin
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	set_PreviewSettings(EXPRINTLib.PreviewFieldsEnum.exPreviewAllowDragScroll,TObject(False));
	Preview();
end
68
How can I prevent scrolling the pages using the mouse wheel
with AxPrint1 do
begin
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	set_PreviewSettings(EXPRINTLib.PreviewFieldsEnum.exPreviewAllowWheelScroll,TObject(False));
	Preview();
end
67
How can I change the preview's background color

with AxPrint1 do
begin
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	set_PreviewSettings(EXPRINTLib.PreviewFieldsEnum.exPreviewBackColor,TObject(16777215));
	Preview();
end
66
How do I change the message "The number of pages being loaded is: 100. Do you want to continue

with AxPrint1 do
begin
	UILimitPagesCountMessage := 'The number of pages being loaded is: <%count%>. Do you want to continue?';
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
65
I'm asked every time after 100 pages loaded, to continue. Is there any way to change/prevent that (sample 2)
with AxPrint1 do
begin
	UILimitPagesCountMessage := '';
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
64
I'm asked every time after 100 pages loaded, to continue. Is there any way to change/prevent that (sample 1)
with AxPrint1 do
begin
	UILimitPagesCount := -1;
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
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)
with AxPrint1 do
begin
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	CopyTo('C:\Temp\Page%i.emf');
end
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)
with AxPrint1 do
begin
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	CopyTo('C:\Temp\Page.pdf');
end
61
Is it possible to export/copy the pages to a file (*.png, exports the pages to PNG format)
with AxPrint1 do
begin
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	CopyTo('C:\Temp\Page%i.png');
end
60
Is it possible to export/copy the pages to a file (*.tif *.tiff, exports the pages to TIFF format)
with AxPrint1 do
begin
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	CopyTo('C:\Temp\Page%i.tiff');
end
59
Is it possible to export/copy the pages to a file (*.gif, , exports the pages to GIF format)
with AxPrint1 do
begin
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	CopyTo('C:\Temp\Page%i.gif');
end
58
Is it possible to export/copy the pages to a file (*.jpg *.jpe *.jpeg *.jfif, exports the pages to JPEG format)
with AxPrint1 do
begin
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	CopyTo('C:\Temp\Page%i.jpg');
end
57
Is it possible to export/copy the pages to a file (*.bmp *.dib *.rle, exports the pages to BMP format)
with AxPrint1 do
begin
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	CopyTo('C:\Temp\Page%i.bmp');
end
56
The Preview is automatically closed after I create the object. Is it possible to close it, when user closes the Preview
with AxPrint1 do
begin
	AutoRelease := False;
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
55
How do I change the paper's frame

with AxPrint1 do
begin
	PageFrameStyle := EXPRINTLib.PageFrameStyleEnum.exPageFrameSolid;
	PageFrameColor := Color.FromArgb(255,0,0);
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
54
How cam I prevent resizing the paper's margins

with AxPrint1 do
begin
	ShowMargins := False;
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
53
Is it possible to place the Print and Print Preview window at the bottom of the Z order
with AxPrint1 do
begin
	Foreground := 1;
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
52
Is it possible to place the Print and Print Preview window at the top (sample 2)
with AxPrint1 do
begin
	Foreground := -2;
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
51
Is it possible to place the Print and Print Preview window at the top of the Z-order (sample 1)
with AxPrint1 do
begin
	Foreground := -1;
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
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
with AxPrint1 do
begin
	RuntimeKey := 'XXX';
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
49
I've noticed that the page starts at 1. Can I change that

with AxPrint1 do
begin
	StartPageNumber := 10;
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
48
Is it possible to display the page count right after the page number

with AxPrint1 do
begin
	PageNumberFormat := '<%page%>/<%count%>';
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
47
How do I encode/decode plain text

with AxPrint1 do
begin
	sEncode := get_Encode64Text('AAAAAAAAAABBBBBBBBBBCCCCCCCCCCDDDDDDDDDD');
	OutputDebugString( 'Encoded:' );
	OutputDebugString( sEncode );
	sDecode := get_Decode64Text(sEncode);
	OutputDebugString( 'Decoded:' );
	OutputDebugString( sDecode );
end
46
How do I programmatically encode an icon file to BASE64 string (Images)

with AxPrint1 do
begin
	sEncodeIcon := get_Encode64Icons('c:\exontrol\images\setup.ico');
	Images(TObject(sEncodeIcon));
	Caption := 'This is an icon <img>7</img> loaded from BASE64 encoded string';
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
45
How do I programmatically encode a picture file to BASE64 string (HTMLPicture)

with AxPrint1 do
begin
	sEncodePicture := get_Encode64('c:\exontrol\images\zipdisk.gif');
	set_HTMLPicture('pic1',TObject(sEncodePicture));
	Caption := 'This is a picture <img>pic1:96</img> loaded from BASE64 encoded string';
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
44
How do I find the number of pages
// Click event - Occurs when the user clicks a button in the toolbar.
procedure TWinForm1.AxPrint1_ClickEvent(sender: System.Object; e: AxEXPRINTLib._IExPrintEvents_ClickEvent);
begin
	with AxPrint1 do
	begin
		OutputDebugString( 'Pages:' );
		OutputDebugString( PagesCount );
	end
end;

with AxPrint1 do
begin
	ToolBarFormat := '1001';
	set_ItemCaption(EXPRINTLib.ItemCaptionEnum($380 Or Integer(EXPRINTLib.ItemCaptionEnum.exToolBarClose)),'Pages');
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
43
How do I specify the range of pages to be printed

with AxPrint1 do
begin
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	PageRange := '1,4';
	Preview();
end
42
My control uses transparency, and so the print and print-preview does not show as on the screen. What can I do
with AxPrint1 do
begin
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	AsScreen := True;
	Preview();
end
41
How do I get a list of available printers

with AxPrint1 do
begin
	OutputDebugString( Printers );
end
40
Is it possible to assign an extra title or caption to the document

with AxPrint1 do
begin
	ExtraCaption('Left','Left-Title',TObject(0),TObject(0));
	ExtraCaption('Right','Right-Title',TObject(0),TObject(2));
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
39
Can I change/customize the toolbar

// Click event - Occurs when the user clicks a button in the toolbar.
procedure TWinForm1.AxPrint1_ClickEvent(sender: System.Object; e: AxEXPRINTLib._IExPrintEvents_ClickEvent);
begin
	with AxPrint1 do
	begin
		OutputDebugString( 'Click' );
		OutputDebugString( e.iD );
		OutputDebugString( e.selectedID );
	end
end;

// Refresh event - Notifies your application when the pages are refreshed.
procedure TWinForm1.AxPrint1_Refresh(sender: System.Object; e: System.EventArgs);
begin
	with AxPrint1 do
	begin
		set_ItemCaption(EXPRINTLib.ItemCaptionEnum($ffffff30 Or Integer(EXPRINTLib.ItemCaptionEnum.exPage)),'Printer: <fgcolor=808080>Xerox</fgcolor>');
		set_ItemToolTip(EXPRINTLib.ItemCaptionEnum($ffffff30 Or Integer(EXPRINTLib.ItemCaptionEnum.exPage)),'Xerox');
		set_ItemCaption(EXPRINTLib.ItemCaptionEnum($c0 Or Integer(EXPRINTLib.ItemCaptionEnum.exPrinting)),'<img>7</img> Orientation: Landscape #1');
		set_ItemToolTip(EXPRINTLib.ItemCaptionEnum($c0 Or Integer(EXPRINTLib.ItemCaptionEnum.exPrinting)),'Page Orientation');
		set_ItemCaption(EXPRINTLib.ItemCaptionEnum($c0 Or Integer(EXPRINTLib.ItemCaptionEnum.exCancel)),'<img>8</img> Size: Letter\r\nLetter #1\r\nA4#9\r\nA5#11\r\nA6#70');
		set_ItemToolTip(EXPRINTLib.ItemCaptionEnum($c0 Or Integer(EXPRINTLib.ItemCaptionEnum.exCancel)),'Paper Size');
		set_ItemCaption(EXPRINTLib.ItemCaptionEnum($c0 Or Integer(EXPRINTLib.ItemCaptionEnum.exPrintPreview)),'<img>9</img> <fgcolor 0000FF>Scale <sha ;;0>1 x 1');
		set_ItemToolTip(EXPRINTLib.ItemCaptionEnum($c0 Or Integer(EXPRINTLib.ItemCaptionEnum.exPrintPreview)),'Adjust To and Fit-To');
	end
end;

with AxPrint1 do
begin
	Images('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');
	ToolBarFormat := '-1,100,-1,101,102,106,-1,(200/201,-1,202),|,(-1,(-201/(103,-1,104,-1,105))):216';
	Options := 'FitToPage = 1x1';
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
38
Can I add or display icons or images in the document's title

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

with AxPrint1 do
begin
	ReplaceIcon(TObject(0),TObject(-1));
	Images('gBJJgBAIGAAHAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' + 
	'Vq1XrFZrVbqkQib/rlfsVhslllVelloqdqs8Ps1vuFtsFdt1putxvF0ucrtlRr1/u95wVrt2AvdWvuDxVVxNbxsZx+LyVCw1iyNQyuTzWbzmdz2f0Gh0Wj0ml02n1Gp1' + 
	'Wr1mt12v2Gx2Wz2m1neXwlgyu4p2Zsu8v2BrPAvUt4lP4+94Vc5PD5dL3eF6WHxnPsnNzHWpuR7HQ7Vm7vK6nZ6nhou+rXc7/e8ca81E9HO9vp6dh+PM9e2/X7/n9/z/' + 
	'sWiwfJXAaPJAkSSAAkqUQWnC/nAf5wI2f54QpCZ8H+fCNngOkOI2YAHRAjZAAfEkRxKB6UIQhCNxXFSDxfFiNRcjUSRNGsUQ+D5gA/DY/ngP8JwhIcIwpI0KwrDElQzD' + 
	'kmw6OkQSjEIHRtFEqyvFMXS1GEty7Lkvy1LExRRHkyx2D8gTTH4/oCA=');
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
36
Is it possible to change/customize the captions / tooltips being shown on the toolbar of the Print and Print-Preview

with AxPrint1 do
begin
	set_ItemCaption(EXPRINTLib.ItemCaptionEnum.exClose,'<img>6</img> <fgcolor FF0000><b>Inchide');
	set_ItemToolTip(EXPRINTLib.ItemCaptionEnum.exClose,'Inchide preview');
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
35
Is it possible somehow to get/set all settings of the printer

with AxPrint1 do
begin
	OutputDebugString( get_Settings(EXPRINTLib.FieldsEnum.exAllFields) );
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
34
How do I get the current's page size as described in the Paper Size field

with AxPrint1 do
begin
	OutputDebugString( get_Settings(EXPRINTLib.FieldsEnum.exFormName) );
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
33
How can I get the size of the page, in pixels

with AxPrint1 do
begin
	set_Settings(EXPRINTLib.FieldsEnum.exPaperSize,TObject(9));
	OutputDebugString( 'Width (pixels): ' );
	OutputDebugString( ClientWidth );
	OutputDebugString( 'Height (pixels): ' );
	OutputDebugString( ClientHeight );
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
32
How can I get the size of the page, in dots

with AxPrint1 do
begin
	set_Settings(EXPRINTLib.FieldsEnum.exPaperSize,TObject(9));
	OutputDebugString( 'Width (dots): ' );
	OutputDebugString( get_Settings(EXPRINTLib.FieldsEnum.exPaperWidth) );
	OutputDebugString( 'Height (dots): ' );
	OutputDebugString( get_Settings(EXPRINTLib.FieldsEnum.exPaperHeight) );
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
31
How can I display inches instead of millimeters

with AxPrint1 do
begin
	set_Settings(EXPRINTLib.FieldsEnum.exDisplayInch,TObject(0));
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
30
How can I display millimeters instead of inches

with AxPrint1 do
begin
	set_Settings(EXPRINTLib.FieldsEnum.exDisplayInch,TObject(1));
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
29
How can I change the paper's bottom margin

with AxPrint1 do
begin
	set_Settings(EXPRINTLib.FieldsEnum.exBottomMargin,TObject(0));
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
28
How can I change the paper's right margin

with AxPrint1 do
begin
	set_Settings(EXPRINTLib.FieldsEnum.exRightMargin,TObject(0));
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
27
How can I change the paper's top margin

with AxPrint1 do
begin
	set_Settings(EXPRINTLib.FieldsEnum.exTopMargin,TObject(0));
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
26
How can I change the paper's left margin

with AxPrint1 do
begin
	set_Settings(EXPRINTLib.FieldsEnum.exLeftMargin,TObject(0));
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
25
How do I specify the print quality
with AxPrint1 do
begin
	OutputDebugString( get_Settings(EXPRINTLib.FieldsEnum.exPrintQuality) );
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
24
How do I specify the number of copies
with AxPrint1 do
begin
	OutputDebugString( get_Settings(EXPRINTLib.FieldsEnum.exPrinterCopies) );
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
23
How do I get the current printer's name

with AxPrint1 do
begin
	OutputDebugString( get_Settings(EXPRINTLib.FieldsEnum.exPrinterName) );
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
22
How do I change the page's orientation to portrait (method 2)

with AxPrint1 do
begin
	set_Settings(EXPRINTLib.FieldsEnum.exPageOrientation,TObject(1));
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
21
How do I change the page's orientation to landscape (method 2)

with AxPrint1 do
begin
	set_Settings(EXPRINTLib.FieldsEnum.exPageOrientation,TObject(2));
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
20
How do I change the paper's source
with AxPrint1 do
begin
	set_Settings(EXPRINTLib.FieldsEnum.exPaperSource,TObject(7));
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
19
How can I change the paper's size to A4

with AxPrint1 do
begin
	set_Settings(EXPRINTLib.FieldsEnum.exPaperSize,TObject(9));
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
18
How do I change the page's orientation to portrait (method 1)

with AxPrint1 do
begin
	PageOrientation := EXPRINTLib.PageOrientationEnum.exPortrait;
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
17
How do I change the page's orientation to landscape (method 1)

with AxPrint1 do
begin
	PageOrientation := EXPRINTLib.PageOrientationEnum.exLandscape;
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
16
Is there any Fit-To option for print and print preview

with AxPrint1 do
begin
	Options := 'FitToPage = 2 x 2';
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
15
Is there any Fit-To-Page / Fit-To Tall option for print and print preview

with AxPrint1 do
begin
	Options := 'FitToPage = x 2';
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
14
Is there any Fit-To-Page / Fit-To Wide option for print and print preview

with AxPrint1 do
begin
	Options := 'FitToPage = 2 x';
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
13
Is there any Fit-To-Page / Adjust-To option for print and print preview

with AxPrint1 do
begin
	Options := 'FitToPage = 25%';
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
12
Is there any Fit-To-Page option for print and print preview

with AxPrint1 do
begin
	Options := 'FitToPage = On';
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
11
How can I display the document's title to a different place

with AxPrint1 do
begin
	CaptionAlignment := EXPRINTLib.AlignmentEnum.exLeft;
	CaptionPosition := EXPRINTLib.PositionEnum.exFooter;
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
10
How can I display the page numbers to a different place

with AxPrint1 do
begin
	PageNumbersPosition := EXPRINTLib.PositionEnum.exHeader;
	PageNumbersAlignment := EXPRINTLib.AlignmentEnum.exRight;
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
9
How do I hide the page numbers

with AxPrint1 do
begin
	ShowPageNumbers := False;
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
8
Is it possible to display the page's index and count in the document's title

with AxPrint1 do
begin
	Caption := '<font ;16>This is the page number <%page%> from <%count%> pages.';
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
7
How do I change the document's title

with AxPrint1 do
begin
	Caption := '<font ;16>This is your new <b>title</b>.';
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
6
How do I programmatically print the control, not using the Print-Preview mainframe

with AxPrint1 do
begin
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	DoPrint(TObject(True));
end
5
How can I print and print-preview the control (method 2)

with AxPrint1 do
begin
	PrintExts := (AxPrint1.GetOcx() as EXPRINTLib.Print);
	Preview();
end
4
How do I get the version of the eXPrint control
with AxPrint1 do
begin
	OutputDebugString( Version );
end
3
How do I change the font to display the page's caption (method 2)

with AxPrint1 do
begin
	Caption := '<font ;24>Untitled Document';
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
2
How do I change the font to display the page's caption (method 1)

with AxPrint1 do
begin
	Font.Size := 24;
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end
1
How can I print and print-preview the control (method 1)

with AxPrint1 do
begin
	PrintExt := (AxPrint1.GetOcx() as EXPRINTLib.Print).DefaultDispatch;
	Preview();
end