Showing posts with label aspx. Show all posts
Showing posts with label aspx. Show all posts

Monday, March 19, 2012

How to set the ReportPath for the reportviewer control

In my solution I've got 2 projects. ABCWeb is my website and ABCReports is a Report Server project.

In ABCWeb I have an aspx page that has a single reportviewer control on it which is intended to display the various reports that are in ABCReports . I am not using the Reports Server. I just simply want to set the property of the reportviewer control under LocalReport.ReportPath to the location of the report in ABCReports .

I keep getting this error no matter how I try to reference it.

  • An error occurred during local report processing.
  • The report definition for report '/ABCReports/Reports/rptNoticeOfDecision.rdl' has not been specified
  • Could not find a part of the path 'C:\ABCReports\Reports\rptNoticeOfDecision.rdl'.

    what am I doing wrong

    try something like this

    RVcl.LocalReport.ReportPath ="ABCReports/Reports/rptNoticeOfDecision.rdl";

    -remove the first /

    I assume ABCreports is a sub folder of the application root

  • Friday, March 9, 2012

    How to set PDF margins when rendering via WS

    I'm rendering reports in PDF format in aspx pages by calling the ssrs
    webservice. Is there a way to adjust the side margins in the PDF?
    Currently the margins are a default of 1 inch on each side and I want to
    reduce it to 1/2 inch on each side.
    Thanks.
    --
    moondaddy@.nospam.nospamHello,
    I suggest that you refer to the following topics in Reporting Services
    Books Online:
    PDF Device Information Settings
    Device Information Settings
    Render Method
    I hope the information is helpful.
    Sophie Guo
    Microsoft Online Partner Support
    Get Secure! - www.microsoft.com/security
    =====================================================When responding to posts, please "Reply to Group" via your newsreader so
    that others may learn and benefit from your issue.
    =====================================================This posting is provided "AS IS" with no warranties, and confers no rights.

    Friday, February 24, 2012

    How to set default date in SQL to

    somthing other than 1/1/1900? I use Visual Studio.NET and Aspx.
    Even if I pass a system.dbnull.value to the table, it keeps showing
    a default date of the above. I want to end-up with a <NULL> for the
    date entry from my code when a user deletes a date from my
    aspx page.

    Thanks,You can mix something from:

    use a DEFAULT constraint to your date column
    use NULLIF() function with an out-of-range date
    use ISNULL() function with an out-of-range date
    and check that your table supports NULLs in your date column

    we also have problems passing nulls via VB6 (must be variants).

    Cesar.|||Thanks Cesar,

    I saw a KB on Microsoft saying that functionality is a bug but don't see
    they fixed it. I will give the ole variant a try. Thanks again.

    BobbyJ

    Sunday, February 19, 2012

    How to send notification to .aspx page...

    ... as far as I understand, I need to create a custom HTTP protocol. Where do get an example of this? Shyam's book has an example of creating custom protocol that is not HTTP based. There are few remarks on HTTP custom protocol in Chapter 10, but those are not very helpful.

    The scenario it is used for is as follows: ASP.NET messenger (an .aspx page) writes messages into SQL server table. The page needs to get notified as soon as new entry appears in the table (from another instance of messenger), so that the first instance of messenger would be able to get new message from the table. Is this appropriate usage of notification services? If not, can you suggest alternative ways to write ASP.NET messenger?

    Thank you in advance.

    Is this a kinda IM application ? If so NS is not a right choice for Real Time Communication I would prefer to explore RTC (Real Time CommunicationI API with MS Live Communication Server. These two works well for any IM/Messaging related application.

    If you mention ur requirements in detail (what do u mean by message etc) i will be more clear... thanks

    --Satyen

    |||

    Query Notifications may be a better technology choice for you in this application.

    HTH...

    Joe

    How to send notification to .aspx page...

    ... as far as I understand, I need to create a custom HTTP protocol. Where do get an example of this? Shyam's book has an example of creating custom protocol that is not HTTP based. There are few remarks on HTTP custom protocol in Chapter 10, but those are not very helpful.

    The scenario it is used for is as follows: ASP.NET messenger (an .aspx page) writes messages into SQL server table. The page needs to get notified as soon as new entry appears in the table (from another instance of messenger), so that the first instance of messenger would be able to get new message from the table. Is this appropriate usage of notification services? If not, can you suggest alternative ways to write ASP.NET messenger?

    Thank you in advance.

    Is this a kinda IM application ? If so NS is not a right choice for Real Time Communication I would prefer to explore RTC (Real Time CommunicationI API with MS Live Communication Server. These two works well for any IM/Messaging related application.

    If you mention ur requirements in detail (what do u mean by message etc) i will be more clear... thanks

    --Satyen

    |||

    Query Notifications may be a better technology choice for you in this application.

    HTH...

    Joe

    How to send notification to .aspx page...

    ... as far as I understand, I need to create a custom HTTP protocol. Where do get an example of this? Shyam's book has an example of creating custom protocol that is not HTTP based. There are few remarks on HTTP custom protocol in Chapter 10, but those are not very helpful.

    The scenario it is used for is as follows: ASP.NET messenger (an .aspx page) writes messages into SQL server table. The page needs to get notified as soon as new entry appears in the table (from another instance of messenger), so that the first instance of messenger would be able to get new message from the table. Is this appropriate usage of notification services? If not, can you suggest alternative ways to write ASP.NET messenger?

    Thank you in advance.

    Is this a kinda IM application ? If so NS is not a right choice for Real Time Communication I would prefer to explore RTC (Real Time CommunicationI API with MS Live Communication Server. These two works well for any IM/Messaging related application.

    If you mention ur requirements in detail (what do u mean by message etc) i will be more clear... thanks

    --Satyen

    |||

    Query Notifications may be a better technology choice for you in this application.

    HTH...

    Joe