I am trying to download as pdf from crystal report.if i put button means its working perfectly but i want to download when crystal report page opened on that time crystal report data downloaded automatically...
Thanks, that looks like the way to do it, but I cannot find any good examples of shell execute for vb.net 2008. I did use process.start filename, but the pdf screen opens like a split screen and the pdf is very small over on the left side of the split. \\n \\nIf I use the com control from vb.net, the pdf opens within a window on the form which is awkward. \\n \\nSo I am wondering how shell execute works because that may solve the 2 problems above.\",\"author\":\"username\":\"former.member\",\"displayName\":\"Former Member\",\"groupIcons\":[],\"suspended\":true,\"isCurrentUser\":false,\"parentAuthor\":\"username\":\"former.member\",\"displayName\":\"Former Member\",\"groupIcons\":[],\"suspended\":true,\"isCurrentUser\":false,\"id\":6074860,\"creationDate\":1244491454000,\"activeRevisionId\":7559373,\"lastActivity\":1244491454000,\"parentId\":6067200,\"originalParentId\":6061504,\"likeCount\":0,\"visibility\":\"full\",\"depth\":0,\"attachments\":[],\"canVoteUpOrCancel\":false,\"relations\":\"canReport\":false,\"visibility\":\"full\",\"canEdit\":false,\"canUseDelete\":false,\"isLiked\":false,\"type\":\"comment\",\"canVoteUpOrCancel\":false,\"canConvertToAnswer\":false,\"canBeModerated\":false,\"canViewRevisions\":false,\"showInReply\":false,\"reported\":false,\"canCancelReport\":false,\"canDelete\":false,\"canVoteDownOrCancel\":false,\"canComment\":false,\"canViewReports\":false,\"isCurrentUserAuthor\":false,\"moderatorComment\":false,\"liked\":false}]},\"6065482\":\"rootParentId\":6065482,\"commentsCount\":1,\"comments\":[\"body\":\"How about if I filter the open dialog box using the pdf name and folder. Then that one would be the only one open in the dialog box and if the user selects it, it would open. Have not tested yet, but this popped into my mind. Seems better than a button on the form with the crystal view to open another form . Or I could have the adobe com object over laying the cr viewer and just make it visible if they press a button to open the abode file..\\n\\nMaybe people have tried this and could comment on the better choice to view the pdf\\n1. call another form that contains the adobe com\\n2. place the adobe control over the cr viewer and make visible if user requests to see pdf. \\n3. use a filtered open dialog box.\",\"author\":\"username\":\"former.member\",\"displayName\":\"Former Member\",\"groupIcons\":[],\"suspended\":true,\"isCurrentUser\":false,\"parentAuthor\":\"username\":\"ludek.uher\",\"displayName\":\"Ludek Uher\",\"groupIcons\":[\"name\":\"moderator\",\"title\":\"This user is an SAP Moderator\",\"priority\":20,\"name\":\"employee\",\"title\":\"This user is an SAP Employee\",\"priority\":21],\"suspended\":false,\"isCurrentUser\":false,\"id\":6066303,\"creationDate\":1244222308000,\"activeRevisionId\":7552570,\"lastActivity\":1244222308000,\"parentId\":6065482,\"originalParentId\":6061504,\"likeCount\":0,\"visibility\":\"full\",\"depth\":0,\"attachments\":[],\"canVoteUpOrCancel\":false,\"relations\":\"canReport\":false,\"visibility\":\"full\",\"canEdit\":false,\"canUseDelete\":false,\"isLiked\":false,\"type\":\"comment\",\"canVoteUpOrCancel\":false,\"canConvertToAnswer\":false,\"canBeModerated\":false,\"canViewRevisions\":false,\"showInReply\":false,\"reported\":false,\"canCancelReport\":false,\"canDelete\":false,\"canVoteDownOrCancel\":false,\"canComment\":false,\"canViewReports\":false,\"isCurrentUserAuthor\":false,\"moderatorComment\":false,\"liked\":false]}"); const simplifiedQuestionView = JSON.parse("true"); (function() window.pageContext = mergeDeep(pageContext, question: id: 6061504, plug: "converting-a-crystal-report-to-pdf-and-then-openin", votes: 0, questionTitle: "converting a crystal report to pdf and then opening the pdf automatically", isClosed: false, isLocked: false, isRedirected: false, redirectedFromTitle: "", redirectedFromId: "", closedStatusData: JSON.parse(""), userVoted: false, relations: JSON.parse("\"canClose\":false,\"canUnredirect\":false,\"canReport\":false,\"visibility\":\"full\",\"canEdit\":false,\"canUseDelete\":false,\"canReopen\":false,\"type\":\"question\",\"canVoteUpOrCancel\":false,\"canViewRevisions\":true,\"canUnlock\":false,\"reported\":false,\"canVoteDownOrCancel\":false,\"canLock\":false,\"canCancelReport\":false,\"canComment\":true,\"isCurrentUserAuthor\":false,\"canViewReports\":false"), isQuestionAccepted: true , childToViewInfo: id: "" , comments: JSON.parse("\"6067200\":\"rootParentId\":6067200,\"commentsCount\":1,\"comments\":[\"body\":\"Thanks, that looks like the way to do it, but I cannot find any good examples of shell execute for vb.net 2008. I did use process.start filename, but the pdf screen opens like a split screen and the pdf is very small over on the left side of the split. \\n \\nIf I use the com control from vb.net, the pdf opens within a window on the form which is awkward. \\n \\nSo I am wondering how shell execute works because that may solve the 2 problems above.\",\"author\":\"username\":\"former.member\",\"displayName\":\"Former Member\",\"groupIcons\":[],\"suspended\":true,\"isCurrentUser\":false,\"parentAuthor\":\"username\":\"former.member\",\"displayName\":\"Former Member\",\"groupIcons\":[],\"suspended\":true,\"isCurrentUser\":false,\"id\":6074860,\"creationDate\":1244491454000,\"activeRevisionId\":7559373,\"lastActivity\":1244491454000,\"parentId\":6067200,\"originalParentId\":6061504,\"likeCount\":0,\"visibility\":\"full\",\"depth\":0,\"attachments\":[],\"canVoteUpOrCancel\":false,\"relations\":\"canReport\":false,\"visibility\":\"full\",\"canEdit\":false,\"canUseDelete\":false,\"isLiked\":false,\"type\":\"comment\",\"canVoteUpOrCancel\":false,\"canConvertToAnswer\":false,\"canBeModerated\":false,\"canViewRevisions\":false,\"showInReply\":false,\"reported\":false,\"canCancelReport\":false,\"canDelete\":false,\"canVoteDownOrCancel\":false,\"canComment\":false,\"canViewReports\":false,\"isCurrentUserAuthor\":false,\"moderatorComment\":false,\"liked\":false],\"6065482\":\"rootParentId\":6065482,\"commentsCount\":1,\"comments\":[\"body\":\"How about if I filter the open dialog box using the pdf name and folder. Then that one would be the only one open in the dialog box and if the user selects it, it would open. Have not tested yet, but this popped into my mind. Seems better than a button on the form with the crystal view to open another form . Or I could have the adobe com object over laying the cr viewer and just make it visible if they press a button to open the abode file..\\n\\nMaybe people have tried this and could comment on the better choice to view the pdf\\n1. call another form that contains the adobe com\\n2. place the adobe control over the cr viewer and make visible if user requests to see pdf. \\n3. use a filtered open dialog box.\",\"author\":\"username\":\"former.member\",\"displayName\":\"Former Member\",\"groupIcons\":[],\"suspended\":true,\"isCurrentUser\":false,\"parentAuthor\":\"username\":\"ludek.uher\",\"displayName\":\"Ludek Uher\",\"groupIcons\":[\"name\":\"moderator\",\"title\":\"This user is an SAP Moderator\",\"priority\":20,\"name\":\"employee\",\"title\":\"This user is an SAP Employee\",\"priority\":21],\"suspended\":false,\"isCurrentUser\":false,\"id\":6066303,\"creationDate\":1244222308000,\"activeRevisionId\":7552570,\"lastActivity\":1244222308000,\"parentId\":6065482,\"originalParentId\":6061504,\"likeCount\":0,\"visibility\":\"full\",\"depth\":0,\"attachments\":[],\"canVoteUpOrCancel\":false,\"relations\":\"canReport\":false,\"visibility\":\"full\",\"canEdit\":false,\"canUseDelete\":false,\"isLiked\":false,\"type\":\"comment\",\"canVoteUpOrCancel\":false,\"canConvertToAnswer\":false,\"canBeModerated\":false,\"canViewRevisions\":false,\"showInReply\":false,\"reported\":false,\"canCancelReport\":false,\"canDelete\":false,\"canVoteDownOrCancel\":false,\"canComment\":false,\"canViewReports\":false,\"isCurrentUserAuthor\":false,\"moderatorComment\":false,\"liked\":false]"), answerPager: answersCount: 4, page: 1, pageSize: 10, pageCount: 1, sort: "votes" , answers: JSON.parse("[\"body\":\"I am doing the same thing in my project. I am using the adobe component AcroPDFLib. This is not free software you have to get license. You can view the details of the available functionalities provided by dll by downloading the document in the link given below. Simply export the PDF in any temp folder and then open the file at run time. \\n \\n _api_reference.pdf\",\"author\":\"username\":\"former.member\",\"displayName\":\"Former Member\",\"groupIcons\":[],\"suspended\":true,\"isCurrentUser\":false,\"id\":6247312,\"posted\":1247726991000,\"votes\":2,\"isAccepted\":true,\"isLocked\":false,\"userVoted\":\"\",\"relations\":\"score\":2,\"canCancelAccept\":false,\"canUnlock\":false,\"canUseDelete\":false,\"accepted\":true,\"canVoteDownOrCancel\":false,\"canLock\":false,\"canAccept\":false,\"type\":\"answer\",\"canVoteUpOrCancel\":false,\"isCurrentUserAuthor\":false,\"attachments\":[], =27072378&messageID=7650934] thread for a good sample code. If you are using a win app, you will have to use the adobe com control. \\n\\n\\n\\nLudek\",\"author\":\"username\":\"ludek.uher\",\"displayName\":\"Ludek Uher\",\"groupIcons\":[\"name\":\"moderator\",\"title\":\"This user is an SAP Moderator\",\"priority\":20,\"name\":\"employee\",\"title\":\"This user is an SAP Employee\",\"priority\":21],\"suspended\":false,\"isCurrentUser\":false,\"id\":6065482,\"posted\":1244209306000,\"votes\":1,\"isAccepted\":false,\"isLocked\":false,\"userVoted\":\"\",\"relations\":\"score\":1,\"canCancelAccept\":false,\"canUnlock\":false,\"canUseDelete\":false,\"canVoteDownOrCancel\":false,\"canLock\":false,\"canAccept\":false,\"type\":\"answer\",\"canVoteUpOrCancel\":false,\"isCurrentUserAuthor\":false,\"attachments\":[],\"body\":\"You can use ShellExecute to open the PDF file you have generated. This will launch Acrobat Reader (or whatever application you have associated with PDF file). \\n \\n-- \\nFrancois Piette \\n \",\"author\":\"username\":\"former.member\",\"displayName\":\"Former Member\",\"groupIcons\":[],\"suspended\":true,\"isCurrentUser\":false,\"id\":6067200,\"posted\":1244271127000,\"votes\":0,\"isAccepted\":false,\"isLocked\":false,\"userVoted\":\"\",\"relations\":\"canCancelAccept\":false,\"canUnlock\":false,\"canUseDelete\":false,\"canVoteDownOrCancel\":false,\"canLock\":false,\"canAccept\":false,\"type\":\"answer\",\"canVoteUpOrCancel\":false,\"isCurrentUserAuthor\":false,\"attachments\":[],\"body\":\"Search for code samples using Google or some other tool like www.bing.com\",\"author\":\"username\":\"don.williams\",\"displayName\":\"Don Williams\",\"groupIcons\":[\"name\":\"moderator\",\"title\":\"This user is an SAP Moderator\",\"priority\":20,\"name\":\"employee\",\"title\":\"This user is an SAP Employee\",\"priority\":21],\"suspended\":false,\"isCurrentUser\":false,\"id\":6146362,\"posted\":1245770191000,\"votes\":0,\"isAccepted\":false,\"isLocked\":false,\"userVoted\":\"\",\"relations\":\"canCancelAccept\":false,\"canUnlock\":false,\"canUseDelete\":false,\"canVoteDownOrCancel\":false,\"canLock\":false,\"canAccept\":false,\"type\":\"answer\",\"canVoteUpOrCancel\":false,\"isCurrentUserAuthor\":false,\"attachments\":[]]"), answerForm: formAction: "/answers/6061504/post.json", textareaName: "body", textareaErrors: "", isAttachmentsEnabled: true, answerEditorialGuideline: title: "Before answering", content: "You should only submit an answer when you are proposing a solution to the poster\'s problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that your answer complies with our Rules of Engagement.", links: [ title: "Rules of Engagement", href: " -of-engagement.html", ] , answerMinBodyLength: '10', answerMaxBodyLength: '20000' , currentUser: sapInternalId: '', permissions: canVoteUpOrCancel: false, canVoteDownOrCancel: false, canModerate: false, , isVotedUp: false, isVotedDown: false , alerts: alertModeratorMinLength : "It should be given a proper explanation about why the content is inappropriate.", alertModeratorMinLengthValue : "10", alreadyReportedMessage : "You already have an active moderator alert for this content." , url: profileApiBaseUrl: ' -api.services.sap.com', followUnfollowQuestion: '/sap/nodeSubscription.json', isFollowingQuestion: '/sap/isFollowingNode.json', vote: voteUp: '/commands/0/voteup.json', voteDown: '/commands/0/votedown.json', cancelVote: '/commands/0/cancelvote.json' , rss: answers: '/feed/6061504/answers.rss', answersAndComments: '/feed/6061504/comments-and-answers.rss' , authorizeUploadContext: type: 'answer' , atMention: userSearchServiceUrl: ' ', currentUserName: '', useNewUSSCORS: true, atMentionDelayMs: 100, showMentionInRedactor: true , attachmentSettings: commentMaxAttachments: '2', answerMaxAttachments: '10', commentMaxAttachmentSizeBytes: '1048576', answerMaxAttachmentSizeBytes: '1048576', commentAttachmentsSizeBytesTotal: '2097152', answerAttachmentsSizeBytesTotal: '10485760' , editor: editorClipboardUploadEnabled: true ) )(); Home
Community
Ask a Question
Write a Blog Post
Login / Sign-up Search Questions and Answers 0 Former Member Jun 05, 2009 at 02:42 AM converting a crystal report to pdf and then opening the pdf automatically 945 Views Follow RSS Feed I am successfully exporting a crystal report to a pdf file using code in vb.net 2008 in a windows application. The crystal report is open in the viewer control and the user presses a button to export it.
Download Export Crystal Report To Pdf Vb Net
2ff7e9595c
Comments