Programatically getting SSRS (in PDF/ Excel) hosted on Azure VM

i am migrating my SSRS deployed on Azure SQL reporting to SSRS hosted on Azure VM. I have successfully created a VM and deployed my reports, which can be viewed from browser. now my requirement is that i want to get the reports in PDF or EXCEL format programatically
(from web role). that requirment working fine for last one year until I moved SSRS to VM.
when i called   ReportViewer.ServerReport.GetParameters()
method it throw an exception 401 UnAuthorized access. i am currently using below class to authenticate my user to get reports in PDF or EXCEL
public class SSRSReportServerCredentials : IReportServerCredentials
public SSRSReportServerCredentials()
public WindowsIdentity ImpersonationUser
get { return null; }
public ICredentials NetworkCredentials
get { return null; }
public bool GetFormsCredentials(out Cookie authCookie, out string user, out string password, out string authority)
authCookie = null;
user = sa;
password = test;
authority = SERVER.reporting.windows.net;
return true;
Can any one help me out to fix my production issue.
best regards, Zeeshan

In SQL Azure Reporting, SSRS was designed to use Forms Based Authentication. Due to this we were required to use IReportServerCredentials and return the GetFormsCredentials method as described by you. 
Since you have successfully migrated to SSRS on an Azure VM, the way to Authenticate against Reporting Services would be to return the
NetworkCredentials Property instead of the GetFormCredentials
since SSRS on an Azure VM using Windows Authentication By Default. 
More Information: http://msdn.microsoft.com/en-us/library/microsoft.reporting.webforms.ireportservercredentials(v=vs.100).aspx
public class SSRSReportServerCredentials : IReportServerCredentials
public SSRSReportServerCredentials()
public WindowsIdentity ImpersonationUser
get { return null; }
public ICredentials NetworkCredentials
get { return new NetworkCredential("ReportServerUserName", "ReportServerPassword"); }
public bool GetFormsCredentials(out Cookie authCookie, out string user, out string password, out string authority)
authCookie = null;
user = null;
password = null;
authority = null;
return false;
Best Regard,
Kane

