*
* @author Markus Kr�ger
* @date 09.07.2007
*/
public void showPreview(int columns, int rows) throws NOAException {
IDispatch dispatch = getDispatch(GlobalCommands.PRINT_PREVIEW);
dispatch.dispatch();
if(columns < 1)
columns = 1;
if(rows < 1)
rows = 1;
dispatch = getDispatch(GlobalCommands.PRINT_PREVIEW_SHOW_MULTIPLE_PAGES);
PropertyValue[] properties = new PropertyValue[2];
properties[0] = new PropertyValue();
properties[0].Name = "Columns";
properties[0].Value = new Integer(columns);
properties[1] = new PropertyValue();
properties[1].Name = "Rows";
properties[1].Value = new Integer(rows);
dispatch.dispatch(properties);
}