Topic: auto report file name from textbox

I have to name pdf automatic from a textbox,

Re: auto report file name from textbox

Example

procedure Form1_bReport_OnClick (Sender: TObject; var Cancel: boolean);
begin
    Form1.bReport.dbReportResultFile := Form1.Edit1.Text;
end;
Dmitry.

3 (edited by shaikhmujaahid 2019-11-23 12:25:31)

Re: auto report file name from textbox

error please share sample

Post's attachments

Attachment icon Error.JPG 35.54 kb, 2 downloads since 2019-11-23 

Re: auto report file name from textbox

Please download latest version of My Visual Database.

Dmitry.

Re: auto report file name from textbox

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 ?

Re: auto report file name from textbox

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.

Dmitry.

Re: auto report file name from textbox

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

Post's attachments

Attachment icon save pdf report with name of selected cell in table grid.JPG 31.61 kb, 2 downloads since 2019-11-25 

Re: auto report file name from textbox

I have to name pdf file automatic from a tablegrid,

Re: auto report file name from textbox

In this case

procedure Form1_bReport_OnClick (Sender: TObject; var Cancel: boolean);
begin
    Form1.bReport.dbReportResultFile := Form1.TableGrid1.Cells[0, Form1.TableGrid1.SelectedRow];
end;
Dmitry.

Re: auto report file name from textbox

Thanks its working love you

Re: auto report file name from textbox

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?

Re: auto report file name from textbox

Check out this example
http://myvisualdatabase.com/forum/viewtopic.php?id=3285

Dmitry.