Similar Messages

  • Workbook is not getting saved in PDF format on website directory

    I have an Excel workbook, which I am trying to save in Pdf file format on website directory at azure, and after creating pdf uploading it on azure blob storage. The code is working fine on local but on web server it is not uploading pdf on storage,
    Code Ex:
    //Save the document in html format
                    workbook.Save(excelFile);
                    string fileName = System.IO.Path.GetRandomFileName();
                    string realPath = Server.MapPath("~/Content/");
                    string pdfFile = realPath + fileName + ".Pdf";
                    workbook.Save(pdfFile, SaveFormat.Pdf);
    Below code I am using to upload PDf file on Storage:
    private string UploadPdfFileToStorage(string filePath, string fileName)
                //Console.WriteLine("Second:=>" + filePath);
                // Retrieve storage account from connection string.
                var storageAccount = CloudStorageAccount.Parse(CloudConfigurationManager.GetSetting("StorageConnectionString"));
                // Create the blob client.
                CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient();
                // Retrieve a reference to a container. 
                CloudBlobContainer container = blobClient.GetContainerReference("reporthtmlfiles");
                // Create the container if it doesn't already exist.
                container.CreateIfNotExists();
                //Permit container for public acces
                container.SetPermissions(new BlobContainerPermissions { PublicAccess = BlobContainerPublicAccessType.Container });
                fileName = fileName + ".pdf";
                CloudBlockBlob blockBlob = container.GetBlockBlobReference(fileName);
                blockBlob.Properties.ContentType = "application/pdf";
                byte[] file = System.IO.File.ReadAllBytes(filePath);
                MemoryStream objMemoryStream = new MemoryStream(file);
                objMemoryStream.Seek(0, SeekOrigin.Begin);
                blockBlob.UploadFromStream(objMemoryStream);
                objMemoryStream.Close();
                return blockBlob.Uri.AbsoluteUri;
    Please help, thanks in advance

    Hi,
    Based on your description, your pdf file is saved to server side, so if you try above code on your local, you could read the file, but, if host your application to azure, you need to get the file stream first, then upload from the stream. Please set
    the breakpoint at: "byte[] file = System.IO.File.ReadAllBytes(filePath);" check this file variable.
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Exception when using BEx Broadcaster on output PDF/Excel

    Hi all,
    I've a BI system (ABAP & Java) on different servers - SP12.
    When I try to send a query with Output Format other than "Outer link to CurrentData" (ie. PDF/Excel) through the BEx Broadcaster I get
    "Java system error: call FM_RSRD_X_PRODUCE_PROXY to ProgId <RFC Destination name> on host <portal server name> with SSO not authorized: Authentication faild."
    If I try to run 'FM_RSRD_X_PRODUCE_PROXY' directly through SE37 I don't get an error.
    I have the latest "Diagnostics & Support Tool" and everything is Green when I do the check.
    SSO if configured from Portal to BW (if I go the the BI Master system and do 'Test connector' I get 'success').
    Moreover, if SSO wasn't configured then I would get an error when trying to access the BI roles (My ModelData JCO destinations uses ticket)
    The user I'm testing has '0BI_ALL'.
    DefaultTrace:
    <i>Date : 11/07/2007
    Time : 15:15:28:619
    Message : call FM RSRD_X_PRODUCE_PROXY to ProgId <RFC destination name> on host <portal server name> with SSO not authorized: Authentication failed.
    Severity : Error
    Category : /System/Server
    Location : com.sap.engine.services.rfcengine
    Application :
    Thread : SAPEngine_Application_Thread[impl:3]_0
    Datasource : 1585650:D:\usr\sap\VP2\JC00\j2ee\cluster\server0\log\defaultTrace.trc
    Message ID : 005056827EE90062000001100000373000043E568B18912E
    Source Name : com.sap.engine.services.rfcengine
    Argument Objs :
    Arguments :
    Dsr Component : WP8
    Dsr Transaction : 4731B5D4842D315FE10000002A50504F
    Dsr User : OMRIC                          
    Indent : 0
    Level : 0
    Message Code :
    Message Type : 0
    Relatives : /System/Server
    Resource Bundlename :
    Session : 0
    Source : com.sap.engine.services.rfcengine
    ThreadObject : SAPEngine_Application_Thread[impl:3]_0
    Transaction :
    User : Guest
    Date : 11/07/2007
    Time : 14:46:25:420
    Message : java.lang.RuntimeException: call FM RSRD_X_PRODUCE_PROXY to ProgId <RFC destination name> on host <portal server name> with SSO not authorized: Authentication failed.
         at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:79)
         at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequest(RFCJCOServer.java:156)
         at com.sap.mw.jco.JCO$Server.dispatchRequest(JCO.java:7785)
         at com.sap.mw.jco.MiddlewareJRfc$Server.dispatchRequest(MiddlewareJRfc.java:2405)
         at com.sap.mw.jco.MiddlewareJRfc$Server.listen(MiddlewareJRfc.java:1728)
         at com.sap.mw.jco.JCO$Server.listen(JCO.java:8145)
         at com.sap.mw.jco.JCO$Server.work(JCO.java:8265)
         at com.sap.mw.jco.JCO$Server.loop(JCO.java:8212)
         at com.sap.mw.jco.JCO$Server.run(JCO.java:8128)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Severity : Error
    Category :
    Location : com.sap.engine.services.rfcengine.handleRequest
    Application :
    Thread : SAPEngine_Application_Thread[impl:3]_19
    Datasource : 1585650:D:\usr\sap\VP2\JC00\j2ee\cluster\server0\log\defaultTrace.trc
    Message ID : 005056827EE900680000012D0000373000043E56233051EB
    Source Name : com.sap.engine.services.rfcengine
    Argument Objs :
    Arguments :
    Dsr Component : WP8
    Dsr Transaction : 4731AF9A842D315FE10000002A50504F
    Dsr User : OMRIC                          
    Indent : 0
    Level : 0
    Message Code :
    Message Type : 0
    Relatives :
    Resource Bundlename :
    Session : 0
    Source : com.sap.engine.services.rfcengine
    ThreadObject : SAPEngine_Application_Thread[impl:3]_19
    Transaction :
    User : Guest</i>
    How can I solve this problem?
    Regards,
    Omri

    Solved it on my own.
    The sso from Java->ABAP was OK
    I reconfigured the sso from ABAP->JAVA by creating new ABAP certificate and import it to the J2EE.
    Omri

  • Are You All Able to get the Output In EXCEL Format

    Hi All,
    I have one question. Are You All Able to get the Output In EXCEL Format?? I am working on Oracle Apllication 11.5.10.2 and my XML builder is 5.0.1. Problem which i m facing is this...... Whenever i am submitting a concurrent program with format type different from PDF i could not able to view the ouput in desired format. When i am pressing view output it gives me a file in XML and when i save that file with extention 'xls' or 'rtf' then i could able to see the saved file in desired format.
    Can anyone tell me where is the problem??? Is it a bug?
    I am using microsoft world 2000 sp-3.
    Please give your valuable comments. May be your comments can solve my problem..
    Thanks
    Ravi

    Hi I got Same issue
    When I change Format to EXCEL from
    Submit request>> Option>> Format = EXCEL
    In window I am getting something HTML code and
    when I try to copy it to Browser from Tools>> Copy File in to Browser I am getting following message
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    End tag 'p' does not match the start tag 'a'. Error processing resource 'http://our url.com:8000/OA_CGI...
    <p class="c0"><a name="Text4" id="Text4"><a name="Text1_1" id="Text1_1"><span class="c1">Dept No <...
    But I can see the output when Format is PDF
    Pls suggest solution ,I am using EBS 11.5.10.2.
    Thanks
    Rahul
    Message was edited by: Rahul
    user576181

  • Header and footer of RTF template not getting carried over to Excel output

    We have Header and Footer in RTF template defined. The output of the report will be in Excel. When we run the report, the header and footer on the report are not getting carried over to excel has header and footer, instead the header and footer are printed as first line on the excel. Also, the RTF template is set to landscape but when the output is generated in excel, it is set to Portrait

    hi..
    chk this presentation...
    http://csc-studentweb.lrc.edu/swp/Berg/articles/NW2004s_what_is_new.ppt#352,3,Why NW 2004s?
    http://www.sap-hefte.de/download/dateien/1090/086_leseprobe.pdf'
    hope this helps...

  • In fnd_request.add_layout how to get the layout in EXCEL Format

    Hi All,
    After applying the patch (5688014), in WSH_DOCUMENT_SETS package fnd_request.add_layout is getting called as below. I am getting the output in PDF format, when called from Document sets.
    But my requirement is i want the report to be in EXCEL Format. Is there any other patch is available to get the report in EXCEL when called from Document Sets/ Or any other alternative solutions to acheive this..
    Can any body help me on this...
    l_print_pdf := 'N';
    IF(l_output_file_type = 'XML' ) THEN
    IF l_debug_on THEN
    WSH_DEBUG_SV.logmsg(l_module_name, 'template' || l_template_code);
    END IF;
    IF (l_template_code is not NULL) then
    IF l_nls_lang.COUNT <> 0 THEN
    select iso_language,iso_territory into l_language, l_territory
    from fnd_languages
    where language_code = l_nls_lang(l_nls_count).lang_code;
    ELSE
    select iso_language,iso_territory into l_language, l_territory
    from fnd_languages
    where language_code = userenv('LANG');
    END IF;
    IF l_debug_on THEN
    WSH_DEBUG_SV.logmsg(l_module_name, ' language ' || l_language || ', territory ' || l_territory);
    END IF;
    l_ret_status :=fnd_request.add_layout(l_appl_short_name,
    l_template_code,
    l_language,
    l_territory,
    'PDF');
    IF l_ret_status THEN
    l_print_pdf := 'Y';
    ELSE
    IF l_debug_on THEN
    WSH_DEBUG_SV.logmsg(l_module_name, 'Error returning from fnd_request.add_layout :'||x_return_status);
    END IF;
    wsh_util_core.add_message(x_return_status);
    END IF;
    ELSE
    IF l_debug_on THEN
    WSH_DEBUG_SV.logmsg(l_module_name, 'No template was specified for this report. Hence could not generate the pdf output' );
    END IF;
    fnd_message.set_name('WSH', 'WSH_NO_DEFAULT_TEMPLATE');
    fnd_message.set_token('CONC_PROG_NAME', document.user_concurrent_program_name);
    x_return_status := wsh_util_core.g_ret_sts_error;
    wsh_util_core.add_message(x_return_status);
    END IF; --} If template_code is not null
    END IF; --} If l_output_file_type = 'XML'
    Thanks in Advance..

    Hi,
    I tried your approach and got the following error..
    ------------- 1) PUBLISH -------------
    Beginning post-processing of request 14808954 on node FAHQSNA09SFTD07 at 24-JAN-2012 04:13:08.
    Post-processing of request 14808954 failed at 24-JAN-2012 04:13:09 with the error message:
    One or more post-processing actions failed. Consult the OPP service log for details.
    ------------- 2) PRINT   -------------
    Not printing the output of this request because post-processing failed.
    After analysing the log i found there is some issue in OPP Service log.
    Below is the service log error..
    It says there is 'No corresponding LOB data found' in below query
    SELECT l.file_data file_data, DBMS_LOB.getlength (l.file_data) file_length,
    l.LANGUAGE LANGUAGE, l.territory territory,
    b.default_language default_language,
    b.default_territory default_territory,
    b.template_type_code template_type_code,
    b.use_alias_table use_alias_table, b.start_date start_date,
    b.end_date end_date, b.template_status template_status,
    b.use_alias_table use_alias_table,
    b.ds_app_short_name ds_app_short_name,
    b.data_source_code data_source_code, l.lob_type lob_type
    FROM xdo_lobs l, xdo_templates_b b
    WHERE l.application_short_name = :1
    AND l.lob_code = :2
    AND l.application_short_name = b.application_short_name
    AND l.lob_code = b.template_code
    AND (l.lob_type = 'TEMPLATE' OR l.lob_type = 'MLS_TEMPLATE')
    AND ( (l.LANGUAGE = :3 AND l.territory = :4)
    OR (l.LANGUAGE = :5 AND l.territory = :6)
    OR ( l.LANGUAGE = b.default_language
    AND l.territory = b.default_territory
    But i see the data for this query.
    Please let us know is there any setups that needs to be done to achieve this..
    below is the OPP log error...
    Thanks in Advance.
    [1/24/12 4:13:09 AM] [710131:RT14808954] Executing post-processing actions for request 14808954.
    [1/24/12 4:13:09 AM] [710131:RT14808954] Starting XML Publisher post-processing action.
    [1/24/12 4:13:09 AM] [710131:RT14808954]
    Template code: EMP_DETAILS
    Template app: EMP_DETAILS
    Language: en
    Territory: US
    Output type: EXCEL
    [1/24/12 4:13:09 AM] [UNEXPECTED] [710131:RT14808954] java.sql.SQLException: No corresponding LOB data found :SELECT L.FILE_DATA FILE_DATA,DBMS_LOB.GETLENGTH(L.FILE_DATA) FILE_LENGTH, L.LANGUAGE LANGUAGE, L.TERRITORY TERRITORY, B.DEFAULT_LANGUAGE DEFAULT_LANGUAGE, B.DEFAULT_TERRITORY DEFAULT_TERRITORY,B.TEMPLATE_TYPE_CODE TEMPLATE_TYPE_CODE, B.USE_ALIAS_TABLE USE_ALIAS_TABLE, B.START_DATE START_DATE, B.END_DATE END_DATE, B.TEMPLATE_STATUS TEMPLATE_STATUS, B.USE_ALIAS_TABLE USE_ALIAS_TABLE, B.DS_APP_SHORT_NAME DS_APP_SHORT_NAME, B.DATA_SOURCE_CODE DATA_SOURCE_CODE, L.LOB_TYPE LOB_TYPE FROM XDO_LOBS L, XDO_TEMPLATES_B B WHERE L.APPLICATION_SHORT_NAME= :1 AND L.LOB_CODE = :2 AND L.APPLICATION_SHORT_NAME = B.APPLICATION_SHORT_NAME AND L.LOB_CODE = B.TEMPLATE_CODE AND (L.LOB_TYPE = 'TEMPLATE' OR L.LOB_TYPE = 'MLS_TEMPLATE') AND ( (L.LANGUAGE = :3 AND L.TERRITORY = :4) OR (L.LANGUAGE = :5 AND L.TERRITORY = :6) OR (L.LANGUAGE= B.DEFAULT_LANGUAGE AND L.TERRITORY= B.DEFAULT_TERRITORY ))
         at oracle.apps.xdo.oa.schema.server.TemplateInputStream.initStream(TemplateInputStream.java:402)
         at oracle.apps.xdo.oa.schema.server.TemplateInputStream.<init>(TemplateInputStream.java:235)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.getTemplateFile(TemplateHelper.java:1163)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3450)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3547)
         at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:290)
         at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:157)

  • Table Header in freezed pane when exporting SSRS report to Excel

    Hi,
    I want table Header in freezed pane when exporting SSRS report to Excel.
    Can I have the table header of tablix be present in freezed pane of excel.
    Thanks,
    Vivek Singh

    Hi Vivek,
    Please refer the following thread.
    may be u get the answer.
    How to freeze header pane in SSRS
    Regards
    msbilearning

  • Mangal Fonts and Tunga Fonts in (MS Home and Student 2010) Word 2010 not getting converted into PDF

    Why do I get a totally blank PDF file whenever I try to convert any (Microsoft Office Home and Student 2010, Version: 14.0.6029.1000) Word document file containing either Mangal Fonts (Hindi) and Tunga Fonts (Kannada) into a PDF file (by using Adobe Acrobat X Standard - English, Version: 10.1.4, Program File Size: 1790 MB, Complete/Full Version) after formatting and reinstalling all the necessary software / softwares (Microsoft Windows XP, Home Edition, Version 2002, Service Pack 3 and Windows XP Service Pack 3, Version: 20080414-031525, Program File Size: 9.08 MB)?
    I'm using
    01) Microsoft Windows XP, Home Edition, Version 2002, Service Pack 3
    02) Computer: Intel(R) Pentium(R) 4 CPU 3.00 GHz 3.00 GHz, 504 MB of RAM
    03) Windows XP Service Pack 3, Version: 20080414-031525, Program File Size: 9.08 MB
    04) Microsoft Office Home and Student 2010, Version: 14.0.6029.1000, Product ID: 82503-388-0792296-26607, Program File Size: 490 MB
    05) Adobe Acrobat X Standard - English, Version: 10.1.4, Program File Size: 1790.00 MB, Complete/Full/All Version/Features has/have been installed
    06) Windows Internet Explorer 8, Version: 20090308.140743, Program File Size: 4.20 MB
    Any Word 2010 document file that has been converted into any PDF File unfortunately does not show either the Mangal (Hindi) Fonts or the Tunga (Kannada) Fonts.
    The PDF file will unfortunately become/remain totally/fully/completely blank.
    When I convert an Excel Workbook having the Tunga Fonts (Kannada) to/into a PDF File, some of the Tunga fonts in the PDF file are legible and some are unfortunately illegible (get superimposed / overwritten on each other).
    Perhaps I may get the same result if I try to convert an Excel Workbook having the Mangal Fonts (Hindi) to/into a PDF File with some Mangal fonts being/becoming legible and the rest being/becoming illegible (getting superimposed / overwritten on each other).
    Tanveer
    Syed Tanveeruddin, Karnataka, India
    Message was edited by: tanveerindian
    Message was edited by: tanveerindian
    Message was edited by: tanveerindian

    My chronological sequence of steps to create a Word 2010 Document or an Excel 2010 Workbook:
    I first create a Word Document File or an Excel Workbook File and save it by giving an appropriate file name.
    Then I right click on the closed Word Document File or the Excel Workbook File in the file folder and convert it into a PDF by retaining the same/original file name.
    The font list of Microsoft Word 2010 claims/says/states that both Mangal and Tunga are True Type fonts and also that these fonts will/would be used on both printer and screen.
    In case if there is any text content in English in the beginning it will get converted into PDF only till/until either a Mangal(Hindi)/Tunga(Kannada) Font starts.
    The remaining English text content does not get converted into/to PDF the moment a Mangal(Hindi)/Tunga(Kannada) Font starts. If the entire matter is purely (100 per cent) in English text it will fully / completely / totally get converted into a PDF file without any problem.
    Message was edited by: tanveerindian

  • How do I get the converted PDF file to look the same in Word as it did in PDF?

    How do I get the converted PDF file to look the same in Word as it did in PDF?

    uscmagz wrote:
    > I took the High Speed Data Reader.VI and added the Write to
    > SpreadSheet.VI. Shouldn't that be able to write the converted data to
    > file? What am I overlooking here. I am attaching a screenshot!
    Watch out with Excel. As you use the High Speed Recorder to create the
    original file you will most probably create quite large files quite
    fast. Translating that into an ASCII spreadsheet would work fine in
    LabVIEW but Excel has a limitation that it can't open spreadsheet files
    above a certain number of rows. I do believe this is around 64k rows but
    it does a little vary depending on the number of columns you have.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Will I be able to transfer files of DOC , PDF, excel and PPT from PC to I-pad Air?

    I have recently purchased I-pad Air. I want to transfer DOC, PDF, EXCEL and PPT files for PC to I-Pad and vice-versa. Will I-tune 10 do the job abd please let me know the steps tp be followed.

    I think that you need iTunes 11.
    You can copy word, excel, powerpoint and/or PDF documents to the iPad, but first you need one or more apps on the iPad that support those document types - unlike a 'normal' computer the iPad doesn't have a file system, and everything on it has to be associated with an app.
    The options include Apple's Pages app for Word documents, Numbers for Excel spreadsheets and Keynote for Powerpoint. And from third-parties apps such as Documents To Go ('premium' version) and QuickOffice. Microsoft have also released apps, but unless you subscribe to Office 365 you will only get read-only e.g MS Word For iPad.
    For PDFs there are free apps such as Apple's iBooks app and also Adobe Reader - and paid-for apps such as GoodReader (which also supports read-only of word and excel documents).
    As to how you then get the file to your chosen app will depend upon what the app supports - different apps will have different ways of copying their content to/from a computer e.g. via the file sharing section at the bottom of the device's apps tab when connected to iTunes, via your wifi network, email, dropbox etc. For Apple's Pages, Numbers and Keynote : copying documents via iTunes.

  • Tracking placed files (jpeg,tiff,word,PDF,excel)

    It was recommended to ask this here vs bridge - not much luck in bridge. The situation: i have multiple sources sending a variety of files (jpeg,tiff,word,PDF,and excel). As the book is designed many of them will be placed. As long as the sources update with the same name im good. However, they will inevitably send me batches of files containing new files - how can I track what has been placed and what hasn't. I will have multiple folders to organize the chaos. One thing bridge helped with: keyword. I can quite easily assign a placed keyword in bridge, filter using that word and im done. Except for word and excel - metadata doesn't take. Someone explained this to me.
    The sources are out of country, so i have to track this. Bridge takes care of 90%. Perhaps someone has dealt with this. Again, if someone adds a new photo without calling it out, keyword work. Its the Microsoft documents that get tricky. In advance, i appreciate our time.

    Start by creating an Item type of OLE container. Set the following properties:
    - OLE Tenant Types: Embedded
    - Database Item: Yes
    Make that item the last item in the block.
    Create a push button such as 'Insert Document' with similar code:
    DECLARE
      vcFile VARCHAR2(1024);
    BEGIN 
      vcFile := win_api_dialog.Open_File('Select Document File to Insert',NULL,'MS-Word files (*.doc)|*.doc|'||
         'PDF files (*.pdf)|*.pdf|Excel Files (*.xls)|*.xls|Outlook message files (*.msg)|*.msg|All files (*.*)|*.*|',
         TRUE,win_api.OFN_FLAG_DEFAULT,TRUE);
      go_block('<block name>');
      last_record;
      Create_Record;
      initialize_container('<oleitemname>',vcFile);
    EXCEPTION
      WHEN NO_DATA_FOUND Then
         Null;
    END;

  • Download the OA Graph to PDF/Excel

    Hi all,
    We have a graph report, in which we have Clustered Bar Graphs. We know that the graph generated is a BMP , but still we have a strange requirement asking whether we can download the graph to PDF/Excel.
    Any Suggestions ?! (I know its wierd, when we can right click and save the bmp, but just curious to know about any alternatives)
    Thanks and Regards,
    Senthil

    No support as such in OAGraph.
    you may want to write a tool of your own or i think you may get one on the net to save the page as a mht and then transform it to a PDF.
    Thanks
    Tapash

  • Oracle Reports 6i -- Image embeded, formatting PDF, Excel

    I am using Oracle Reports 6i on Windows 2000. I run the reports from a Java application, using the RWServlet, passing in the URL all the parameters needed.
    Now I need to run from my application oracle reports created by somebody else. Initially those reports were run from a client/server application in the client's Report Runtime environment. And I need at my turn to create others with the same look and feel.
    The existent reports do not appear to use any template.
    I was going through the Oracle Reports documentation, but I still have to clarify some things.
    Here there are my questions:
    1.- The company logo image
    I found in the Layout Model/Main Section/Margin an image object, but I looked in the Property Palette and there is no path to the image, just under Boilerplate there is a object of Type Image.
    How does the report know what to embed in the report's header?
    2.- Printing reports in different formats: i.e. PDF
    When the reports are run in the client/server Report Runtime environment, the user can print the report in different formats including PDF, Delimited, XML, etc.
    Is there a way to print the report in PDF or any other format from my web application that uses the RWServlet?
    3.- Report appearance in the browser
    Run in the browser the report loses formatting as opposed to client/server.
    Is there a way to make the report look good through some sort of general configuration, or should I fix each element that doesn't look god in Live Previewer, or somewhat else?
    4.- Report in Excel
    Is it possible to save the report to an Excel file or to generate it in Excel from Oracle Reports?
    Thanks in advance,
    Paul

    Whew...lot's of questions...let's see if I can help (at least a little)...
    1. Quite possibly, the user is/was pulling the image from the database? I do this in my environment, so it might be worth a look.
    2. You should be able to print in any format from the web. You may need to adjust your destype/desname/desname parameters.
    3. Only thing I can think of here is that maybe the original report was not written using a standard web-friendly font?
    4. There's a couple of ways you can get data into an excel file:
    A. Use DDE and poke the data right into it (messy when you need to print the regular Oracle report too).
    B. Add an option to print to file and set the desformat to DELIMITEDDATA. Be sure to go through the data model and set Exclude from XML Output to 'Yes' for fields you don't need. Also, be aware that this may not come out in the same order as they do on the printed report. You can read about this on Metalink.
    Hopefully that helps you a little bit. :)
    Chad

  • I can't get my Dynamic PDF Widget to work in Captivate 7

    Hello all,
    I've been trying to get my Dynamic PDF to work in my Captivate 7 project. I have created a button on the final slide where I want the user to open the PDF, I have named it correctly to correspond with the Dynamic PDF. I have also updated everything within the editor to appear how I would like it to appear. I have also tried viewing it in various formats such as Published, In a Browser etc. and nothing appears to work for me.
    What am I doing wrong?
    Thanks in advance!
    Peter

    Hi Peter,
    Please make sure that the pdf is also saved in the same published folder .
    Also test the behavior in other browsers as well like Chrome and Firefox .
    If you still face this issue then try to add the published output in trusted location of Flash.
    http://helpx.adobe.com/captivate/kb/hyperlinks-do-captivate-6.html
    Thanks

  • Getting a report in excel format from oracle report builder 10gDS release2

    I want to get a report in excel format from oracle report builder 10gDS release2.
    Is there ne method by which minimum effort is required for changing already made reports .
    I have searched for it on internet :-
    http://www.oracle.com/webapps/online-help/reports/10.1.2/state/content/navId.3/navSetId._/vtTopicFile.htmlhelp_rwbuild_hs%7Crwwhthow%7Cwhatare%7Coutput%7Coutput_a_simpleexcel~htm/
    Example, given in the last of the page opened from the above url, is not working.
    Can neone plz explain the example and how to use it
    Thanks & Regards
    JD

    Ok, for the release 2 its quite straightfoward, in your calling form you would have something like this code:
    declare
         pl_id ParamList;
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    v_rep_status VARCHAR2(20);
    v_repsrv     VARCHAR2(100):= 'yourreportserver';
    v_serv varchar2(50) := 'yourservername' ;
    begin
    pl_id := Get_Parameter_List('tmpdata');
    if not id_null(pl_id) then
    Destroy_Parameter_List( pl_id );
    end if;
    pl_id := Create_Parameter_List('tmpdata');
    Add_Parameter(pl_id,'DESTYPE' ,TEXT_PARAMETER,'Screen' );
    Add_Parameter(pl_id,'PARAMFORM' ,TEXT_PARAMETER,'NO' );
    repid := FIND_REPORT_OBJECT('yourreport');     SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,RUNTIME);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER, v_repsrv);
    set_report_object_property(repid,REPORT_DESTYPE,CACHE );
    set_report_object_property(repid,REPORT_DESFORMAT,'SPREADSHEET' );
    v_rep := RUN_REPORT_OBJECT(repid,pl_id);
    v_rep := substr(v_rep,length(v_repsrv)+2,10 ) ;
    end;
    I have plenty of reports being formated to excel with this same method so it should work for you, the only diference with my previous code is this line.
    set_report_object_property(repid,REPORT_DESFORMAT,'SPREADSHEET' );
    The rest remains untouched.
    Hope it helps.

Maybe you are looking for

  • Why index is not used by this table

    Dear all, Currently I'm facing problem with tuning one sql statement. It shows that full table scan in ZTLTBC_FILTER cost 15:19. But in table ZTLTBC_FILTER, it have index with field index 1    MANDT INT_NAME FNAME VALUE index 2    MANDT EXEC_ID COUNT

  • Monitor display speed

    Which is faster, HDMI to DVI or Mini Display Port to DVI?

  • "Good programming practice" question about writing classes

    I am taking a java class this year and my teacher has taught us to never use global variables in a class (but still private). I find it much easier to explain with a simple example. Say I have a class that looks like this: public class Demo         p

  • DFM doesn't send snmp packet for discovery

    I have a LMS3.2 DFM3.2.0 on Window 2008 After I imported a device into DFM, It's stuck at Questioned State It's shown as *** Data Collector Status Information *** Error Code = Snmp Timeout Error Message = N/A then I tried capturing packets and redisc

  • How to view each field without blending?

    I am using a GPS time inserter which puts a time stamp on each field (2 fields = 1 frame). Using iMovie 5.0 (v94) and the "Highest" quality setting results in each pair of fields being blended. Choosing the "High" quality setting shows only the even-