Running an SSRS 2012 report from C#

Hello
I have created the report in SSRS and it works fine
I would be grateful if someone gives me a step by step procedure / link to Run an SSRS 2012 report from C#.
regards
Manoj Gokhale

see this article
http://www.codeproject.com/Articles/675762/Call-SSRS-Reports-by-using-Csharp
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page

Similar Messages

  • Greater than Equal to Functionality when retirivng data from SSAS 2008 cube using SSRS 2012 report not working

    I have an SSRS 2012 report and SSAS Cube in 2008. My report criterion requires filtering on measures. So Created measures as dimensions . The report requires >= functionality on the measures. But in the Query designer of 
    the report there is =, IN, Within Range ,Excluding range , MDX as the operators.
    To achieve my goal. I have “From” and “To” as parameters on the numeric dimension. The “To” parameter I have set as internal and setting
     the default value of  “TO” .By writing another Dataset query that returns the “MAX” 
    value and the MAX value returned is a member of the measure converted to dim I confirmed.. So this whole works as >=.The user enters only the “FROM” parameter and the “TO” is set internally. The user can enter any value in the “From” parameter. Any
    value that is not even a member.It is a textbox. I cannot use a list of values from the “From” parameter.
    But whenever I run the report after entering all the selection criteria
     I keep getting
    Error “the restrictions imposed by the constrained flag in the strtomember functions were violated”
    I know this means that Max value in the “TO” section is not a member .
    I did try
    : StrToMember("[Fact RCS CV BLAST].[APPRLIMIT ACH].
    &[" & @ToFactRCSCVBLASTAPPRLIMITACH &
    "]", CONSTRAINED) )
     But I get “syntax for the “&” is incorrect”
    If I use Drop down for the “From” and “To” parameters then it works fine. But that’s not what Business Users need.
    Please let me know what the options to make this work. I did use parameters that filter the
     Dataset returned it works fine but there is a performance impact.

    Hi,
    I think if you use the following method you will be able to compare the members.
    CDbl(StrToMember("[Fact RCS CV BLAST].[APPRLIMIT ACH].&[" + @ToFactRCSCVBLASTAPPRLIMITACH + "]").Member_Name)
    As you mentioned that you converted your measures as dimensions, you are having an integer value as the member name. In that case use VBA functions with MDX to do the datatype conversion.
    Take a look into the following MDX written against Adventure Works;
    WITH CALCULATED MEMBER [Measures].[Member Name] AS
    CInt
    Right
    CStr
    [Date].[Calendar Year].CURRENTMEMBER.MEMBER_NAME
    ), 4
    SELECT {[Measures].[Sales Amount], [Measures].[Member Name]} ON COLUMNS,
    FILTER
    [Date].[Calendar Year].[Calendar Year].MEMBERS,
    CInt(Right(CStr([Date].[Calendar Year].CURRENTMEMBER.MEMBER_NAME), 4)) >= 2005 AND
    CInt(Right(CStr([Date].[Calendar Year].CURRENTMEMBER.MEMBER_NAME), 4)) <=2008
    } ON ROWS
    FROM [Adventure Works]
    I am filtering the Years by using the member names by extracting the Integer portion of the member name and applying data type conversion functions in VBA. So I 
    Keep in mind that you have to get rid of the CONSTRAINED clause if your business users can enter anything on the SSRS text box. 

  • Error while running SSRS 2012 report integrated with SharePoint 2013

    Hi,
    Our reporting services environment has SSRS 2012 integrated with SharePoint 2013. The SharePoint 2013 farm has 2 web front ends, 1 app server and a separate server for reporting services i.e SSRS 2012 .
    We have created a https web application in SharePoint 2013 and all the SSRS 2012 reports are deployed into a "Report Library" residing in its root site collection.
    The simple reports are running well. But there is a report where we have 3 multi-value parameters. On running this report in IE or Chrome, we get the error "Sys.WebForms.PageRequestManagerParserErrorException: The message received from the
    server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled. Details: Error parsing near ' <!DOCTYPE html PUB'."
    Some of the forums suggested to add the below entry in the web config of the SharePoint web app where the SSRS reports are deployed. We did that too, still the error is appearing. Please can anyone help .
    <appSettings>
    <add key="aspnet:MaxHttpCollectionKeys" value="100000" />
    </appSettings>
    Thanks

    Hi Surendra,
    I have tested on my local environment and the issue can be caused by the session time out ,the time out of the report precessing, database timeout,DataSet query execution timeout and so on.
    I would like to confirm that the refresh you have mentioned is the page refresh or the report reloading?
    Please reference to the setting below to don't limit the timeout values if you got the report reloading:
    Point to a report in the library.
    Click the down arrow, and select Manage processing options.
    In Processing Time-out, select Do not time out report processing or
    Limit report processing in seconds if you want to override that value with no time-out or different time-out values.
    If you got the session timeout that refresh the page, please reference to the setting in below article:
    http://msdn.microsoft.com/en-us/library/gg492284.aspx#bkmk_session_settings_section
    Details information in the article below about the timeout setting for your reference:
    Set Processing Options (Reporting Services in SharePoint Integrated Mode)
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu
    If you have any feedback on our support, please click
    here.
    Vicky Liu
    TechNet Community Support

  • How to deploy a SSRS 2012 report to IIS 8

    Hi SQL gurus.
    I wrote a simple SSRS 2012 report and saved it in d:\A_report\.  I installed, accepting default configurations, IIS8.  I used Reporting Services Config Mgr to configure report manager.  Web Service URL is
    http://testreport:80/Reports.  Database is ReportDb.  Report Manager is
    http://testreport:80/testreports.  I can see internet information services web page when I browsed it thru IIS manager.  Can someone please guide what are the next steps for me to publish my helloreport
    to the web?  or show me the chronological steps that leads me to successfully publish the report?  Do I need to creat a new virtual dir in wwwroot and start to save new reports to new virtual dir? are there anyother missing components/parts
    of services I had missed?  I want to learn but there are so many sources I read but each showed differenlty from others & I am confused.  I dont need Sharepoint.  For now, all I have is MS SQL 2012, MS SSRS 2012 & IIS8.   Thanks
    in advance.

    SSRS reports are no longer hosted in IIS, that changed after the 2005 version.
    Your web service URL should be http://testreport:80/ReportServer
    it should be a different URL to your Report manager URL (at the moment for some reason you have them both the same?)
    Then you can set up your config to point to your web service URL and deploy through visual studio
    http://msdn.microsoft.com/en-us/library/ms159270(v=sql.110).aspx

  • SSRS 2012 report integrated with SharePoint 2013 issue :Report refreshing after some idle time

    we have SSRS 2012 report integrated with SharePoint 2013  , when we click on any toggle item after some idle time of 60 secs and try again to expand
    another toggle item then  complete report is getting refreshed and  if we are in child report it is redirecting to parent report. . we didn’t set any refreshing property at report level. I hope there will be some idle time setting at sharepoint site
    level.
    what we observed.
    1. there is no problem when we expand toggle items without any idle time.
    2. when we open the report and expand few toggles and keep idle for 60 seconds and try
    again to expand another toggle item then  complete report is getting refreshed (all toggle items are collapsing).
    3. If you keep idle for 60 minutes and if you didn’t do any action like expanding toggle
    items it is not refreshing.
    why it is happening and how to stop that complete refresh.
    Surendra Thota

    Hi Surendra,
    I have tested on my local environment and the issue can be caused by the session time out ,the time out of the report precessing, database timeout,DataSet query execution timeout and so on.
    I would like to confirm that the refresh you have mentioned is the page refresh or the report reloading?
    Please reference to the setting below to don't limit the timeout values if you got the report reloading:
    Point to a report in the library.
    Click the down arrow, and select Manage processing options.
    In Processing Time-out, select Do not time out report processing or
    Limit report processing in seconds if you want to override that value with no time-out or different time-out values.
    If you got the session timeout that refresh the page, please reference to the setting in below article:
    http://msdn.microsoft.com/en-us/library/gg492284.aspx#bkmk_session_settings_section
    Details information in the article below about the timeout setting for your reference:
    Set Processing Options (Reporting Services in SharePoint Integrated Mode)
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu
    If you have any feedback on our support, please click
    here.
    Vicky Liu
    TechNet Community Support

  • Can we run SYSAUD and DDDAUD reports from AppDesigner? If yes, how to?

    Can we run SYSAUD and DDDAUD reports from AppDesigner? If yes, how to?

    No, you cannot run any program from AppDesigner. This is a development tool.
    However, without the front end application, you could be able to run programs through the commands lines (PSSQR/PSAE...)
    Nicolas.

  • SSRS 2012 report not loading in Safari

    Hello,
    I have created SSRS Reports and they are working fine in all browsers except Safari.
    I have tried so many different things by applying CSS and JS to make Overflow property to Visible of div mentioned in this forum.
    http://stackoverflow.com/questions/5968082/ssrs-2008-r2-ssrs-2012-reports-are-blank-in-safari-and-chrome
    I am not sure now how to proceed further.
    I have added report in iframe and deployed to SharePoint.
    Can anyone please guide on this?
    Thank you,
    Mittal.

    Hi MittalPatel,
    In Reporting Services SQL Server 2012. Not all browsers support all report functionality.
    In the article below you can find that Safari is not supported in sharepoint mode.
    Planning for Reporting Services and Power View Browser Support (Reporting Services 2012)
    Although as
    Suhas Kudekar mentioned that we can add some script to  the configuration file to enable the visibility manually, but this also have some limitation.
    Only the machine which you have installed the reporting service instance that you can find the path of the configuration file to add the code the Safari browser will work fine, so the other machine which don't located the configuration file will still not
    support the render of the report.
    So, I recommended you to choose other browser which supported to view the report.
    Thanks for your understanding.
    Regards,
    Vicky Liu
    If you have any feedback on our support, please click
    here.
    Vicky Liu
    TechNet Community Support

  • SSRS 2012 Reports freeze after first run in IE 11

    Hello,
    We have just recently upgraded/migrated from SSRS 2008R2 to SSRS 2012 sp2 (Windows 2012 R1). 
    We have found one report so far when using IE 11 that after the first run from the client side Internet Explorer freezes.  The report normally takes 4-5 seconds to run.  I have waited an hour and the report has not resolved.
    The same report runs fine in Firefox or Chrome, even after multiple runs.  It also continues to run fine from our SSRS 2008R2 server from IE 11.
    I have tried private browsing and it still only runs once and will not run again.  I have tried compatability mode and it will not run either.  I have also noted that it will crash our ERP system (java based) when it is running at the same time
    in IE as when I run this report.  Other reports seem to work fine.
    The report is simple, it is just a report of subscriptions from ReportServer.  There is some XML parsing in there though.  It is the only difference that I can see in all the other reports on the system.  Oh, the report runs fine from
    Visual Studio 2012.  I have redeployed, and no luck yet.
    Here is my query
    WITH [EMAIL]([SubscriptionID], [EmailLine]) AS
     SELECT  I.[SubscriptionID],
             I1.rows.value('Value [1]', 'VARCHAR(MAX)') AS [EmailLine]
     FROM    (
              --if the Subscription is an e-mail, get the XML fragment which contains the Email line
              SELECT  S.[SubscriptionID],
                      --add a "root" element to create well-formed XML to the "ExtensionSettings"
                      --(in case it's NULL)
                      CONVERT(XML, N'<Root>' + CONVERT(NVARCHAR(MAX), S.[ExtensionSettings]) + N'</Root>') AS [ExtensionSettings]
              FROM    ReportServer.dbo.[Subscriptions] S WITH (NOLOCK)
              WHERE   --only get e-mail subscriptions
                      S.[DeliveryExtension] = 'Report Server Email'
             ) I CROSS APPLY
                 --pull out elements in the "ParameterValues/ParameterValue" hierarchy
                 I.ExtensionSettings.nodes('/Root/ParameterValues/ParameterValue') AS I1(rows)
     WHERE   --only get the Subject field
             --I1.rows.value('Name [1]', 'VARCHAR(100)') = 'Subject'
             I1.rows.value('Name [1]', 'VARCHAR(100)') IN ('TO', 'BCC','CC')
    --get subscription data for all users
    SELECT   replace([EMAIL].[EmailLine], '@plu.edu','') email_line,
            --internally put-together description of subscription
    --        S.[Description],
            --user-friendly message for what happened the last time the subscription ran
            --which may be "New Subscription"
            --report path and name
            C.[Path], C.[Name],
            --start date and end date for schedule
            SC.[StartDate], SC.[EndDate],
            --when the subscription was modified
            S.[ModifiedDate]
    FROM    --actual subscriptions
            ReportServer.dbo.[Subscriptions] S WITH (NOLOCK) LEFT OUTER JOIN
                --report details from Catalog
                ReportServer.dbo.[Catalog] C WITH (NOLOCK) ON
                    S.[Report_OID] = C.[ItemID] LEFT OUTER JOIN
                --Users (owner)
                ReportServer.dbo.[Users] [U1] WITH (NOLOCK) ON
                    S.[OwnerID] = [U1].[UserID] LEFT OUTER JOIN
                --Users (modified by)
                ReportServer.dbo.[Users] [U2] WITH (NOLOCK) ON
                    S.[ModifiedByID] = [U2].[UserID] LEFT OUTER JOIN
                --Subscription Schedules
                ReportServer.dbo.[ReportSchedule] RS WITH (NOLOCK) ON
                    S.[SubscriptionID] = RS.[SubscriptionID] LEFT OUTER JOIN
                --Schedules
                ReportServer.dbo.[Schedule] SC WITH (NOLOCK) ON
                    RS.[ScheduleID] = SC.[ScheduleID] LEFT OUTER JOIN
                --Subjects CTE from e-mail subscriptions
                [EMAIL] ON
                    S.[SubscriptionID] = [EMAIL].[SubscriptionID]
    WHERE EmailLine is not null
    and EmailLine like '%' + @Email + '%'
    and C.[Path] like '%' + @Path + '%'
    order by C.[Path]
    The other observation that I have is that my CPU utilization goes up from 25% to over 50% when I kick this off.  So, it is definitely getting confused about something...
    Thank you for your feedback,
    Chris

    Brad,
    I am not sure how to attach the rdl, so here it is inline. 
    The one thing that is strange is that my test SSRS 2012 SP2 server (Windows 2008R2) the report works.  However, their is a difference in the OS.  The production server is Windows 2012 
    The report works in Visual Studio, it works in Firefox, it works in Chrome.  Just not in SSRS 2012 SP2 on Windows 2012.
    Thanks
    <?xml version="1.0" encoding="utf-8"?>
    <Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
    <Body>
    <ReportItems>
    <Tablix Name="table1">
    <TablixBody>
    <TablixColumns>
    <TablixColumn>
    <Width>4.125in</Width>
    </TablixColumn>
    <TablixColumn>
    <Width>2.75in</Width>
    </TablixColumn>
    <TablixColumn>
    <Width>2.625in</Width>
    </TablixColumn>
    <TablixColumn>
    <Width>0.83333in</Width>
    </TablixColumn>
    <TablixColumn>
    <Width>0.83333in</Width>
    </TablixColumn>
    <TablixColumn>
    <Width>0.83333in</Width>
    </TablixColumn>
    </TablixColumns>
    <TablixRows>
    <TablixRow>
    <Height>0.18in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="textbox1">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Email Addresses</Value>
    <Style>
    <FontSize>8pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <TextDecoration>Underline</TextDecoration>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox1</rd:DefaultName>
    <ZIndex>11</ZIndex>
    <Style>
    <BottomBorder>
    <Color>Black</Color>
    <Style>Solid</Style>
    <Width>1pt</Width>
    </BottomBorder>
    <BackgroundColor>White</BackgroundColor>
    <VerticalAlign>Bottom</VerticalAlign>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="textbox2">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Path</Value>
    <Style>
    <FontSize>8pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <TextDecoration>Underline</TextDecoration>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox2</rd:DefaultName>
    <ZIndex>10</ZIndex>
    <Style>
    <BottomBorder>
    <Color>Black</Color>
    <Style>Solid</Style>
    <Width>1pt</Width>
    </BottomBorder>
    <BackgroundColor>White</BackgroundColor>
    <VerticalAlign>Bottom</VerticalAlign>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="textbox3">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Name</Value>
    <Style>
    <FontSize>8pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <TextDecoration>Underline</TextDecoration>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox3</rd:DefaultName>
    <ZIndex>9</ZIndex>
    <Style>
    <BottomBorder>
    <Color>Black</Color>
    <Style>Solid</Style>
    <Width>1pt</Width>
    </BottomBorder>
    <BackgroundColor>White</BackgroundColor>
    <VerticalAlign>Bottom</VerticalAlign>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="textbox4">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Start Date</Value>
    <Style>
    <FontSize>8pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <TextDecoration>Underline</TextDecoration>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Center</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox4</rd:DefaultName>
    <ZIndex>8</ZIndex>
    <Style>
    <BottomBorder>
    <Color>Black</Color>
    <Style>Solid</Style>
    <Width>1pt</Width>
    </BottomBorder>
    <BackgroundColor>White</BackgroundColor>
    <VerticalAlign>Bottom</VerticalAlign>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="textbox10">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>End Date</Value>
    <Style>
    <FontSize>8pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <TextDecoration>Underline</TextDecoration>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Center</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox10</rd:DefaultName>
    <ZIndex>7</ZIndex>
    <Style>
    <BottomBorder>
    <Color>Black</Color>
    <Style>Solid</Style>
    <Width>1pt</Width>
    </BottomBorder>
    <BackgroundColor>White</BackgroundColor>
    <VerticalAlign>Bottom</VerticalAlign>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="textbox13">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Modified Date</Value>
    <Style>
    <FontSize>8pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <TextDecoration>Underline</TextDecoration>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Center</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox13</rd:DefaultName>
    <ZIndex>6</ZIndex>
    <Style>
    <BottomBorder>
    <Color>Black</Color>
    <Style>Solid</Style>
    <Width>1pt</Width>
    </BottomBorder>
    <BackgroundColor>White</BackgroundColor>
    <VerticalAlign>Bottom</VerticalAlign>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    </TablixCells>
    </TablixRow>
    <TablixRow>
    <Height>0.18in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="email_line">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!email_line.Value</Value>
    <Style>
    <FontSize>8pt</FontSize>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>email_line</rd:DefaultName>
    <ZIndex>5</ZIndex>
    <Style>
    <TopBorder>
    <Color>Black</Color>
    <Style>Solid</Style>
    <Width>1pt</Width>
    </TopBorder>
    <BottomBorder>
    <Color>Black</Color>
    <Style>Solid</Style>
    <Width>1pt</Width>
    </BottomBorder>
    <LeftBorder>
    <Color>Black</Color>
    <Style>Solid</Style>
    <Width>1pt</Width>
    </LeftBorder>
    <RightBorder>
    <Color>Black</Color>
    <Style>Solid</Style>
    <Width>1pt</Width>
    </RightBorder>
    <VerticalAlign>Bottom</VerticalAlign>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="Path">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!Path.Value</Value>
    <Style>
    <FontSize>8pt</FontSize>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Path</rd:DefaultName>
    <ZIndex>4</ZIndex>
    <Style>
    <TopBorder>
    <Color>Black</Color>
    <Style>Solid</Style>
    <Width>1pt</Width>
    </TopBorder>
    <BottomBorder>
    <Color>Black</Color>
    <Style>Solid</Style>
    <Width>1pt</Width>
    </BottomBorder>
    <LeftBorder>
    <Color>Black</Color>
    <Style>Solid</Style>
    <Width>1pt</Width>
    </LeftBorder>
    <RightBorder>
    <Color>Black</Color>
    <Style>Solid</Style>
    <Width>1pt</Width>
    </RightBorder>
    <VerticalAlign>Bottom</VerticalAlign>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="Name">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!Name.Value</Value>
    <Style>
    <FontSize>8pt</FontSize>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Name</rd:DefaultName>
    <ZIndex>3</ZIndex>
    <Style>
    <TopBorder>
    <Color>Black</Color>
    <Style>Solid</Style>
    <Width>1pt</Width>
    </TopBorder>
    <BottomBorder>
    <Color>Black</Color>
    <Style>Solid</Style>
    <Width>1pt</Width>
    </BottomBorder>
    <LeftBorder>
    <Color>Black</Color>
    <Style>Solid</Style>
    <Width>1pt</Width>
    </LeftBorder>
    <RightBorder>
    <Color>Black</Color>
    <Style>Solid</Style>
    <Width>1pt</Width>
    </RightBorder>
    <VerticalAlign>Bottom</VerticalAlign>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="StartDate">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!StartDate.Value</Value>
    <Style>
    <FontSize>8pt</FontSize>
    <Format>d</Format>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Center</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>StartDate</rd:DefaultName>
    <ZIndex>2</ZIndex>
    <Style>
    <TopBorder>
    <Color>Black</Color>
    <Style>Solid</Style>
    <Width>1pt</Width>
    </TopBorder>
    <BottomBorder>
    <Color>Black</Color>
    <Style>Solid</Style>
    <Width>1pt</Width>
    </BottomBorder>
    <LeftBorder>
    <Color>Black</Color>
    <Style>Solid</Style>
    <Width>1pt</Width>
    </LeftBorder>
    <RightBorder>
    <Color>Black</Color>
    <Style>Solid</Style>
    <Width>1pt</Width>
    </RightBorder>
    <VerticalAlign>Bottom</VerticalAlign>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="EndDate">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!EndDate.Value</Value>
    <Style>
    <FontSize>8pt</FontSize>
    <Format>d</Format>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Center</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>EndDate</rd:DefaultName>
    <ZIndex>1</ZIndex>
    <Style>
    <TopBorder>
    <Color>Black</Color>
    <Style>Solid</Style>
    <Width>1pt</Width>
    </TopBorder>
    <BottomBorder>
    <Color>Black</Color>
    <Style>Solid</Style>
    <Width>1pt</Width>
    </BottomBorder>
    <LeftBorder>
    <Color>Black</Color>
    <Style>Solid</Style>
    <Width>1pt</Width>
    </LeftBorder>
    <RightBorder>
    <Color>Black</Color>
    <Style>Solid</Style>
    <Width>1pt</Width>
    </RightBorder>
    <VerticalAlign>Bottom</VerticalAlign>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="ModifiedDate">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!ModifiedDate.Value</Value>
    <Style>
    <FontSize>8pt</FontSize>
    <Format>d</Format>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Center</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>ModifiedDate</rd:DefaultName>
    <Style>
    <TopBorder>
    <Color>Black</Color>
    <Style>Solid</Style>
    <Width>1pt</Width>
    </TopBorder>
    <BottomBorder>
    <Color>Black</Color>
    <Style>Solid</Style>
    <Width>1pt</Width>
    </BottomBorder>
    <LeftBorder>
    <Color>Black</Color>
    <Style>Solid</Style>
    <Width>1pt</Width>
    </LeftBorder>
    <RightBorder>
    <Color>Black</Color>
    <Style>Solid</Style>
    <Width>1pt</Width>
    </RightBorder>
    <VerticalAlign>Bottom</VerticalAlign>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    </TablixCells>
    </TablixRow>
    </TablixRows>
    </TablixBody>
    <TablixColumnHierarchy>
    <TablixMembers>
    <TablixMember />
    <TablixMember />
    <TablixMember />
    <TablixMember />
    <TablixMember />
    <TablixMember />
    </TablixMembers>
    </TablixColumnHierarchy>
    <TablixRowHierarchy>
    <TablixMembers>
    <TablixMember>
    <FixedData>true</FixedData>
    <KeepWithGroup>After</KeepWithGroup>
    <RepeatOnNewPage>true</RepeatOnNewPage>
    <KeepTogether>true</KeepTogether>
    </TablixMember>
    <TablixMember>
    <Group Name="table1_Details_Group">
    <DataElementName>Detail</DataElementName>
    </Group>
    <TablixMembers>
    <TablixMember />
    </TablixMembers>
    <DataElementName>Detail_Collection</DataElementName>
    <DataElementOutput>Output</DataElementOutput>
    <KeepTogether>true</KeepTogether>
    </TablixMember>
    </TablixMembers>
    </TablixRowHierarchy>
    <DataSetName>email</DataSetName>
    <Height>0.36in</Height>
    <Width>11.99999in</Width>
    <Style />
    </Tablix>
    </ReportItems>
    <Height>0.36in</Height>
    <Style />
    </Body>
    <Width>12in</Width>
    <Page>
    <PageFooter>
    <Height>0.25in</Height>
    <PrintOnFirstPage>true</PrintOnFirstPage>
    <PrintOnLastPage>true</PrintOnLastPage>
    <ReportItems>
    <Textbox Name="textbox8">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Globals!ReportFolder &amp; "/" &amp; Globals!ReportName &amp; "/" &amp; User!UserID</Value>
    <Style>
    <FontSize>8pt</FontSize>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Right</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <Left>8in</Left>
    <Height>0.25in</Height>
    <Width>4in</Width>
    <Style>
    <VerticalAlign>Bottom</VerticalAlign>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </ReportItems>
    <Style />
    </PageFooter>
    <LeftMargin>1in</LeftMargin>
    <RightMargin>1in</RightMargin>
    <TopMargin>1in</TopMargin>
    <BottomMargin>1in</BottomMargin>
    <Style />
    </Page>
    <AutoRefresh>0</AutoRefresh>
    <DataSources>
    <DataSource Name="SQL_ReportServer">
    <DataSourceReference>SQL_ReportServer</DataSourceReference>
    <rd:SecurityType>None</rd:SecurityType>
    <rd:DataSourceID>77e94914-07c8-421a-b785-a126cad0d6ac</rd:DataSourceID>
    </DataSource>
    </DataSources>
    <DataSets>
    <DataSet Name="email">
    <Query>
    <DataSourceName>SQL_ReportServer</DataSourceName>
    <QueryParameters>
    <QueryParameter Name="@Email">
    <Value>=Parameters!Email.Value</Value>
    </QueryParameter>
    <QueryParameter Name="@Path">
    <Value>=Parameters!Path.Value</Value>
    </QueryParameter>
    </QueryParameters>
    <CommandText>WITH [EMAIL]([SubscriptionID], [EmailLine]) AS
    SELECT I.[SubscriptionID],
    I1.rows.value('Value [1]', 'VARCHAR(MAX)') AS [EmailLine]
    FROM (
    --if the Subscription is an e-mail, get the XML fragment which contains the Email line
    SELECT S.[SubscriptionID],
    --add a "root" element to create well-formed XML to the "ExtensionSettings"
    --(in case it's NULL)
    CONVERT(XML, N'&lt;Root&gt;' + CONVERT(NVARCHAR(MAX), S.[ExtensionSettings]) + N'&lt;/Root&gt;') AS [ExtensionSettings]
    FROM ReportServer.dbo.[Subscriptions] S WITH (NOLOCK)
    WHERE --only get e-mail subscriptions
    S.[DeliveryExtension] = 'Report Server Email'
    ) I CROSS APPLY
    --pull out elements in the "ParameterValues/ParameterValue" hierarchy
    I.ExtensionSettings.nodes('/Root/ParameterValues/ParameterValue') AS I1(rows)
    WHERE --only get the Subject field
    --I1.rows.value('Name [1]', 'VARCHAR(100)') = 'Subject'
    I1.rows.value('Name [1]', 'VARCHAR(100)') IN ('TO', 'BCC','CC')
    --get subscription data for all users
    SELECT replace([EMAIL].[EmailLine], '@plu.edu','') email_line,
    --internally put-together description of subscription
    -- S.[Description],
    --user-friendly message for what happened the last time the subscription ran
    --which may be "New Subscription"
    --report path and name
    C.[Path], C.[Name],
    --start date and end date for schedule
    SC.[StartDate], SC.[EndDate],
    --when the subscription was modified
    S.[ModifiedDate]
    FROM --actual subscriptions
    ReportServer.dbo.[Subscriptions] S WITH (NOLOCK) LEFT OUTER JOIN
    --report details from Catalog
    ReportServer.dbo.[Catalog] C WITH (NOLOCK) ON
    S.[Report_OID] = C.[ItemID] LEFT OUTER JOIN
    --Users (owner)
    ReportServer.dbo.[Users] [U1] WITH (NOLOCK) ON
    S.[OwnerID] = [U1].[UserID] LEFT OUTER JOIN
    --Users (modified by)
    ReportServer.dbo.[Users] [U2] WITH (NOLOCK) ON
    S.[ModifiedByID] = [U2].[UserID] LEFT OUTER JOIN
    --Subscription Schedules
    ReportServer.dbo.[ReportSchedule] RS WITH (NOLOCK) ON
    S.[SubscriptionID] = RS.[SubscriptionID] LEFT OUTER JOIN
    --Schedules
    ReportServer.dbo.[Schedule] SC WITH (NOLOCK) ON
    RS.[ScheduleID] = SC.[ScheduleID] LEFT OUTER JOIN
    --Subjects CTE from e-mail subscriptions
    [EMAIL] ON
    S.[SubscriptionID] = [EMAIL].[SubscriptionID]
    WHERE EmailLine is not null
    and EmailLine like '%' + @Email + '%'
    and C.[Path] like '%' + @Path + '%'
    order by C.[Path]</CommandText>
    <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
    </Query>
    <Fields>
    <Field Name="email_line">
    <DataField>email_line</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="Path">
    <DataField>Path</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="Name">
    <DataField>Name</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="StartDate">
    <DataField>StartDate</DataField>
    <rd:TypeName>System.DateTime</rd:TypeName>
    </Field>
    <Field Name="EndDate">
    <DataField>EndDate</DataField>
    <rd:TypeName>System.DateTime</rd:TypeName>
    </Field>
    <Field Name="ModifiedDate">
    <DataField>ModifiedDate</DataField>
    <rd:TypeName>System.DateTime</rd:TypeName>
    </Field>
    </Fields>
    </DataSet>
    </DataSets>
    <ReportParameters>
    <ReportParameter Name="Email">
    <DataType>String</DataType>
    <AllowBlank>true</AllowBlank>
    <Prompt>Email Like (e.g allen):</Prompt>
    </ReportParameter>
    <ReportParameter Name="Path">
    <DataType>String</DataType>
    <DefaultValue>
    <Values>
    <Value>%</Value>
    </Values>
    </DefaultValue>
    <Prompt>Path like (e.g Advancement):</Prompt>
    </ReportParameter>
    <ReportParameter Name="Report_Parameter_2">
    <DataType>Boolean</DataType>
    <AllowBlank>true</AllowBlank>
    <Prompt>Parameter OK?</Prompt>
    </ReportParameter>
    </ReportParameters>
    <Language>en-US</Language>
    <ConsumeContainerWhitespace>true</ConsumeContainerWhitespace>
    <rd:ReportUnitType>Inch</rd:ReportUnitType>
    <rd:ReportID>811078db-33dd-4670-9df4-be748e9ec2ef</rd:ReportID>
    </Report>

  • SSRS 2012: Report Header PrintOnFirstPage-problem after report migration from SSRS 2008

    Hi ,
    I developed my report using VS 2008 IDE and the report header property "PrintOnFirstPage" is set to False.
    The content of the header are some textboxes and lines that should show only on page number > 1.
    This works fine in VS 2008 IDE in preview mode as well as with reports rendered by SSRS 2008 report server.
    Recently I migrate&convert the same report to SSRS 2012 I noticed a different rendering behaviour of my report.
    So in VS 2010 preview mode, the page headers content (textboxe etc.)  is not visible on first page but the headers space did not colapse as it does in VS 2008 IDE preview mode.
    I checked all the report properties but unable to find a solution to my problem.
    I was able to reprduce the same behaviour by creating a new report using VS2010 IDE.
    Any ideas are greatly appreciated
    Thanks
    Bodo

    Hi BodoHH,
    I have tested on my local enviorment and can't reproduce the issue, the issue can be caused by many factors, it can be caused by the properties setting and can also caused by the visual studio, Detais information below for your reference:
    As you mentioned that you have check all the report properties, please also check the tablix,Page Header,report body properties to see if the size are the same with that in the SSRS2008.
    Please open this rdl report in the report builder to see if the print layout is correct, if it works fine, the issue can be caused by the visual studio.
    Please also try to upload the rdl report to report manager to check the layout.
    Please also provide the snaphot of the layout in VS2010 to let us better analysis about the issue.
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    If you have any feedback on our support, please click
    here.
    Vicky Liu
    TechNet Community Support

  • "Unable to find report specified by URL,Please verify that both Server URL and Report URL are correct". Performance Point Dashboard Designer (SP 2013), SSRS 2012 Report.

    Hello Everybody,
    I am using Sharepoint server 2013 , SQL Server 2012 SP1, PerfomancePoint and Reporting Services in SharePoint integrated mode.
    I built one report in SSDTusing an Analysis Services Cube. This report has 3 parameters. So the idea is use Dashboard Designer to use this SSRS Report and connect it with some PP Filters.
    The issue is that I am always obtaining "Unable to find report specified by URL,Please verify that both Server URL and Report URL are correct".
    I have the following settings in the PP Report:
    Server Mode: SharePoint Integrated
    SharePoint Site: http://MySharrepointSite:PortNumber/sites/bicenter
    Document library : Documents (selected from drop down, my report is deployed to document library)
    Report : report.rdl
    When I select the report from drop down list its giving the error in a pop up message box as "Unable
    to find report specified by URL,Please verify that both Server URL and Report URL are correct".
    I have tried to use the most simple report, only with one parameter, but is always displaying the error above.
    When I open the report directly from documents library its working fine and even it is working fine (
    when I deployed the report) but the issue is parameters are not showing.
    Any idea? Please help.
    Thanks in Advance.

    "Unable to connect to the server at CALYSTO\ReportService.
    Hello Tom,
    It should be "ReportServer" in the URL, not "ReportService".
    In "Reporting Service Configuration Manager" look up the correct URL. Open Internet Explorer with right-mouse click => "Run as Administrator" and open the URL, this should work. Navigate to "Side setting" (on top right side),
    go to tab "Security" and add your account with role "System Administrator". Afterwards you should be able to open the URL without running IE as admin.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • How to do Ad-hoc reports with SSRS 2012 (Report Builder 3.0) for the database SQL Server 2012

    <p>Hi,</p><p>Please could anybody help me how to do ad-hoc reports by using SSRS 2012.</p><p>I am able to create ad-hoc reports using Report Builder3.0 and SQL Server 2008 R2. </p><p>I have built the report Model
    in for the instance 2008 R2&nbsp;</p><div class="t-paste-container">Using Report Manager 2012 </div>

    Hi Gowri,
    From your description, you can create create ad-hoc reports using Report Builder 3.0 and SQL Server 2008 R2, and now you want to know how to how to do ad-hoc reports by using SSRS 2012, right? In SQL Server 2012, the default version of Report Builder is
    3.0, so you can create create ad-hoc reports using Report Builder 3.0 as before.
    If you have any questions, please feel free to ask.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Designing the SSRS 2012 report

    I want to design the SSRS 2012 like ,
    Report for Supplier detail transactions, (user can select more that one supplier at a time)
    Every page should contain - (New page for new supplier/new transaction)
    Supplier Name : -                    Bank Name : -
    Transaction Date: -                 Currency : -
    Payment Mode : -                    Pay Date : -
    Detail accounts per transaction  (May be sub report - i will pass supp id and tran id )
    Applied invoices (Sub report - i will pass supp id and tran id )
    (Page Footer)
    Total payment : -
    Total Applied Amount : -
    We can do it in crystal report like show subreport in detail section. Can we do in SSRS ??
    h2007

    Can we design a report like "Payslip" in SSRS 2012
    e.g. if there r 10 wmployees so one employee per page.
    Format will be like,
    --------------Start (this for each employee i.e. on each page)
    Emp No :                                  Join date :
    Emp name:                               designation :
    bitrh date:                                 monthly sal :
    age categoty :                           cheque no :
    Total Payment :
    Total deduction :
    Nett pay :
    Detail payments (this is sub rep)                         Detail deductions (sub rep)
    --------------End
    h2007

  • How to run and email a report from SSIS

    Hi guys
    I need to set up an SSIS package that will run a standard report and email the results.
    I have sorted out the email side of the job, but need to know if/how I can run BPC reports from SSIS.
    Has anyone done anything similar, or have any tips/pointers?
    Thanks
    Craig

    Hi Craig,
    I have never done this, but I doubt this is something possible in a standard way, or if it's feasable, could be very difficult to set up.
    In fact, BPC works over Webservices, and it should probably be possible to use an ActiveX task inside our SSIS package and code something in VB there, referencing some API...
    In any case, why don't you use the Offline Distribution Wizard for that? It's doing exactly what you're expecting.
    Kind Regards,
    Patrick

  • Issue with SSRS Loading Report from Definition From Assembly

    I am using SharePoint 2010. I created web-part where there is report viewer control. On the page load of the control. I am writing below codes to load report from definition. Web part is not giving any error but also not lading report. I tried to make physical
    report file from my stream and I found that report is correct.
    But I don't know what is missing.
    protected void Page_Load(object sender, EventArgs e)
    if (!IsPostBack)
    Assembly assembly = Assembly.Load("Reports, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f51c855eec632536");
    Stream stream = assembly.GetManifestResourceStream("Reports.Reports.rdlc");
    MemoryStream rdl = new MemoryStream();
    CopyTo(stream, rdl);
    rptInspectorPlan.Reset();
    rptInspectorPlan.LocalReport.LoadReportDefinition(rdl);
    rptInspectorPlan.LocalReport.DataSources.Clear();
    rptInspectorPlan.LocalReport.DataSources.Add(new ReportDataSource("MyData", finalData(getInspectionPlan())));
    rptInspectorPlan.LocalReport.Refresh();
    protected DataTable getInspectionPlan()
    DataTable dt = new DataTable();
    DataTable dtCurrentUser = getCurrentUser();
    using (SPSite site = new SPSite(getMarketSurveillanceURL()))
    using (SPWeb web = site.OpenWeb())
    SPList list = web.Lists.TryGetList("InspectionPlan");
    SPQuery oQuery = new SPQuery();
    string query = "<Where><Eq><FieldRef Name='Title'/><Value Type='Text'>" + dtCurrentUser.Rows[0]["ID"].ToString() + "</Value></Eq></Where>";//getCurrentUserID()
    oQuery.Query = query;
    dt = list.GetItems(oQuery).GetDataTable();
    return dt;
    protected string getMarketSurveillanceURL()
    string URL = ConfigurationManager.AppSettings["MarketSurveillanceURL"].ToString();
    return URL;
    protected string getMainSiteURL()
    string URL = ConfigurationManager.AppSettings["MainSiteURL"].ToString();
    return URL;
    protected DataTable getCurrentUser()
    SPUser user = SPContext.Current.Web.CurrentUser;
    DataTable currentUser = new DataTable();
    using (SPSite site = new SPSite(getMarketSurveillanceURL()))
    using (SPWeb web = site.OpenWeb())
    SPList list = web.Lists.TryGetList("Inspector");
    SPQuery oQuery = new SPQuery();
    string query = "<Query><Where><Eq><FieldRef Name='LoginID'/><Value Type='Text'>" + user.LoginName + "</Value></Eq></Where></Query>";
    oQuery.ViewFields = "<FieldRef Name='ID'/><FieldRef Name='Title'/>";
    oQuery.Query = query;
    currentUser = list.GetItems(oQuery).GetDataTable();
    return currentUser;
    protected DataTable finalData(DataTable inspectionPlan)
    DataTable dt = inspectionPlan;
    DataTable dtCurrentUser = getCurrentUser();
    dt.Columns.Add("InspectorName");
    dt.Columns.Add("ProductName");
    dt.Columns.Add("CategoryName");
    dt.Columns.Add("InspectionTypeName");
    foreach (DataRow dr in dt.Rows)
    if (dr["Title"].ToString() == dtCurrentUser.Rows[0]["ID"].ToString()) dr["InspectorName"] = dtCurrentUser.Rows[0]["Title"].ToString();
    dr["ProductName"] = getProductName(dr["ProductID"].ToString());
    dr["CategoryName"] = getCategoryName(dr["ProductID"].ToString());
    switch (dr["InspectionType"].ToString())
    case "0":
    dr["InspectionTypeName"] = "Periodic";
    break;
    case "1":
    dr["InspectionTypeName"] = "ComplainFollowup";
    break;
    dt.AcceptChanges();
    return dt;
    protected string getProductName(string id)
    string productName = "";
    DataTable dt = new DataTable();
    using (SPSite site = new SPSite(getMarketSurveillanceURL()))
    using (SPWeb web = site.OpenWeb())
    SPList list = web.Lists.TryGetList("Product");
    SPQuery oQuery = new SPQuery();
    string query = "<Where><Eq><FieldRef Name='ID'/><Value Type='Text'>" + id + "</Value></Eq></Where>";//getCurrentUserID()
    oQuery.ViewFields = "<FieldRef Name='ProductEN'/><FieldRef Name='ProductAr'/>";
    oQuery.Query = query;
    dt = list.GetItems(oQuery).GetDataTable();
    foreach (DataRow dr in dt.Rows)
    productName = dr["ProductEN"].ToString();
    return productName;
    protected string getCategoryName(string productID)
    string categoryName = "", CategoryID = "";
    DataTable dtCategory = new DataTable();
    DataTable dtProduct = new DataTable();
    using (SPSite site = new SPSite(getMarketSurveillanceURL()))
    using (SPWeb web = site.OpenWeb())
    SPList list = web.Lists.TryGetList("Product");
    SPQuery oQuery = new SPQuery();
    string query = "<Where><Eq><FieldRef Name='ID'/><Value Type='Counter'>" + productID + "</Value></Eq></Where>";
    oQuery.ViewFields = "<FieldRef Name='CategoryID'/>";
    oQuery.Query = query;
    dtProduct = list.GetItems(oQuery).GetDataTable();
    foreach (DataRow dr in dtProduct.Rows)
    CategoryID = dr["CategoryID"].ToString();
    using (SPSite site = new SPSite(getMainSiteURL()))
    using (SPWeb web = site.OpenWeb())
    SPList list = web.Lists.TryGetList("SAS_Categories");
    SPQuery oQuery = new SPQuery();
    string query = "<Where><Eq><FieldRef Name='ID'/><Value Type='Text'>" + CategoryID + "</Value></Eq></Where>";
    oQuery.ViewFields = "<FieldRef Name='Category_Title_EN'/><FieldRef Name='Category_Title_Ar'/>";
    oQuery.Query = query;
    dtCategory = list.GetItems(oQuery).GetDataTable();
    foreach (DataRow dr in dtCategory.Rows)
    categoryName = dr["Category_Title_EN"].ToString();
    return categoryName;
    public static void CopyTo(Stream input, MemoryStream output)
    byte[] buffer = new byte[16 * 1024]; // Fairly arbitrary size
    int bytesRead;
    while ((bytesRead = input.Read(buffer, 0, buffer.Length)) > 0)
    output.Write(buffer, 0, bytesRead);

    Have you found a solution to this issue? I am searching for the same.

  • How to run a BI-Publisher report from the Appworx enterprise batch sheduler

    We have a BI-Publisher report that needs to be executed staight after a batch job. Does anyone know how to execute a report from the Appworx enterprise batch scheduler?
    Thanks.

    I'm not familiar with AppWorx, but we use Autosys. We created a PL/SQL wrapper that calls FND_REQUEST.ADD_LAYOUT and FND_REQUEST.SUBMIT_REQUEST to submit XDOREPPB. For any report that needs to be scheduled via Autosys, the wrapper program is executed with the appropriate parameters.
    Hope this helps.

Maybe you are looking for

  • Can idvd produce 0 reigon discs?

    hello everyone does anyone know if when authoring with idvd you can make the disc multi reigon so that your film can be viewed on any DVD player in the world Thanks Mike

  • Trying to install Reader 9.1 - error 1402

    So I'm trying to install Reader 9.1. I'm using Windows XP, Firefox 3.0.11. The installation gets to about 98%, and then I get an error message that says: Error 1402. Could not open key: HKEY\LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

  • Full Width Composition Slideshow

    I know you can have a slideshow that is full width but I want a slideshow with Targets, not thumbnails, which I normally use a Composition.  But when I select the Composition the Full Width button is not available.  Is this a future feature?  Is ther

  • Use Alchemy as Standard AS3 Compiler

    Anyone know of a way to do this? Is there a way to pass an actionscript class to Alchemy and have it compile a swf? Or, pass ABC to Alchemy and have it output a swf? I ask because, then we'd essentially have a new actionscript compiler that can perfo

  • Upgrading from LR 2 to 4

    I am planning on upgrading LR from 2 to 4. Now I see there is a 4.2. Which should I upgrade to? When I upgrade to 4 (or 4.2) what do I need to aware of if anything? Thank you, Patria