Dear All,
I have developed the code for save the report in pdf format.
...pdf created and it saved on automatically c:\temp....
Also I have used the functionality to send this attachment to concern person. email functionality is not working here. so i have not receive any mail.
Note: ye existing order sheet ka pdf nahi create kar reha hai...ye aaj tak jitne order sheet bane hai...sabka pdf bana de reha hai...pdf ka size bhi 8.50 mb tak ho reha hai..
manish
*This post is locked for comments
done, problem resolved.
please close this thread.
manish
Filter your data as per page you filter before saving report in pdf format, and pass filter record to report.
Like:
RecVar.Reset;
RecVar.SETRANGE("No.",Docno);
IF RecVar.FINDFIRST THEN BEGIN
ReportVariable.SETTABLEVIEW(RecVar);
IF NOT ReportVariable.SAVEASPDF(path) THEN
ERROR('pdf not created');
......
.....
...
END;
------------------
For Mail, you have to setup SMTP Mail page.
Also
Sohail Ahmed
2
mmv
2
Amol Salvi
2