Topic: auto report file name from textbox
I have to name pdf automatic from a textbox,
My Visual Database → Reports → auto report file name from textbox
I have to name pdf automatic from a textbox,
Example
procedure Form1_bReport_OnClick (Sender: TObject; var Cancel: boolean);
begin
Form1.bReport.dbReportResultFile := Form1.Edit1.Text;
end;
error please share sample
Please download latest version of My Visual Database.
its working in new version thank u so much but I want name from table grid selected row first cell and save directly in pdf is it possible ?
Every cell in the TableGrid it's a field from database, so just add this filed in the settings of the report button. Also you should add this TableGrid to the first list in the settings of the report button.
May be I don't understand your question correctly. You can attach your project and describe the problem in more details.
thanks sir
look inside snapped image when i select cell in Table Gride and clicked on bReport Button then need to save pdf file with name to pdf as selected cell ,i hope u understand.
save pdf report with name of selected cell in table grid.
PFA
I have to name pdf file automatic from a tablegrid,
In this case
procedure Form1_bReport_OnClick (Sender: TObject; var Cancel: boolean);
begin
Form1.bReport.dbReportResultFile := Form1.TableGrid1.Cells[0, Form1.TableGrid1.SelectedRow];
end;
Sir need one more help
after clicking on bReport Button Pdf file direct opening in default pdf viewer,
instead of open, I need to save directly in a browsable folder without preview is it possible?
Check out this example
http://myvisualdatabase.com/forum/viewtopic.php?id=3285
My Visual Database → Reports → auto report file name from textbox
Powered by PunBB, supported by Informer Technologies, Inc.
Theme Hydrogen by Kushi