SaveDialog1.FileName:='YourFileName'
SaveDialog1.Filter:='File Type (*'+ExtractFileExt(YourFileName)+')|'+'*'+ExtractFileExt(YourFileName);
if SaveDialog1.Execute then
begin
..........
end;
with printdialog1 do
begin
options:=[popagenums,poselection];
frompage:=1;
minpage:=1;
toage:=5;
maxpage:=5;
end;
if parintdialog.execute then
begin
with printdialog1 do
begin
if printrange=prallpages then
begin
start:=MinPage-1;
stop:=maxpage-1;
end
else
if printrange=prselection then
begin
start:=10
stop:=start
end;
end;
end;
SaveDialog1.Filter:='File Type (*'+ExtractFileExt(YourFileName)+')|'+'*'+ExtractFileExt(YourFileName);
if SaveDialog1.Execute then
begin
..........
end;
with printdialog1 do
begin
options:=[popagenums,poselection];
frompage:=1;
minpage:=1;
toage:=5;
maxpage:=5;
end;
if parintdialog.execute then
begin
with printdialog1 do
begin
if printrange=prallpages then
begin
start:=MinPage-1;
stop:=maxpage-1;
end
else
if printrange=prselection then
begin
start:=10
stop:=start
end;
end;
end;
解决方案 »
- 刚学Delphi,请问 DWORD(textbox1.Text[i])得到的是什么东西啊?
- Webbrowser做的浏览器在访问农行银行站点时,不能点击确定付款
- 在CXgrid中排序后选择某行获取到的值不是显示的该行的值
- 我还能做程序员么
- 求教:如何将RICHEDIT(RXRichEdit)的内容转换为图像?
- 在Access中怎么用命令写符合条件的记录的复制,粘贴,剪切,以至于可以在程序中以SQL语句的形式执行?
- 问一个关于udp的问题
- 怎么打开DataModule文件?
- SQL里怎么实现使两个表相同的触发器?
- 多操作系统恢复问题
- 如何安装新控件??
- Delphi学习和使用2年了,想在上海找个工作难吗?我是上海本地的!!
SaveDialog1.Filter:='File Type (*'+ExtractFileExt(YourFileName)+')|'+'*'+ExtractFileExt(YourFileName);
if SaveDialog1.Execute then
begin
..........
end;
with printdialog1 do
begin
options:=[popagenums,poselection];
frompage:=1;
minpage:=1;
toage:=5;
maxpage:=5;
end;
if parintdialog.execute then
begin
with printdialog1 do
begin
if printrange=prallpages then
begin
start:=MinPage-1;
stop:=maxpage-1;
end
else
if printrange=prselection then
begin
start:=10
stop:=start
end;
end;
end;
// do your thingsPrintSetupDialog.Execute
PrintDialog.Execute
// do your thingsPrintSetupDialog.Execute
PrintDialog.Execute
exit;
做你我做的事if not PrintSetupDialog.Execute.execute then
exit;
做你我做的事