You need to sign in to do that
Don't have an account?
Y.O
Visualforce リンク先 ファイル表示
お世話になっております。
Visualforceのファイル表示に関して質問です。
Visualforce上の
リンク(apex:commandLink)もしくは
ボタン(apex:commandButton)にて、
あらかじめ作成しているPDFファイルを表示させたいと思っております。
このPDFファイルは、
静的リソースに置いて、表示できないかと考えております。
上記は実現可能でしょうか?
もしくは他の方法で実現するしかないのでしょうか?
以上、よろしくお願いいたします。
Visualforceのファイル表示に関して質問です。
Visualforce上の
リンク(apex:commandLink)もしくは
ボタン(apex:commandButton)にて、
あらかじめ作成しているPDFファイルを表示させたいと思っております。
このPDFファイルは、
静的リソースに置いて、表示できないかと考えております。
上記は実現可能でしょうか?
もしくは他の方法で実現するしかないのでしょうか?
以上、よろしくお願いいたします。
If I get the question right you want to open a pdf on click of a button if that is the case can you try checking the below line of code to see if it works:
>> <apex:commandButton value="Convert to PDF" onClick="window.open('/apex/orderReportPDF?id={!Opportunity.Id}');" />
If this was helpful can you please choose this answer as the best answer so that it can be used by others in the future.
Regards,
Anutej
All Answers
If I get the question right you want to open a pdf on click of a button if that is the case can you try checking the below line of code to see if it works:
>> <apex:commandButton value="Convert to PDF" onClick="window.open('/apex/orderReportPDF?id={!Opportunity.Id}');" />
If this was helpful can you please choose this answer as the best answer so that it can be used by others in the future.
Regards,
Anutej