{"id":465,"date":"2023-05-26T14:54:37","date_gmt":"2023-05-26T14:54:37","guid":{"rendered":"http:\/\/basicwebsitesolutions.com\/blog\/?p=465"},"modified":"2023-05-26T14:55:43","modified_gmt":"2023-05-26T14:55:43","slug":"delphi-quickreport-disabling-load-and-save-buttons-solved","status":"publish","type":"post","link":"https:\/\/basicwebsitesolutions.com\/blog\/2023\/05\/26\/delphi-quickreport-disabling-load-and-save-buttons-solved\/","title":{"rendered":"Delphi Quickreport Disabling Load and Save buttons [SOLVED]"},"content":{"rendered":"\n<p>A recent client of mine insisted that he wanted the app to remove the load and save button for the quickreports.<\/p>\n\n\n\n<p>After searching for around 2 hours, i found the solution from mr.wu<\/p>\n\n\n\n<p>So thank you mr.wu<\/p>\n\n\n\n<p>Here is the code<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>another way can solve this problem.\r\n(1)append\r\n    uses  ...QRPrntr, QRPrev,...\r\n(2)complete the OnPreview method for the QuickRep as following:\r\nprocedure TqrpLabelGrader.QuickRep1Preview(Sender: TObject);\r\nvar\r\n  qrStandardPreview: TQRStandardPreview;\r\nbegin\r\n  qrStandardPreview:=TQRStandardPreview.CreatePreview(Self, TQRPrinter(Sender));\r\n  qrStandardPreview.SaveReport.Enabled := False;\r\n  qrStandardPreview.LoadReport.Enabled := False;\r\n  qrStandardPreview.Show;\r\nend;\r\nHPH,\r\nwu yong<\/code><\/pre>\n\n\n\n<p>Enjoy <\/p>\n\n\n\n<p>Coffee Cup<\/p>\n\n\n\n<p><a href=\"http:\/\/www.delphigroups.info\/2\/b2\/390705.html\">http:\/\/www.delphigroups.info\/2\/b2\/390705.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Delphi Quickreport Disabling Load and Save buttons <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3,1],"tags":[36,287,284,283,282,286,285],"class_list":["post-465","post","type-post","status-publish","format-standard","hentry","category-day-to-day-life","category-delphi-and-interbase","category-life-as-a-programmer","tag-delphi","tag-load-toolbar","tag-pbload","tag-pbsave","tag-quickreport","tag-save-toolbar","tag-savebutton"],"_links":{"self":[{"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/posts\/465","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=465"}],"version-history":[{"count":2,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/posts\/465\/revisions"}],"predecessor-version":[{"id":467,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/posts\/465\/revisions\/467"}],"wp:attachment":[{"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=465"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}