Showing posts with label reporting. Show all posts
Showing posts with label reporting. Show all posts

Tuesday, March 27, 2012

Analysis Services 2000 + Reporting Services 2005 + Parameters

Hi All,

I'm trying to create reports in RS2005 using AS2000 as my data source. I understand that if I use RS2005 on AS2000, I wont be able to enjoy the OLAP based parameters as in using AS2005. Does anyone know an easy way to easily use Parameters in RS2005 while still using AS2000?

Regards,

Joseph

I don't think I've tried RS 2005 against AS 2000, but my best bet is that you create an OLE DB connection against your cube, and then learn how to write MDX.

You need to create MDX queries for the parameters that you want to get from your OLAP cube as well as the main query.

All parameterized queries need to be prefixed with =" and ended with ", and to be on one line. (Copy into notepad, turn off word wrap and make it stay on one single line.)

I suggest you read through some articles by Bill Pearson over at Databasejournal.com

Mastering OLAP Reports: Parameters for Analysis Services Reporting ...

http://www.databasejournal.com/features/mssql/article.php/3644661

Mastering OLAP Reporting: Cascading Prompts

http://www.databasejournal.com/features/mssql/article.php/3386441

At least one of them should get you started.

Kaisa

Tuesday, March 20, 2012

An Unknown error has occured in WMI provider

Hi All,

I am new to sql server 2005.

I tried to connect to reporting services configuration manager.

it gives an error

An Unknown error has occured in WMI provider.

error code 80040219.

so please help me out regarding this issue.

Hi sandy_patil,
I encounter the same error as well. Did you manage to fix this error?

Daren|||I have the same error.

Uninstalled SQL Server 2005 Express and installed SQL Server 2005 Standard edition. Go to configure the "Report Service" and got the same error. Uninstalled 2005 many times and still not working.

Henry|||

I had the same problem, accompanied by the following error in the event log:

The description for Event ID ( 133 ) in Source ( Report Server ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer\RSReportServer.config.

Since the system seemed to be looking for
C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer\RSReportServer.config
I tried copying another of the MSSQL.x directories (containing Reporting Services) to
C:\Program Files\Microsoft SQL Server\MSSQL.3

I'm not sure if this is a complete solution, but it resolved the 8004219 error. It will be interesting to see if it causes any other problems.

|||

I eventually realized that the MSSQL.3 reference was related to an instance called "SQL2005" that was left over from a previous install of an SQL Server evaluation copy. The mysterious "SQL2005" instance kept reappearing so many times that I started thinking it was supposed to be there. After finally getting rid of it (not fun), I think the 80040219 error might be solved correctly now.

Here are some links about manually removing a stubborn instance:
http://support.microsoft.com/kb/909967
http://blogs.msdn.com/astebner/archive/2005/09/13/465401.aspx
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=354408&SiteID=1

Neither msiexec nor msizap were very effective for me. I eventually found myself deleting files and registry entries manually, with my fingers crossed ...

|||Thanks for the tips. I eventaully uninstall sql server 2005 and followed this simple steps http://blogs.msdn.com/astebner/archive/2005/12/08/501885.aspx
to remove old instance. It works now.sql

An Unknown error has occured in WMI provider

Hi All,

I am new to sql server 2005.

I tried to connect to reporting services configuration manager.

it gives an error

An Unknown error has occured in WMI provider.

error code 80040219.

so please help me out regarding this issue.

Hi sandy_patil,
I encounter the same error as well. Did you manage to fix this error?

Daren|||I have the same error.

Uninstalled SQL Server 2005 Express and installed SQL Server 2005 Standard edition. Go to configure the "Report Service" and got the same error. Uninstalled 2005 many times and still not working.

Henry|||

I had the same problem, accompanied by the following error in the event log:

The description for Event ID ( 133 ) in Source ( Report Server ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer\RSReportServer.config.

Since the system seemed to be looking for
C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer\RSReportServer.config
I tried copying another of the MSSQL.x directories (containing Reporting Services) to
C:\Program Files\Microsoft SQL Server\MSSQL.3

I'm not sure if this is a complete solution, but it resolved the 8004219 error. It will be interesting to see if it causes any other problems.

|||

I eventually realized that the MSSQL.3 reference was related to an instance called "SQL2005" that was left over from a previous install of an SQL Server evaluation copy. The mysterious "SQL2005" instance kept reappearing so many times that I started thinking it was supposed to be there. After finally getting rid of it (not fun), I think the 80040219 error might be solved correctly now.

Here are some links about manually removing a stubborn instance:
http://support.microsoft.com/kb/909967
http://blogs.msdn.com/astebner/archive/2005/09/13/465401.aspx
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=354408&SiteID=1

Neither msiexec nor msizap were very effective for me. I eventually found myself deleting files and registry entries manually, with my fingers crossed ...

|||Thanks for the tips. I eventaully uninstall sql server 2005 and followed this simple steps http://blogs.msdn.com/astebner/archive/2005/12/08/501885.aspx
to remove old instance. It works now.

An unexpected error occurred while connecting to the report server.

I have a distributed environment with SQL Server 2005 SP2 (RTM) running on one server. This server holds the databases for SharePoint and Reporting Services. I then have SharePoint 3.0 (32-bit version) with the reporting services add-in installed on a second server. I installed the sharepoint object model (64-bit version) on the database server as suggested and have configured Reporting Services to use domain user accounts. The Reporting Services configuration tool is reporting that integration has been successfully set up but I am unable to access the "Set Server Defaults" page without an error. This is the error I receive:

An unexpected error occurred while connecting to the report server. Verify that the report server is available and configured for SharePoint integrated mode.

Please help.

Solaena,

I would suggest to take a look at the Report Server log files located on your Report Server machine in this location:

%Program Files%\Microsoft SQL Server\MSSQL.X\Reporting Services\LogFiles

Look for a log file whose name starts with ReportServerService and see what exception you find there.

Mihaela

This posting is provided "AS IS" with no warranties, and confers no rights.

|||

After some digging I found an error message that led me to this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1282744&SiteID=1

I am now able to access the "Set Server Defaults" page but I am unable to open any reports and I can't add any reports to the web part. From what I can see I have two errors.

#1 - When adding a report to the web part I am denied access. Access is denied to my domain/user account. This account is a domain admin account.

#2 - NULL Reference exception at "...InternalFindObjectsNonRecursive."

Thanks,

Simone

|||Just thought I would updat that I have been working with Microsoft on this for a few weeks and I will post the outcome when it is resolved. Thanks to all for you insight.|||Just thought I would update everyone on this thread, we were finally able to get all of the integration working. To complete the process we needed to use Kerberos authentication and ensure that the browsers were all set up to enable windows authentication. With Kerberos it is important to be sure that SPNs are set up for the domain account used by the sharepoint and reporting service web services. When doing this, also make sure that duplicate SPNs are not inadvertently created. After two months of working to get this resolved I am thrilled to say we are up and running....|||

Hi Simone,

Did you have to create a SPN for just the MOSS site url or both the MOSS and reportserver url ?

Regards,

BC

|||

both servers. also, there is one for just the server name and one for the fully qualified name.

Simone

An unexpected error occurred while connecting to the report server.

I have a distributed environment with SQL Server 2005 SP2 (RTM) running on one server. This server holds the databases for SharePoint and Reporting Services. I then have SharePoint 3.0 (32-bit version) with the reporting services add-in installed on a second server. I installed the sharepoint object model (64-bit version) on the database server as suggested and have configured Reporting Services to use domain user accounts. The Reporting Services configuration tool is reporting that integration has been successfully set up but I am unable to access the "Set Server Defaults" page without an error. This is the error I receive:

An unexpected error occurred while connecting to the report server. Verify that the report server is available and configured for SharePoint integrated mode.

Please help.

Solaena,

I would suggest to take a look at the Report Server log files located on your Report Server machine in this location:

%Program Files%\Microsoft SQL Server\MSSQL.X\Reporting Services\LogFiles

Look for a log file whose name starts with ReportServerService and see what exception you find there.

Mihaela

This posting is provided "AS IS" with no warranties, and confers no rights.

|||

After some digging I found an error message that led me to this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1282744&SiteID=1

I am now able to access the "Set Server Defaults" page but I am unable to open any reports and I can't add any reports to the web part. From what I can see I have two errors.

#1 - When adding a report to the web part I am denied access. Access is denied to my domain/user account. This account is a domain admin account.

#2 - NULL Reference exception at "...InternalFindObjectsNonRecursive."

Thanks,

Simone

|||Just thought I would updat that I have been working with Microsoft on this for a few weeks and I will post the outcome when it is resolved. Thanks to all for you insight.|||Just thought I would update everyone on this thread, we were finally able to get all of the integration working. To complete the process we needed to use Kerberos authentication and ensure that the browsers were all set up to enable windows authentication. With Kerberos it is important to be sure that SPNs are set up for the domain account used by the sharepoint and reporting service web services. When doing this, also make sure that duplicate SPNs are not inadvertently created. After two months of working to get this resolved I am thrilled to say we are up and running....|||

Hi Simone,

Did you have to create a SPN for just the MOSS site url or both the MOSS and reportserver url ?

Regards,

BC

|||

both servers. also, there is one for just the server name and one for the fully qualified name.

Simone

An unexpected error occurred while connecting to the report server.

I have a distributed environment with SQL Server 2005 SP2 (RTM) running on one server. This server holds the databases for SharePoint and Reporting Services. I then have SharePoint 3.0 (32-bit version) with the reporting services add-in installed on a second server. I installed the sharepoint object model (64-bit version) on the database server as suggested and have configured Reporting Services to use domain user accounts. The Reporting Services configuration tool is reporting that integration has been successfully set up but I am unable to access the "Set Server Defaults" page without an error. This is the error I receive:

An unexpected error occurred while connecting to the report server. Verify that the report server is available and configured for SharePoint integrated mode.

Please help.

Solaena,

I would suggest to take a look at the Report Server log files located on your Report Server machine in this location:

%Program Files%\Microsoft SQL Server\MSSQL.X\Reporting Services\LogFiles

Look for a log file whose name starts with ReportServerService and see what exception you find there.

Mihaela

This posting is provided "AS IS" with no warranties, and confers no rights.

|||

After some digging I found an error message that led me to this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1282744&SiteID=1

I am now able to access the "Set Server Defaults" page but I am unable to open any reports and I can't add any reports to the web part. From what I can see I have two errors.

#1 - When adding a report to the web part I am denied access. Access is denied to my domain/user account. This account is a domain admin account.

#2 - NULL Reference exception at "...InternalFindObjectsNonRecursive."

Thanks,

Simone

|||Just thought I would updat that I have been working with Microsoft on this for a few weeks and I will post the outcome when it is resolved. Thanks to all for you insight.|||Just thought I would update everyone on this thread, we were finally able to get all of the integration working. To complete the process we needed to use Kerberos authentication and ensure that the browsers were all set up to enable windows authentication. With Kerberos it is important to be sure that SPNs are set up for the domain account used by the sharepoint and reporting service web services. When doing this, also make sure that duplicate SPNs are not inadvertently created. After two months of working to get this resolved I am thrilled to say we are up and running....|||

Hi Simone,

Did you have to create a SPN for just the MOSS site url or both the MOSS and reportserver url ?

Regards,

BC

|||

both servers. also, there is one for just the server name and one for the fully qualified name.

Simone

An unexpected error occurred while connecting to the report server.

I have a distributed environment with SQL Server 2005 SP2 (RTM) running on one server. This server holds the databases for SharePoint and Reporting Services. I then have SharePoint 3.0 (32-bit version) with the reporting services add-in installed on a second server. I installed the sharepoint object model (64-bit version) on the database server as suggested and have configured Reporting Services to use domain user accounts. The Reporting Services configuration tool is reporting that integration has been successfully set up but I am unable to access the "Set Server Defaults" page without an error. This is the error I receive:

An unexpected error occurred while connecting to the report server. Verify that the report server is available and configured for SharePoint integrated mode.

Please help.

Solaena,

I would suggest to take a look at the Report Server log files located on your Report Server machine in this location:

%Program Files%\Microsoft SQL Server\MSSQL.X\Reporting Services\LogFiles

Look for a log file whose name starts with ReportServerService and see what exception you find there.

Mihaela

This posting is provided "AS IS" with no warranties, and confers no rights.

|||

After some digging I found an error message that led me to this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1282744&SiteID=1

I am now able to access the "Set Server Defaults" page but I am unable to open any reports and I can't add any reports to the web part. From what I can see I have two errors.

#1 - When adding a report to the web part I am denied access. Access is denied to my domain/user account. This account is a domain admin account.

#2 - NULL Reference exception at "...InternalFindObjectsNonRecursive."

Thanks,

Simone

|||Just thought I would updat that I have been working with Microsoft on this for a few weeks and I will post the outcome when it is resolved. Thanks to all for you insight.|||Just thought I would update everyone on this thread, we were finally able to get all of the integration working. To complete the process we needed to use Kerberos authentication and ensure that the browsers were all set up to enable windows authentication. With Kerberos it is important to be sure that SPNs are set up for the domain account used by the sharepoint and reporting service web services. When doing this, also make sure that duplicate SPNs are not inadvertently created. After two months of working to get this resolved I am thrilled to say we are up and running....|||

Hi Simone,

Did you have to create a SPN for just the MOSS site url or both the MOSS and reportserver url ?

Regards,

BC

|||

both servers. also, there is one for just the server name and one for the fully qualified name.

Simone

sql

An unexpected error occurred while connecting to the report server.

I have a distributed environment with SQL Server 2005 SP2 (RTM) running on one server. This server holds the databases for SharePoint and Reporting Services. I then have SharePoint 3.0 (32-bit version) with the reporting services add-in installed on a second server. I installed the sharepoint object model (64-bit version) on the database server as suggested and have configured Reporting Services to use domain user accounts. The Reporting Services configuration tool is reporting that integration has been successfully set up but I am unable to access the "Set Server Defaults" page without an error. This is the error I receive:

An unexpected error occurred while connecting to the report server. Verify that the report server is available and configured for SharePoint integrated mode.

Please help.

Solaena,

I would suggest to take a look at the Report Server log files located on your Report Server machine in this location:

%Program Files%\Microsoft SQL Server\MSSQL.X\Reporting Services\LogFiles

Look for a log file whose name starts with ReportServerService and see what exception you find there.

Mihaela

This posting is provided "AS IS" with no warranties, and confers no rights.

|||

After some digging I found an error message that led me to this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1282744&SiteID=1

I am now able to access the "Set Server Defaults" page but I am unable to open any reports and I can't add any reports to the web part. From what I can see I have two errors.

#1 - When adding a report to the web part I am denied access. Access is denied to my domain/user account. This account is a domain admin account.

#2 - NULL Reference exception at "...InternalFindObjectsNonRecursive."

Thanks,

Simone

|||Just thought I would updat that I have been working with Microsoft on this for a few weeks and I will post the outcome when it is resolved. Thanks to all for you insight.|||Just thought I would update everyone on this thread, we were finally able to get all of the integration working. To complete the process we needed to use Kerberos authentication and ensure that the browsers were all set up to enable windows authentication. With Kerberos it is important to be sure that SPNs are set up for the domain account used by the sharepoint and reporting service web services. When doing this, also make sure that duplicate SPNs are not inadvertently created. After two months of working to get this resolved I am thrilled to say we are up and running....|||

Hi Simone,

Did you have to create a SPN for just the MOSS site url or both the MOSS and reportserver url ?

Regards,

BC

|||

both servers. also, there is one for just the server name and one for the fully qualified name.

Simone

Monday, March 19, 2012

An internal error occurred on the report server. See the error log for more details. (rsInternal

Hello everybody,

I am trying to use the reporting services on Windows 2003 with SQLServer 2005. Everything works fine in the report manager and I can access and render the reports without any problem. But when I try to access the reports directly with the URL from the ReportServer, I get the following error :

Reporting Services Error


An internal error occurred on the report server. See the error log for more details. (rsInternalError) Get Online Help

The type Microsoft.ReportingServices.UI.WebControlConnection, ReportingServicesWebUserInterface, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91 does not implement IReportServerConnection or could not be found


SQL Server Reporting Services

So I went to see the error log, and here is what it says :

<Header>
<Product>Microsoft SQL Server Reporting Services Version 9.00.1399.00</Product>
<Locale>en-US</Locale>
<TimeZone>GMT Standard Time</TimeZone>
<Path>C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\LogFiles\ReportServer__11_10_2006_13_43_22.log</Path>
<SystemName>VODAFONE</SystemName>
<OSName>Microsoft Windows NT 5.2.3790 Service Pack 1</OSName>
<OSVersion>5.2.3790.65536</OSVersion>
</Header>
w3wp!webserver!5!11/10/2006-13:43:23:: i INFO: Reporting Web Server started
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing ConnectionType to '0' as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing IsSchedulingService to 'True' as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing IsNotificationService to 'True' as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing IsEventService to 'True' as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing PollingInterval to '10' second(s) as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing WindowsServiceUseFileShareStorage to 'False' as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing MemoryLimit to '60' percent as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing RecycleTime to '720' minute(s) as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing MaximumMemoryLimit to '80' percent as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing MaxAppDomainUnloadTime to '30' minute(s) as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing MaxQueueThreads to '0' thread(s) as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing IsWebServiceEnabled to 'True' as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing MaxActiveReqForOneUser to '20' requests(s) as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing MaxScheduleWait to '5' second(s) as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing DatabaseQueryTimeout to '120' second(s) as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing ProcessRecycleOptions to '0' as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing RunningRequestsScavengerCycle to '60' second(s) as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing RunningRequestsDbCycle to '60' second(s) as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing RunningRequestsAge to '30' second(s) as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing CleanupCycleMinutes to '10' minute(s) as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing DailyCleanupMinuteOfDay to default value of '120' minutes since midnight because it was not specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing WatsonFlags to '1064' as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing WatsonDumpOnExceptions to 'Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException,Microsoft.ReportingServices.Modeling.InternalModelingException' as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing WatsonDumpExcludeIfContainsExceptions to 'System.Data.SqlClient.SqlException,System.Threading.ThreadAbortException' as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing SecureConnectionLevel to '0' as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing DisplayErrorLink to 'True' as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing WebServiceUseFileShareStorage to 'False' as specified in Configuration file.
w3wp!resourceutilities!5!11/10/2006-13:43:23:: i INFO: Reporting Services starting SKU: Enterprise
w3wp!resourceutilities!5!11/10/2006-13:43:23:: i INFO: Evaluation copy: 0 days left
w3wp!runningjobs!5!11/10/2006-13:43:23:: i INFO: Database Cleanup (Web Service) timer enabled: Next Event: 600 seconds. Cycle: 600 seconds
w3wp!runningjobs!5!11/10/2006-13:43:23:: i INFO: Running Requests Scavenger timer enabled: Next Event: 60 seconds. Cycle: 60 seconds
w3wp!runningjobs!5!11/10/2006-13:43:23:: i INFO: Running Requests DB timer enabled: Next Event: 60 seconds. Cycle: 60 seconds
w3wp!runningjobs!5!11/10/2006-13:43:23:: i INFO: Memory stats update timer enabled: Next Event: 60 seconds. Cycle: 60 seconds
w3wp!library!5!10/11/2006-13:43:23:: Unhandled exception was caught: Microsoft.Reporting.WebForms.InvalidConfigFileTypeException: The type Microsoft.ReportingServices.UI.WebControlConnection, ReportingServicesWebUserInterface, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91 does not implement IReportServerConnection or could not be found
at Microsoft.Reporting.WebForms.ConfigFilePropertyInterface`1.EnsurePropertyLoaded()
at Microsoft.Reporting.WebForms.ConfigFilePropertyInterface`1.GetInstance()
at Microsoft.Reporting.WebForms.ReportViewer.CreateServerReport()
at Microsoft.Reporting.WebForms.ReportViewer..ctor()
at Microsoft.ReportingServices.WebServer.ReportViewerHost..ctor()
at ASP.pages_reportviewer_aspx.__BuildControlReportViewerForm()
at ASP.pages_reportviewer_aspx.__BuildControlTree(pages_reportviewer_aspx __ctrl)
at ASP.pages_reportviewer_aspx.FrameworkInitialize()
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.pages_reportviewer_aspx.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
w3wp!library!5!10/11/2006-13:43:23:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details., ;
Info: Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details. > Microsoft.Reporting.WebForms.InvalidConfigFileTypeException: The type Microsoft.ReportingServices.UI.WebControlConnection, ReportingServicesWebUserInterface, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91 does not implement IReportServerConnection or could not be found
at Microsoft.Reporting.WebForms.ConfigFilePropertyInterface`1.EnsurePropertyLoaded()
at Microsoft.Reporting.WebForms.ConfigFilePropertyInterface`1.GetInstance()
at Microsoft.Reporting.WebForms.ReportViewer.CreateServerReport()
at Microsoft.Reporting.WebForms.ReportViewer..ctor()
at Microsoft.ReportingServices.WebServer.ReportViewerHost..ctor()
at ASP.pages_reportviewer_aspx.__BuildControlReportViewerForm()
at ASP.pages_reportviewer_aspx.__BuildControlTree(pages_reportviewer_aspx __ctrl)
at ASP.pages_reportviewer_aspx.FrameworkInitialize()
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.pages_reportviewer_aspx.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
End of inner exception stack trace
w3wp!library!5!10/11/2006-13:43:25:: i INFO: Exception dumped to: C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\LogFiles flags= ReferencedMemory, AllThreads, SendToWatson
w3wp!library!5!10/11/2006-13:43:26:: i INFO: Catalog SQL Server Edition = Enterprise
w3wp!webserver!5!11/10/2006-13:43:34:: i INFO: Reporting Web Server stopped

Does anyone have any idea about what happends ? Any suggestions maybe about anything I should try ?

Thanks very much in advance.

[edit] I just installed a few minutes ago the service pack 1 for SQL Server 2005 and Reporting services, but obviously it doesn't change anything to my problem. [/edit]

Have you added / defined a ReportViewerServerConnection key in the <appSettings> for ReportServer's web.config file?

If yes, can you remove it and try agan?

thanx,
Prash

|||

Hi,

First, thank you for answering.

Actually I haven't any <appsetings> in the ReportServer's web.config file. I have that in the ReportManager, which works fine, but not in the ReportServer.

Here is my web.config file for the Report Server :

<?xml version="1.0" encoding="utf-8" ?>

<configuration>

<configSections>

<section name="RStrace" type="Microsoft.ReportingServices.Diagnostics.RSTraceSectionHandler,Microsoft.ReportingServices.Diagnostics" />

</configSections>

<system.diagnostics>

<switches>

<!-- 1 = error, 2 = warning, 3 = info, 4 = verbose -->

<add name="DefaultTraceSwitch" value="3" />

</switches>

<assert assertuienabled="false" />

</system.diagnostics>

<RStrace>

<add name="FileName" value="ReportServer_" />

<add name="FileSizeLimitMb" value="32" />

<add name="KeepFilesForDays" value="14" />

<add name="Prefix" value="tid, time" />

<add name="TraceListeners" value="debugwindow, file" />

<add name="TraceFileMode" value="unique" />

<add name="Components" value="all,RunningJobs:3,SemanticQueryEngine:2,SemanticModelGenerator:2" />

</RStrace>

<system.web>

<pages validateRequest="false" />

<authentication mode="Windows" />

<identity impersonate="true" />

<compilation defaultLanguage="c#" debug="false">

<assemblies>

<clear />

<add assembly="ReportingServicesWebServer" />

</assemblies>

</compilation>

<trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" />

<sessionState mode="Off" />

<httpHandlers>

<add verb="*" path="Reserved.ReportServer" type="Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler, ReportingServicesWebServer" />

<add verb="*" path="Reserved.ReportViewerWebControl.axd" type = "Microsoft.Reporting.WebForms.HttpHandler, ReportingServicesWebServer, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />

</httpHandlers>

<httpModules></httpModules>

<globalization requestEncoding="utf-8" responseEncoding="utf-8" />

<httpRuntime executionTimeout = "9000" />

<securityPolicy>

<trustLevel name="RosettaSrv" policyFile="rssrvpolicy.config" />

</securityPolicy>

<trust level="RosettaSrv" originUrl="" />

</system.web>

<runtime>

<legacyImpersonationPolicy enabled="true"/>

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

<dependentAssembly>

<assemblyIdentity name="Microsoft.ReportingServices.Interfaces"

publicKeyToken="89845dcd8080cc91"

culture="neutral" />

<bindingRedirect oldVersion="8.0.242.0"

newVersion="9.0.242.0"/>

9.00.1399.00

</dependentAssembly>

</assemblyBinding>

</runtime>

</configuration>

If any of you has any suggestion, I already spent a few hours on that problem...

|||

Found a solution here

http://groups.google.com/group/microsoft.public.sqlserver.reportingsvcs/browse_thread/thread/a22799e1a354ea79/9aca125282998795

This fix works assuming that the IIS virtual server that reporting services is installed on uses the same home directory as the Report Manager (in which case the ReportServer web.config inherits the settings from its parent).

An internal error occurred on the report server. See the error log for more details. (rsInternal

Hello everybody,

I am trying to use the reporting services on Windows 2003 with SQLServer 2005. Everything works fine in the report manager and I can access and render the reports without any problem. But when I try to access the reports directly with the URL from the ReportServer, I get the following error :

Reporting Services Error

An internal error occurred on the report server. See the error log for more details. (rsInternalError) Get Online Help The type Microsoft.ReportingServices.UI.WebControlConnection, ReportingServicesWebUserInterface, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91 does not implement IReportServerConnection or could not be found

SQL Server Reporting Services

So I went to see the error log, and here is what it says :

<Header>
<Product>Microsoft SQL Server Reporting Services Version 9.00.1399.00</Product>
<Locale>en-US</Locale>
<TimeZone>GMT Standard Time</TimeZone>
<Path>C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\LogFiles\ReportServer__11_10_2006_13_43_22.log</Path>
<SystemName>VODAFONE</SystemName>
<OSName>Microsoft Windows NT 5.2.3790 Service Pack 1</OSName>
<OSVersion>5.2.3790.65536</OSVersion>
</Header>
w3wp!webserver!5!11/10/2006-13:43:23:: i INFO: Reporting Web Server started
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing ConnectionType to '0' as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing IsSchedulingService to 'True' as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing IsNotificationService to 'True' as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing IsEventService to 'True' as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing PollingInterval to '10' second(s) as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing WindowsServiceUseFileShareStorage to 'False' as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing MemoryLimit to '60' percent as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing RecycleTime to '720' minute(s) as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing MaximumMemoryLimit to '80' percent as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing MaxAppDomainUnloadTime to '30' minute(s) as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing MaxQueueThreads to '0' thread(s) as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing IsWebServiceEnabled to 'True' as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing MaxActiveReqForOneUser to '20' requests(s) as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing MaxScheduleWait to '5' second(s) as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing DatabaseQueryTimeout to '120' second(s) as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing ProcessRecycleOptions to '0' as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing RunningRequestsScavengerCycle to '60' second(s) as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing RunningRequestsDbCycle to '60' second(s) as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing RunningRequestsAge to '30' second(s) as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing CleanupCycleMinutes to '10' minute(s) as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing DailyCleanupMinuteOfDay to default value of '120' minutes since midnight because it was not specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing WatsonFlags to '1064' as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing WatsonDumpOnExceptions to 'Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException,Microsoft.ReportingServices.Modeling.InternalModelingException' as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing WatsonDumpExcludeIfContainsExceptions to 'System.Data.SqlClient.SqlException,System.Threading.ThreadAbortException' as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing SecureConnectionLevel to '0' as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing DisplayErrorLink to 'True' as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing WebServiceUseFileShareStorage to 'False' as specified in Configuration file.
w3wp!resourceutilities!5!11/10/2006-13:43:23:: i INFO: Reporting Services starting SKU: Enterprise
w3wp!resourceutilities!5!11/10/2006-13:43:23:: i INFO: Evaluation copy: 0 days left
w3wp!runningjobs!5!11/10/2006-13:43:23:: i INFO: Database Cleanup (Web Service) timer enabled: Next Event: 600 seconds. Cycle: 600 seconds
w3wp!runningjobs!5!11/10/2006-13:43:23:: i INFO: Running Requests Scavenger timer enabled: Next Event: 60 seconds. Cycle: 60 seconds
w3wp!runningjobs!5!11/10/2006-13:43:23:: i INFO: Running Requests DB timer enabled: Next Event: 60 seconds. Cycle: 60 seconds
w3wp!runningjobs!5!11/10/2006-13:43:23:: i INFO: Memory stats update timer enabled: Next Event: 60 seconds. Cycle: 60 seconds
w3wp!library!5!10/11/2006-13:43:23:: Unhandled exception was caught: Microsoft.Reporting.WebForms.InvalidConfigFileTypeException: The type Microsoft.ReportingServices.UI.WebControlConnection, ReportingServicesWebUserInterface, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91 does not implement IReportServerConnection or could not be found
at Microsoft.Reporting.WebForms.ConfigFilePropertyInterface`1.EnsurePropertyLoaded()
at Microsoft.Reporting.WebForms.ConfigFilePropertyInterface`1.GetInstance()
at Microsoft.Reporting.WebForms.ReportViewer.CreateServerReport()
at Microsoft.Reporting.WebForms.ReportViewer..ctor()
at Microsoft.ReportingServices.WebServer.ReportViewerHost..ctor()
at ASP.pages_reportviewer_aspx.__BuildControlReportViewerForm()
at ASP.pages_reportviewer_aspx.__BuildControlTree(pages_reportviewer_aspx __ctrl)
at ASP.pages_reportviewer_aspx.FrameworkInitialize()
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.pages_reportviewer_aspx.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
w3wp!library!5!10/11/2006-13:43:23:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details., ;
Info: Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details. > Microsoft.Reporting.WebForms.InvalidConfigFileTypeException: The type Microsoft.ReportingServices.UI.WebControlConnection, ReportingServicesWebUserInterface, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91 does not implement IReportServerConnection or could not be found
at Microsoft.Reporting.WebForms.ConfigFilePropertyInterface`1.EnsurePropertyLoaded()
at Microsoft.Reporting.WebForms.ConfigFilePropertyInterface`1.GetInstance()
at Microsoft.Reporting.WebForms.ReportViewer.CreateServerReport()
at Microsoft.Reporting.WebForms.ReportViewer..ctor()
at Microsoft.ReportingServices.WebServer.ReportViewerHost..ctor()
at ASP.pages_reportviewer_aspx.__BuildControlReportViewerForm()
at ASP.pages_reportviewer_aspx.__BuildControlTree(pages_reportviewer_aspx __ctrl)
at ASP.pages_reportviewer_aspx.FrameworkInitialize()
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.pages_reportviewer_aspx.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
End of inner exception stack trace
w3wp!library!5!10/11/2006-13:43:25:: i INFO: Exception dumped to: C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\LogFiles flags= ReferencedMemory, AllThreads, SendToWatson
w3wp!library!5!10/11/2006-13:43:26:: i INFO: Catalog SQL Server Edition = Enterprise
w3wp!webserver!5!11/10/2006-13:43:34:: i INFO: Reporting Web Server stopped

Does anyone have any idea about what happends ? Any suggestions maybe about anything I should try ?

Thanks very much in advance.

[edit] I just installed a few minutes ago the service pack 1 for SQL Server 2005 and Reporting services, but obviously it doesn't change anything to my problem. [/edit]

Have you added / defined a ReportViewerServerConnection key in the <appSettings> for ReportServer's web.config file?

If yes, can you remove it and try agan?

thanx,
Prash

|||

Hi,

First, thank you for answering.

Actually I haven't any <appsetings> in the ReportServer's web.config file. I have that in the ReportManager, which works fine, but not in the ReportServer.

Here is my web.config file for the Report Server :

<?xml version="1.0" encoding="utf-8" ?>

<configuration>

<configSections>

<section name="RStrace" type="Microsoft.ReportingServices.Diagnostics.RSTraceSectionHandler,Microsoft.ReportingServices.Diagnostics" />

</configSections>

<system.diagnostics>

<switches>

<!-- 1 = error, 2 = warning, 3 = info, 4 = verbose -->

<add name="DefaultTraceSwitch" value="3" />

</switches>

<assert assertuienabled="false" />

</system.diagnostics>

<RStrace>

<add name="FileName" value="ReportServer_" />

<add name="FileSizeLimitMb" value="32" />

<add name="KeepFilesForDays" value="14" />

<add name="Prefix" value="tid, time" />

<add name="TraceListeners" value="debugwindow, file" />

<add name="TraceFileMode" value="unique" />

<add name="Components" value="all,RunningJobs:3,SemanticQueryEngine:2,SemanticModelGenerator:2" />

</RStrace>

<system.web>

<pages validateRequest="false" />

<authentication mode="Windows" />

<identity impersonate="true" />

<compilation defaultLanguage="c#" debug="false">

<assemblies>

<clear />

<add assembly="ReportingServicesWebServer" />

</assemblies>

</compilation>

<trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" />

<sessionState mode="Off" />

<httpHandlers>

<add verb="*" path="Reserved.ReportServer" type="Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler, ReportingServicesWebServer" />

<add verb="*" path="Reserved.ReportViewerWebControl.axd" type = "Microsoft.Reporting.WebForms.HttpHandler, ReportingServicesWebServer, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />

</httpHandlers>

<httpModules></httpModules>

<globalization requestEncoding="utf-8" responseEncoding="utf-8" />

<httpRuntime executionTimeout = "9000" />

<securityPolicy>

<trustLevel name="RosettaSrv" policyFile="rssrvpolicy.config" />

</securityPolicy>

<trust level="RosettaSrv" originUrl="" />

</system.web>

<runtime>

<legacyImpersonationPolicy enabled="true"/>

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

<dependentAssembly>

<assemblyIdentity name="Microsoft.ReportingServices.Interfaces"

publicKeyToken="89845dcd8080cc91"

culture="neutral" />

<bindingRedirect oldVersion="8.0.242.0"

newVersion="9.0.242.0"/>

9.00.1399.00

</dependentAssembly>

</assemblyBinding>

</runtime>

</configuration>

If any of you has any suggestion, I already spent a few hours on that problem...

|||

Found a solution here

http://groups.google.com/group/microsoft.public.sqlserver.reportingsvcs/browse_thread/thread/a22799e1a354ea79/9aca125282998795

This fix works assuming that the IIS virtual server that reporting services is installed on uses the same home directory as the Report Manager (in which case the ReportServer web.config inherits the settings from its parent).

An internal error occurred on the report server. See the error log for more details. (rsInte

Hello everybody,

I am trying to use the reporting services on Windows 2003 with SQLServer 2005. Everything works fine in the report manager and I can access and render the reports without any problem. But when I try to access the reports directly with the URL from the ReportServer, I get the following error :

Reporting Services Error


An internal error occurred on the report server. See the error log for more details. (rsInternalError) Get Online Help

The type Microsoft.ReportingServices.UI.WebControlConnection, ReportingServicesWebUserInterface, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91 does not implement IReportServerConnection or could not be found


SQL Server Reporting Services

So I went to see the error log, and here is what it says :

<Header>
<Product>Microsoft SQL Server Reporting Services Version 9.00.1399.00</Product>
<Locale>en-US</Locale>
<TimeZone>GMT Standard Time</TimeZone>
<Path>C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\LogFiles\ReportServer__11_10_2006_13_43_22.log</Path>
<SystemName>VODAFONE</SystemName>
<OSName>Microsoft Windows NT 5.2.3790 Service Pack 1</OSName>
<OSVersion>5.2.3790.65536</OSVersion>
</Header>
w3wp!webserver!5!11/10/2006-13:43:23:: i INFO: Reporting Web Server started
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing ConnectionType to '0' as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing IsSchedulingService to 'True' as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing IsNotificationService to 'True' as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing IsEventService to 'True' as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing PollingInterval to '10' second(s) as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing WindowsServiceUseFileShareStorage to 'False' as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing MemoryLimit to '60' percent as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing RecycleTime to '720' minute(s) as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing MaximumMemoryLimit to '80' percent as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing MaxAppDomainUnloadTime to '30' minute(s) as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing MaxQueueThreads to '0' thread(s) as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing IsWebServiceEnabled to 'True' as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing MaxActiveReqForOneUser to '20' requests(s) as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing MaxScheduleWait to '5' second(s) as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing DatabaseQueryTimeout to '120' second(s) as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing ProcessRecycleOptions to '0' as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing RunningRequestsScavengerCycle to '60' second(s) as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing RunningRequestsDbCycle to '60' second(s) as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing RunningRequestsAge to '30' second(s) as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing CleanupCycleMinutes to '10' minute(s) as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing DailyCleanupMinuteOfDay to default value of '120' minutes since midnight because it was not specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing WatsonFlags to '1064' as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing WatsonDumpOnExceptions to 'Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException,Microsoft.ReportingServices.Modeling.InternalModelingException' as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing WatsonDumpExcludeIfContainsExceptions to 'System.Data.SqlClient.SqlException,System.Threading.ThreadAbortException' as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing SecureConnectionLevel to '0' as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing DisplayErrorLink to 'True' as specified in Configuration file.
w3wp!library!5!11/10/2006-13:43:23:: i INFO: Initializing WebServiceUseFileShareStorage to 'False' as specified in Configuration file.
w3wp!resourceutilities!5!11/10/2006-13:43:23:: i INFO: Reporting Services starting SKU: Enterprise
w3wp!resourceutilities!5!11/10/2006-13:43:23:: i INFO: Evaluation copy: 0 days left
w3wp!runningjobs!5!11/10/2006-13:43:23:: i INFO: Database Cleanup (Web Service) timer enabled: Next Event: 600 seconds. Cycle: 600 seconds
w3wp!runningjobs!5!11/10/2006-13:43:23:: i INFO: Running Requests Scavenger timer enabled: Next Event: 60 seconds. Cycle: 60 seconds
w3wp!runningjobs!5!11/10/2006-13:43:23:: i INFO: Running Requests DB timer enabled: Next Event: 60 seconds. Cycle: 60 seconds
w3wp!runningjobs!5!11/10/2006-13:43:23:: i INFO: Memory stats update timer enabled: Next Event: 60 seconds. Cycle: 60 seconds
w3wp!library!5!10/11/2006-13:43:23:: Unhandled exception was caught: Microsoft.Reporting.WebForms.InvalidConfigFileTypeException: The type Microsoft.ReportingServices.UI.WebControlConnection, ReportingServicesWebUserInterface, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91 does not implement IReportServerConnection or could not be found
at Microsoft.Reporting.WebForms.ConfigFilePropertyInterface`1.EnsurePropertyLoaded()
at Microsoft.Reporting.WebForms.ConfigFilePropertyInterface`1.GetInstance()
at Microsoft.Reporting.WebForms.ReportViewer.CreateServerReport()
at Microsoft.Reporting.WebForms.ReportViewer..ctor()
at Microsoft.ReportingServices.WebServer.ReportViewerHost..ctor()
at ASP.pages_reportviewer_aspx.__BuildControlReportViewerForm()
at ASP.pages_reportviewer_aspx.__BuildControlTree(pages_reportviewer_aspx __ctrl)
at ASP.pages_reportviewer_aspx.FrameworkInitialize()
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.pages_reportviewer_aspx.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
w3wp!library!5!10/11/2006-13:43:23:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details., ;
Info: Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details. > Microsoft.Reporting.WebForms.InvalidConfigFileTypeException: The type Microsoft.ReportingServices.UI.WebControlConnection, ReportingServicesWebUserInterface, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91 does not implement IReportServerConnection or could not be found
at Microsoft.Reporting.WebForms.ConfigFilePropertyInterface`1.EnsurePropertyLoaded()
at Microsoft.Reporting.WebForms.ConfigFilePropertyInterface`1.GetInstance()
at Microsoft.Reporting.WebForms.ReportViewer.CreateServerReport()
at Microsoft.Reporting.WebForms.ReportViewer..ctor()
at Microsoft.ReportingServices.WebServer.ReportViewerHost..ctor()
at ASP.pages_reportviewer_aspx.__BuildControlReportViewerForm()
at ASP.pages_reportviewer_aspx.__BuildControlTree(pages_reportviewer_aspx __ctrl)
at ASP.pages_reportviewer_aspx.FrameworkInitialize()
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.pages_reportviewer_aspx.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
End of inner exception stack trace
w3wp!library!5!10/11/2006-13:43:25:: i INFO: Exception dumped to: C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\LogFiles flags= ReferencedMemory, AllThreads, SendToWatson
w3wp!library!5!10/11/2006-13:43:26:: i INFO: Catalog SQL Server Edition = Enterprise
w3wp!webserver!5!11/10/2006-13:43:34:: i INFO: Reporting Web Server stopped

Does anyone have any idea about what happends ? Any suggestions maybe about anything I should try ?

Thanks very much in advance.

[edit] I just installed a few minutes ago the service pack 1 for SQL Server 2005 and Reporting services, but obviously it doesn't change anything to my problem. [/edit]

Have you added / defined a ReportViewerServerConnection key in the <appSettings> for ReportServer's web.config file?

If yes, can you remove it and try agan?

thanx,
Prash

|||

Hi,

First, thank you for answering.

Actually I haven't any <appsetings> in the ReportServer's web.config file. I have that in the ReportManager, which works fine, but not in the ReportServer.

Here is my web.config file for the Report Server :

<?xml version="1.0" encoding="utf-8" ?>

<configuration>

<configSections>

<section name="RStrace" type="Microsoft.ReportingServices.Diagnostics.RSTraceSectionHandler,Microsoft.ReportingServices.Diagnostics" />

</configSections>

<system.diagnostics>

<switches>

<!-- 1 = error, 2 = warning, 3 = info, 4 = verbose -->

<add name="DefaultTraceSwitch" value="3" />

</switches>

<assert assertuienabled="false" />

</system.diagnostics>

<RStrace>

<add name="FileName" value="ReportServer_" />

<add name="FileSizeLimitMb" value="32" />

<add name="KeepFilesForDays" value="14" />

<add name="Prefix" value="tid, time" />

<add name="TraceListeners" value="debugwindow, file" />

<add name="TraceFileMode" value="unique" />

<add name="Components" value="all,RunningJobs:3,SemanticQueryEngine:2,SemanticModelGenerator:2" />

</RStrace>

<system.web>

<pages validateRequest="false" />

<authentication mode="Windows" />

<identity impersonate="true" />

<compilation defaultLanguage="c#" debug="false">

<assemblies>

<clear />

<add assembly="ReportingServicesWebServer" />

</assemblies>

</compilation>

<trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" />

<sessionState mode="Off" />

<httpHandlers>

<add verb="*" path="Reserved.ReportServer" type="Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler, ReportingServicesWebServer" />

<add verb="*" path="Reserved.ReportViewerWebControl.axd" type = "Microsoft.Reporting.WebForms.HttpHandler, ReportingServicesWebServer, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />

</httpHandlers>

<httpModules></httpModules>

<globalization requestEncoding="utf-8" responseEncoding="utf-8" />

<httpRuntime executionTimeout = "9000" />

<securityPolicy>

<trustLevel name="RosettaSrv" policyFile="rssrvpolicy.config" />

</securityPolicy>

<trust level="RosettaSrv" originUrl="" />

</system.web>

<runtime>

<legacyImpersonationPolicy enabled="true"/>

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

<dependentAssembly>

<assemblyIdentity name="Microsoft.ReportingServices.Interfaces"

publicKeyToken="89845dcd8080cc91"

culture="neutral" />

<bindingRedirect oldVersion="8.0.242.0"

newVersion="9.0.242.0"/>

9.00.1399.00

</dependentAssembly>

</assemblyBinding>

</runtime>

</configuration>

If any of you has any suggestion, I already spent a few hours on that problem...

|||

Found a solution here

http://groups.google.com/group/microsoft.public.sqlserver.reportingsvcs/browse_thread/thread/a22799e1a354ea79/9aca125282998795

This fix works assuming that the IIS virtual server that reporting services is installed on uses the same home directory as the Report Manager (in which case the ReportServer web.config inherits the settings from its parent).

An internal error occurred on the report server. See the error log

I've just installed SQL Reporting Services. I have a Report Project in
Visual Studio and added already existing reports. When I try to build the
solution, I get the following error for each report:
An internal error occurred on the report server. See the error log for more
details.
Looking in the Windows Event Viewer, there are no entries that correspond to
this. The most recent entry is an hour ago, even though I got this error
message two minutes ago.
Am I looking in the wrong place? Does anyone have any other suggestions as
to why this won't work?
BTW: I also tried to upload the report on the reportserver. When I try to
run a report from there, I get a similar error:
An internal error occurred on the report server. See the error log for more
details. (rsInternalError) Get Online Help
SELECT permission denied on object 'ExecutionCache', database
'ReportServerTempDB', owner 'dbo'. SELECT permission denied on object
'ExecutionCache', database 'ReportServerTempDB', owner 'dbo'. SELECT
permission denied on object 'SnapshotData', database 'ReportServerTempDB',
owner 'dbo'.
Thank you in advance,
MKFigured it out! I had already set the permissions for the ASPNET user in the
ReportServer table to allow RSExecRole... just had to do the same for the
ReportServerTempDB
"k89mmk" wrote:
> I've just installed SQL Reporting Services. I have a Report Project in
> Visual Studio and added already existing reports. When I try to build the
> solution, I get the following error for each report:
> An internal error occurred on the report server. See the error log for more
> details.
> Looking in the Windows Event Viewer, there are no entries that correspond to
> this. The most recent entry is an hour ago, even though I got this error
> message two minutes ago.
> Am I looking in the wrong place? Does anyone have any other suggestions as
> to why this won't work?
> BTW: I also tried to upload the report on the reportserver. When I try to
> run a report from there, I get a similar error:
> An internal error occurred on the report server. See the error log for more
> details. (rsInternalError) Get Online Help
> SELECT permission denied on object 'ExecutionCache', database
> 'ReportServerTempDB', owner 'dbo'. SELECT permission denied on object
> 'ExecutionCache', database 'ReportServerTempDB', owner 'dbo'. SELECT
> permission denied on object 'SnapshotData', database 'ReportServerTempDB',
> owner 'dbo'.
> Thank you in advance,
> MK|||k89mmk wrote:
> An internal error occurred on the report server. See the error log
> for more details. (rsInternalError) Get Online Help
> SELECT permission denied on object 'ExecutionCache', database
> 'ReportServerTempDB', owner 'dbo'. SELECT permission denied on object
> 'ExecutionCache', database 'ReportServerTempDB', owner 'dbo'. SELECT
> permission denied on object 'SnapshotData', database
> 'ReportServerTempDB', owner 'dbo'.
You will find the reporting-logs normally in:
C:\Programme\Microsoft SQL Server\MSSQL\Reporting Services\LogFiles
Your error assumed that you use nt-authentification and your nt-account has
no sufficient rights on the ReportServer-DBs OR the account under wich the
reportenginge is running has no sufficient rights on his own dbs
regards
Frank
www.xax.de

An internal error occurred on the report server.

Hi Buddies,
I designed one report using SQL Server 2005 Reporting services that has 3
different subreports in it. and It works fine only if i didn't checked it in
to the source safe ( that means without using the source safe). Once i put
it in the source safe and try to run, deploy the report, etc i get the
following error message
" Error 1 An internal error occurred on the report server. See the error log
for more details. " and the Visual Studio businnes intelligence get crashed.
The report only works without using the Visual source safe, '?
Needs Help.
Ermias Tedlais there anybody help me on this bug'
tnx
"Ermias Tedla" <atedla1998@.hotmail.com> wrote in message
news:OmAImZYQHHA.3500@.TK2MSFTNGP05.phx.gbl...
> Hi Buddies,
> I designed one report using SQL Server 2005 Reporting services that has 3
> different subreports in it. and It works fine only if i didn't checked it
> in to the source safe ( that means without using the source safe). Once i
> put it in the source safe and try to run, deploy the report, etc i get the
> following error message
> " Error 1 An internal error occurred on the report server. See the error
> log for more details. " and the Visual Studio businnes intelligence get
> crashed.
>
> The report only works without using the Visual source safe, '?
> Needs Help.
> Ermias Tedla
>

Sunday, March 11, 2012

an error with a subreport

Hello , I have created a new project of reporting services, then I added a rdl file of another report this latter contain asubreport, then when I tried to run this report the rendering of the sub report is failed displaying this error message :

[rsErrorExecutingSubreport] An error occurred while executing the subreport ‘AcctSummarySR’: Report /Sous-rapport Rsum du compte cannot be compiled. Verify the report name and that the report is in the current project.

Even when I add a new sub report the same error message is diplayed related to the new report

Thanks in advance

Both report files (main report and sub report) have to be included in your VS project.|||How do I reference a report in another project (but in the same solution) as a subreport?

an error with a subreport

Hello , I have created a new project of reporting services, then I added a rdl file of another report this latter contain asubreport, then when I tried to run this report the rendering of the sub report is failed displaying this error message :

[rsErrorExecutingSubreport] An error occurred while executing the subreport ‘AcctSummarySR’: Report /Sous-rapport Rsum du compte cannot be compiled. Verify the report name and that the report is in the current project.

Even when I add a new sub report the same error message is diplayed related to the new report

Thanks in advance

Both report files (main report and sub report) have to be included in your VS project.|||How do I reference a report in another project (but in the same solution) as a subreport?

An error occurred while performing this operation.

Hullo Team,

I kindly request for your help so that I could be able to start reporting services.

The main services are running but reporting services is not running.

It actually gives me the following error

TITLE: Microsoft SQL Server Management Studio

Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476


ADDITIONAL INFORMATION:

The Report Server Windows service 'ReportServer' is not running. The service must be running to use Report Server. (rsReportServerServiceUnavailable) (Report Services SOAP Proxy Source)

For help, click: http://go.microsoft.com/fwlink/?LinkId=20476&EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&EvtID=rsReportServerServiceUnavailable&ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&ProdVer=9.00.1399.00

The Report Server Windows service 'ReportServer' is not running. The service must be running to use Report Server. (rsReportServerServiceUnavailable) (Microsoft.ReportingServices.Diagnostics)

For help, click: http://go.microsoft.com/fwlink/?LinkId=20476&EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&EvtID=rsReportServerServiceUnavailable&ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&ProdVer=9.00.1399.00


BUTTONS:

OK

Any help will be highly appreciated.

Ronald

Hullo,

I have solved this problem. I had to change the local service account and reporting services restarted..

But when i try to access Reporting Services from MS SQL SEVER Management Studio, it prompt the following error message.

TITLE: Microsoft SQL Server Management Studio

Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476


ADDITIONAL INFORMATION:

The report server cannot decrypt the symmetric key used to access sensitive or encrypted data in a report server database. You must either restore a backup key or delete all encrypted content. Check the documentation for more information. (rsReportServerDisabled) (rsRPCError) (Report Services SOAP Proxy Source)

For help, click: http://go.microsoft.com/fwlink/?LinkId=20476&EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&EvtID=rsRPCError&ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&ProdVer=9.00.1399.00

The report server cannot decrypt the symmetric key used to access sensitive or encrypted data in a report server database. You must either restore a backup key or delete all encrypted content. Check the documentation for more information. (rsReportServerDisabled) (rsRPCError) (Microsoft.ReportingServices.Diagnostics)

For help, click: http://go.microsoft.com/fwlink/?LinkId=20476&EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&EvtID=rsRPCError&ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&ProdVer=9.00.1399.00

The report server cannot decrypt the symmetric key used to access sensitive or encrypted data in a report server database. You must either restore a backup key or delete all encrypted content. Check the documentation for more information. (rsReportServerDisabled) ()

The report server cannot decrypt the symmetric key used to access sensitive or encrypted data in a report server database. You must either restore a backup key or delete all encrypted content. Check the documentation for more information. (rsReportServerDisabled) ()

The report server cannot decrypt the symmetric key used to access sensitive or encrypted data in a report server database. You must either restore a backup key or delete all encrypted content. Check the documentation for more information. (rsReportServerDisabled) ()

The report server cannot decrypt the symmetric key used to access sensitive or encrypted data in a report server database. You must either restore a backup key or delete all encrypted content. Check the documentation for more information. (rsReportServerDisabled) ()

The report server cannot decrypt the symmetric key used to access sensitive or encrypted data in a report server database. You must either restore a backup key or delete all encrypted content. Check the documentation for more information. (rsReportServerDisabled) ()

Bad Data. (Exception from HRESULT: 0x80090005) ()


BUTTONS:

OK

Could someone help me out.

|||

Use the configuration tool to change windows service accounts. It will prompt you to backup and restore report server key.

Since you have already manually changed account, try one of the following:

1. Change back to the original account, then use the config tool.

2. Change the key from config tool.

Thursday, March 8, 2012

An error occured during printing or An error occurred during print

I get the following error when using the print button on the HTML view of a
report with reporting services 2005.
"An error occured during printing (0x8007F304)"
I have a windows application written in VS2003 .net 1.1 and it loads a
webcontrol to show and print the reports. I am using the URL syntax to view
the report. The report views ok, but when the user clicks the print button,
they get the error.
When I run the report via the report manager, I am able to print directly in
the browser.
Im running XP SP2.
The application I wrote is running under my windows credentials, And I have
rights to print to all the printers.
Also.. when I click print, the print dialog doesnt come up.. just get the
errorHi Sfboiler,
Welcome to MSDN newsgroup.
From your description, you use the IE WebBrowser control in your winform
application which navigate to a certain reporting service's report page and
let the winform app user print the report. However, you found that you'll
get an errro "An error occured during printing (0x8007F304)" when try
printing the reprot through the "printing" button on the page, but this
works well when we navigate the reprot through external IE window, yes?
Based on my local testing, seems a normal report can be printed correctly
both through the IE WebBrowser control and external IE window.... So this
problem is related to the specific envrionment or application. Since the
reporting service's reprot page's print button also use some script to
execute the print command, I'd suggest you also try directly using the
WebBrowser's print command to print the current document to see whether you
can correctly print it. e.g:
private void btnPrint_Click(object sender, System.EventArgs e)
{
mshtml.HTMLDocument doc = axWB.Document as mshtml.HTMLDocument;
if(doc != null)
{
//doc.execCommand("Print", true, 0);
axWB.ExecWB(SHDocVw.OLECMDID.OLECMDID_PRINT,SHDocVw.OLECMDEXECOPT.OLECMDEXEC
OPT_PROMPTUSER);
}
}
If this also fails, I'm afraid there must have something incorrect with the
browser's script engine or else...
In addition, you can also check the reporting service's serverside log
(under ....\Reporting Services\LogFiles folder) to see whether there're
anything incorrectly for the reporter's generating....
If there're anything else found, please feel free to post here.
Thanks,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
| Thread-Topic: An error occured during printing or An error occurred
during print
| thread-index: AcX+c6CWzuG9ppc2S3ekdUXsIh9hsw==| X-WBNR-Posting-Host: 67.109.68.162
| From: "=?Utf-8?B?c2Zib2lsZXJAbm9zcGFtLm5vc3BhbQ==?="
<sfboiler@.nospam.nospam>
| Subject: An error occured during printing or An error occurred during
print
| Date: Sun, 11 Dec 2005 08:55:02 -0800
| Lines: 20
| Message-ID: <25C4730C-D1B0-46A8-BBF7-92DC5CCFAA7A@.microsoft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.sqlserver.reportingsvcs
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.sqlserver.reportingsvcs:64792
| X-Tomcat-NG: microsoft.public.sqlserver.reportingsvcs
|
| I get the following error when using the print button on the HTML view of
a
| report with reporting services 2005.
|
| "An error occured during printing (0x8007F304)"
|
| I have a windows application written in VS2003 .net 1.1 and it loads a
| webcontrol to show and print the reports. I am using the URL syntax to
view
| the report. The report views ok, but when the user clicks the print
button,
| they get the error.
|
| When I run the report via the report manager, I am able to print directly
in
| the browser.
|
| Im running XP SP2.
|
| The application I wrote is running under my windows credentials, And I
have
| rights to print to all the printers.
|
| Also.. when I click print, the print dialog doesnt come up.. just get the
| error
||||The error seem to be speficially with the print control.. In the same
application I am able to right click on the browser window and click print.
Everthing prints fine. But when I use the print button in the "Reporting
Services 2005" tool bar. I get the print error.
To reproduce this error..
1. create a report in RS 2005.
2. Create a windows Application in VS2003 .net framework 1.1 (I use c#)
3. Create a form that embeds the web broswer conrtol.
4. Call the navigate method to show the report in the browser
(Also I have the webserver set as local intranet site in security so that is
passes credentials automatically)
(Im also only showing the export / page / print toolbar)
5. click on the print icon on the report tool bar.
Thats where I get the error.
im usuing 2003 server with reporting services..
and XP sp2, IE 6.0.2900.2180
Bill
"Steven Cheng[MSFT]" wrote:
> Hi Sfboiler,
> Welcome to MSDN newsgroup.
> From your description, you use the IE WebBrowser control in your winform
> application which navigate to a certain reporting service's report page and
> let the winform app user print the report. However, you found that you'll
> get an errro "An error occured during printing (0x8007F304)" when try
> printing the reprot through the "printing" button on the page, but this
> works well when we navigate the reprot through external IE window, yes?
> Based on my local testing, seems a normal report can be printed correctly
> both through the IE WebBrowser control and external IE window.... So this
> problem is related to the specific envrionment or application. Since the
> reporting service's reprot page's print button also use some script to
> execute the print command, I'd suggest you also try directly using the
> WebBrowser's print command to print the current document to see whether you
> can correctly print it. e.g:
> private void btnPrint_Click(object sender, System.EventArgs e)
> {
> mshtml.HTMLDocument doc = axWB.Document as mshtml.HTMLDocument;
> if(doc != null)
> {
> //doc.execCommand("Print", true, 0);
> axWB.ExecWB(SHDocVw.OLECMDID.OLECMDID_PRINT,SHDocVw.OLECMDEXECOPT.OLECMDEXEC
> OPT_PROMPTUSER);
> }
> }
>
> If this also fails, I'm afraid there must have something incorrect with the
> browser's script engine or else...
> In addition, you can also check the reporting service's serverside log
> (under ....\Reporting Services\LogFiles folder) to see whether there're
> anything incorrectly for the reporter's generating....
> If there're anything else found, please feel free to post here.
> Thanks,
> Steven Cheng
> Microsoft Online Support
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
> --
> | Thread-Topic: An error occured during printing or An error occurred
> during print
> | thread-index: AcX+c6CWzuG9ppc2S3ekdUXsIh9hsw==> | X-WBNR-Posting-Host: 67.109.68.162
> | From: "=?Utf-8?B?c2Zib2lsZXJAbm9zcGFtLm5vc3BhbQ==?="
> <sfboiler@.nospam.nospam>
> | Subject: An error occured during printing or An error occurred during
> print
> | Date: Sun, 11 Dec 2005 08:55:02 -0800
> | Lines: 20
> | Message-ID: <25C4730C-D1B0-46A8-BBF7-92DC5CCFAA7A@.microsoft.com>
> | MIME-Version: 1.0
> | Content-Type: text/plain;
> | charset="Utf-8"
> | Content-Transfer-Encoding: 7bit
> | X-Newsreader: Microsoft CDO for Windows 2000
> | Content-Class: urn:content-classes:message
> | Importance: normal
> | Priority: normal
> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
> | Newsgroups: microsoft.public.sqlserver.reportingsvcs
> | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
> | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
> | Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.sqlserver.reportingsvcs:64792
> | X-Tomcat-NG: microsoft.public.sqlserver.reportingsvcs
> |
> | I get the following error when using the print button on the HTML view of
> a
> | report with reporting services 2005.
> |
> | "An error occured during printing (0x8007F304)"
> |
> | I have a windows application written in VS2003 .net 1.1 and it loads a
> | webcontrol to show and print the reports. I am using the URL syntax to
> view
> | the report. The report views ok, but when the user clicks the print
> button,
> | they get the error.
> |
> | When I run the report via the report manager, I am able to print directly
> in
> | the browser.
> |
> | Im running XP SP2.
> |
> | The application I wrote is running under my windows credentials, And I
> have
> | rights to print to all the printers.
> |
> | Also.. when I click print, the print dialog doesnt come up.. just get the
> | error
> |
>|||The print control is not supported in a win forms hosted app. It also
sounds like you have a 2000 version of the print control. To get the 2005
version you will need to manually remove the ActiveX object. (Via
IE->Tools->Internet Option->Settings->View Objects). Then browse to RM and
click on the print icon again.
--
-Daniel
This posting is provided "AS IS" with no warranties, and confers no rights.
<sfboiler@.nospam.nospam> wrote in message
news:044A5757-6288-4FA1-8D9B-E76CA4488755@.microsoft.com...
> The error seem to be speficially with the print control.. In the same
> application I am able to right click on the browser window and click
> print.
> Everthing prints fine. But when I use the print button in the "Reporting
> Services 2005" tool bar. I get the print error.
> To reproduce this error..
> 1. create a report in RS 2005.
> 2. Create a windows Application in VS2003 .net framework 1.1 (I use c#)
> 3. Create a form that embeds the web broswer conrtol.
> 4. Call the navigate method to show the report in the browser
> (Also I have the webserver set as local intranet site in security so that
> is
> passes credentials automatically)
> (Im also only showing the export / page / print toolbar)
> 5. click on the print icon on the report tool bar.
> Thats where I get the error.
> im usuing 2003 server with reporting services..
> and XP sp2, IE 6.0.2900.2180
> Bill
> "Steven Cheng[MSFT]" wrote:
>> Hi Sfboiler,
>> Welcome to MSDN newsgroup.
>> From your description, you use the IE WebBrowser control in your winform
>> application which navigate to a certain reporting service's report page
>> and
>> let the winform app user print the report. However, you found that you'll
>> get an errro "An error occured during printing (0x8007F304)" when try
>> printing the reprot through the "printing" button on the page, but this
>> works well when we navigate the reprot through external IE window, yes?
>> Based on my local testing, seems a normal report can be printed correctly
>> both through the IE WebBrowser control and external IE window.... So
>> this
>> problem is related to the specific envrionment or application. Since the
>> reporting service's reprot page's print button also use some script to
>> execute the print command, I'd suggest you also try directly using the
>> WebBrowser's print command to print the current document to see whether
>> you
>> can correctly print it. e.g:
>> private void btnPrint_Click(object sender, System.EventArgs e)
>> {
>> mshtml.HTMLDocument doc = axWB.Document as mshtml.HTMLDocument;
>> if(doc != null)
>> {
>> //doc.execCommand("Print", true, 0);
>> axWB.ExecWB(SHDocVw.OLECMDID.OLECMDID_PRINT,SHDocVw.OLECMDEXECOPT.OLECMDEXEC
>> OPT_PROMPTUSER);
>> }
>> }
>>
>> If this also fails, I'm afraid there must have something incorrect with
>> the
>> browser's script engine or else...
>> In addition, you can also check the reporting service's serverside log
>> (under ....\Reporting Services\LogFiles folder) to see whether there're
>> anything incorrectly for the reporter's generating....
>> If there're anything else found, please feel free to post here.
>> Thanks,
>> Steven Cheng
>> Microsoft Online Support
>> Get Secure! www.microsoft.com/security
>> (This posting is provided "AS IS", with no warranties, and confers no
>> rights.)
>>
>> --
>> | Thread-Topic: An error occured during printing or An error occurred
>> during print
>> | thread-index: AcX+c6CWzuG9ppc2S3ekdUXsIh9hsw==>> | X-WBNR-Posting-Host: 67.109.68.162
>> | From: "=?Utf-8?B?c2Zib2lsZXJAbm9zcGFtLm5vc3BhbQ==?="
>> <sfboiler@.nospam.nospam>
>> | Subject: An error occured during printing or An error occurred during
>> print
>> | Date: Sun, 11 Dec 2005 08:55:02 -0800
>> | Lines: 20
>> | Message-ID: <25C4730C-D1B0-46A8-BBF7-92DC5CCFAA7A@.microsoft.com>
>> | MIME-Version: 1.0
>> | Content-Type: text/plain;
>> | charset="Utf-8"
>> | Content-Transfer-Encoding: 7bit
>> | X-Newsreader: Microsoft CDO for Windows 2000
>> | Content-Class: urn:content-classes:message
>> | Importance: normal
>> | Priority: normal
>> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
>> | Newsgroups: microsoft.public.sqlserver.reportingsvcs
>> | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
>> | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
>> | Xref: TK2MSFTNGXA02.phx.gbl
>> microsoft.public.sqlserver.reportingsvcs:64792
>> | X-Tomcat-NG: microsoft.public.sqlserver.reportingsvcs
>> |
>> | I get the following error when using the print button on the HTML view
>> of
>> a
>> | report with reporting services 2005.
>> |
>> | "An error occured during printing (0x8007F304)"
>> |
>> | I have a windows application written in VS2003 .net 1.1 and it loads a
>> | webcontrol to show and print the reports. I am using the URL syntax to
>> view
>> | the report. The report views ok, but when the user clicks the print
>> button,
>> | they get the error.
>> |
>> | When I run the report via the report manager, I am able to print
>> directly
>> in
>> | the browser.
>> |
>> | Im running XP SP2.
>> |
>> | The application I wrote is running under my windows credentials, And I
>> have
>> | rights to print to all the printers.
>> |
>> | Also.. when I click print, the print dialog doesnt come up.. just get
>> the
>> | error
>> |
>>|||I deleted and reinstalled the control..
Now I get this error:
"An error occured trying to get the current window"
"Daniel Reib [MSFT]" wrote:
> The print control is not supported in a win forms hosted app. It also
> sounds like you have a 2000 version of the print control. To get the 2005
> version you will need to manually remove the ActiveX object. (Via
> IE->Tools->Internet Option->Settings->View Objects). Then browse to RM and
> click on the print icon again.
> --
> -Daniel
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> <sfboiler@.nospam.nospam> wrote in message
> news:044A5757-6288-4FA1-8D9B-E76CA4488755@.microsoft.com...
> > The error seem to be speficially with the print control.. In the same
> > application I am able to right click on the browser window and click
> > print.
> > Everthing prints fine. But when I use the print button in the "Reporting
> > Services 2005" tool bar. I get the print error.
> >
> > To reproduce this error..
> > 1. create a report in RS 2005.
> > 2. Create a windows Application in VS2003 .net framework 1.1 (I use c#)
> > 3. Create a form that embeds the web broswer conrtol.
> > 4. Call the navigate method to show the report in the browser
> > (Also I have the webserver set as local intranet site in security so that
> > is
> > passes credentials automatically)
> >
> > (Im also only showing the export / page / print toolbar)
> >
> > 5. click on the print icon on the report tool bar.
> >
> > Thats where I get the error.
> >
> > im usuing 2003 server with reporting services..
> > and XP sp2, IE 6.0.2900.2180
> >
> > Bill
> >
> > "Steven Cheng[MSFT]" wrote:
> >
> >> Hi Sfboiler,
> >>
> >> Welcome to MSDN newsgroup.
> >> From your description, you use the IE WebBrowser control in your winform
> >> application which navigate to a certain reporting service's report page
> >> and
> >> let the winform app user print the report. However, you found that you'll
> >> get an errro "An error occured during printing (0x8007F304)" when try
> >> printing the reprot through the "printing" button on the page, but this
> >> works well when we navigate the reprot through external IE window, yes?
> >>
> >> Based on my local testing, seems a normal report can be printed correctly
> >> both through the IE WebBrowser control and external IE window.... So
> >> this
> >> problem is related to the specific envrionment or application. Since the
> >> reporting service's reprot page's print button also use some script to
> >> execute the print command, I'd suggest you also try directly using the
> >> WebBrowser's print command to print the current document to see whether
> >> you
> >> can correctly print it. e.g:
> >>
> >> private void btnPrint_Click(object sender, System.EventArgs e)
> >> {
> >> mshtml.HTMLDocument doc = axWB.Document as mshtml.HTMLDocument;
> >>
> >> if(doc != null)
> >> {
> >> //doc.execCommand("Print", true, 0);
> >>
> >> axWB.ExecWB(SHDocVw.OLECMDID.OLECMDID_PRINT,SHDocVw.OLECMDEXECOPT.OLECMDEXEC
> >> OPT_PROMPTUSER);
> >> }
> >> }
> >>
> >>
> >> If this also fails, I'm afraid there must have something incorrect with
> >> the
> >> browser's script engine or else...
> >>
> >> In addition, you can also check the reporting service's serverside log
> >> (under ....\Reporting Services\LogFiles folder) to see whether there're
> >> anything incorrectly for the reporter's generating....
> >>
> >> If there're anything else found, please feel free to post here.
> >>
> >> Thanks,
> >>
> >> Steven Cheng
> >> Microsoft Online Support
> >>
> >> Get Secure! www.microsoft.com/security
> >> (This posting is provided "AS IS", with no warranties, and confers no
> >> rights.)
> >>
> >>
> >> --
> >> | Thread-Topic: An error occured during printing or An error occurred
> >> during print
> >> | thread-index: AcX+c6CWzuG9ppc2S3ekdUXsIh9hsw==> >> | X-WBNR-Posting-Host: 67.109.68.162
> >> | From: "=?Utf-8?B?c2Zib2lsZXJAbm9zcGFtLm5vc3BhbQ==?="
> >> <sfboiler@.nospam.nospam>
> >> | Subject: An error occured during printing or An error occurred during
> >> print
> >> | Date: Sun, 11 Dec 2005 08:55:02 -0800
> >> | Lines: 20
> >> | Message-ID: <25C4730C-D1B0-46A8-BBF7-92DC5CCFAA7A@.microsoft.com>
> >> | MIME-Version: 1.0
> >> | Content-Type: text/plain;
> >> | charset="Utf-8"
> >> | Content-Transfer-Encoding: 7bit
> >> | X-Newsreader: Microsoft CDO for Windows 2000
> >> | Content-Class: urn:content-classes:message
> >> | Importance: normal
> >> | Priority: normal
> >> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
> >> | Newsgroups: microsoft.public.sqlserver.reportingsvcs
> >> | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
> >> | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
> >> | Xref: TK2MSFTNGXA02.phx.gbl
> >> microsoft.public.sqlserver.reportingsvcs:64792
> >> | X-Tomcat-NG: microsoft.public.sqlserver.reportingsvcs
> >> |
> >> | I get the following error when using the print button on the HTML view
> >> of
> >> a
> >> | report with reporting services 2005.
> >> |
> >> | "An error occured during printing (0x8007F304)"
> >> |
> >> | I have a windows application written in VS2003 .net 1.1 and it loads a
> >> | webcontrol to show and print the reports. I am using the URL syntax to
> >> view
> >> | the report. The report views ok, but when the user clicks the print
> >> button,
> >> | they get the error.
> >> |
> >> | When I run the report via the report manager, I am able to print
> >> directly
> >> in
> >> | the browser.
> >> |
> >> | Im running XP SP2.
> >> |
> >> | The application I wrote is running under my windows credentials, And I
> >> have
> >> | rights to print to all the printers.
> >> |
> >> | Also.. when I click print, the print dialog doesnt come up.. just get
> >> the
> >> | error
> >> |
> >>
> >>
>
>|||That is correct. You are using the control in a Web Form app which hosts IE.
This is not a supported scenario. The print control will not open because
it can not find a handle to the current window.
--
-Daniel
This posting is provided "AS IS" with no warranties, and confers no rights.
<sfboiler@.nospam.nospam> wrote in message
news:A71F127A-8290-4893-BB77-EA8AFEE1D2B8@.microsoft.com...
>I deleted and reinstalled the control..
> Now I get this error:
> "An error occured trying to get the current window"
>
> "Daniel Reib [MSFT]" wrote:
>> The print control is not supported in a win forms hosted app. It also
>> sounds like you have a 2000 version of the print control. To get the
>> 2005
>> version you will need to manually remove the ActiveX object. (Via
>> IE->Tools->Internet Option->Settings->View Objects). Then browse to RM
>> and
>> click on the print icon again.
>> --
>> -Daniel
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>> <sfboiler@.nospam.nospam> wrote in message
>> news:044A5757-6288-4FA1-8D9B-E76CA4488755@.microsoft.com...
>> > The error seem to be speficially with the print control.. In the same
>> > application I am able to right click on the browser window and click
>> > print.
>> > Everthing prints fine. But when I use the print button in the
>> > "Reporting
>> > Services 2005" tool bar. I get the print error.
>> >
>> > To reproduce this error..
>> > 1. create a report in RS 2005.
>> > 2. Create a windows Application in VS2003 .net framework 1.1 (I use c#)
>> > 3. Create a form that embeds the web broswer conrtol.
>> > 4. Call the navigate method to show the report in the browser
>> > (Also I have the webserver set as local intranet site in security so
>> > that
>> > is
>> > passes credentials automatically)
>> >
>> > (Im also only showing the export / page / print toolbar)
>> >
>> > 5. click on the print icon on the report tool bar.
>> >
>> > Thats where I get the error.
>> >
>> > im usuing 2003 server with reporting services..
>> > and XP sp2, IE 6.0.2900.2180
>> >
>> > Bill
>> >
>> > "Steven Cheng[MSFT]" wrote:
>> >
>> >> Hi Sfboiler,
>> >>
>> >> Welcome to MSDN newsgroup.
>> >> From your description, you use the IE WebBrowser control in your
>> >> winform
>> >> application which navigate to a certain reporting service's report
>> >> page
>> >> and
>> >> let the winform app user print the report. However, you found that
>> >> you'll
>> >> get an errro "An error occured during printing (0x8007F304)" when try
>> >> printing the reprot through the "printing" button on the page, but
>> >> this
>> >> works well when we navigate the reprot through external IE window,
>> >> yes?
>> >>
>> >> Based on my local testing, seems a normal report can be printed
>> >> correctly
>> >> both through the IE WebBrowser control and external IE window.... So
>> >> this
>> >> problem is related to the specific envrionment or application. Since
>> >> the
>> >> reporting service's reprot page's print button also use some script to
>> >> execute the print command, I'd suggest you also try directly using the
>> >> WebBrowser's print command to print the current document to see
>> >> whether
>> >> you
>> >> can correctly print it. e.g:
>> >>
>> >> private void btnPrint_Click(object sender, System.EventArgs e)
>> >> {
>> >> mshtml.HTMLDocument doc = axWB.Document as mshtml.HTMLDocument;
>> >>
>> >> if(doc != null)
>> >> {
>> >> //doc.execCommand("Print", true, 0);
>> >>
>> >> axWB.ExecWB(SHDocVw.OLECMDID.OLECMDID_PRINT,SHDocVw.OLECMDEXECOPT.OLECMDEXEC
>> >> OPT_PROMPTUSER);
>> >> }
>> >> }
>> >>
>> >>
>> >> If this also fails, I'm afraid there must have something incorrect
>> >> with
>> >> the
>> >> browser's script engine or else...
>> >>
>> >> In addition, you can also check the reporting service's serverside log
>> >> (under ....\Reporting Services\LogFiles folder) to see whether
>> >> there're
>> >> anything incorrectly for the reporter's generating....
>> >>
>> >> If there're anything else found, please feel free to post here.
>> >>
>> >> Thanks,
>> >>
>> >> Steven Cheng
>> >> Microsoft Online Support
>> >>
>> >> Get Secure! www.microsoft.com/security
>> >> (This posting is provided "AS IS", with no warranties, and confers no
>> >> rights.)
>> >>
>> >>
>> >> --
>> >> | Thread-Topic: An error occured during printing or An error occurred
>> >> during print
>> >> | thread-index: AcX+c6CWzuG9ppc2S3ekdUXsIh9hsw==>> >> | X-WBNR-Posting-Host: 67.109.68.162
>> >> | From: "=?Utf-8?B?c2Zib2lsZXJAbm9zcGFtLm5vc3BhbQ==?="
>> >> <sfboiler@.nospam.nospam>
>> >> | Subject: An error occured during printing or An error occurred
>> >> during
>> >> print
>> >> | Date: Sun, 11 Dec 2005 08:55:02 -0800
>> >> | Lines: 20
>> >> | Message-ID: <25C4730C-D1B0-46A8-BBF7-92DC5CCFAA7A@.microsoft.com>
>> >> | MIME-Version: 1.0
>> >> | Content-Type: text/plain;
>> >> | charset="Utf-8"
>> >> | Content-Transfer-Encoding: 7bit
>> >> | X-Newsreader: Microsoft CDO for Windows 2000
>> >> | Content-Class: urn:content-classes:message
>> >> | Importance: normal
>> >> | Priority: normal
>> >> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
>> >> | Newsgroups: microsoft.public.sqlserver.reportingsvcs
>> >> | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
>> >> | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
>> >> | Xref: TK2MSFTNGXA02.phx.gbl
>> >> microsoft.public.sqlserver.reportingsvcs:64792
>> >> | X-Tomcat-NG: microsoft.public.sqlserver.reportingsvcs
>> >> |
>> >> | I get the following error when using the print button on the HTML
>> >> view
>> >> of
>> >> a
>> >> | report with reporting services 2005.
>> >> |
>> >> | "An error occured during printing (0x8007F304)"
>> >> |
>> >> | I have a windows application written in VS2003 .net 1.1 and it loads
>> >> a
>> >> | webcontrol to show and print the reports. I am using the URL syntax
>> >> to
>> >> view
>> >> | the report. The report views ok, but when the user clicks the print
>> >> button,
>> >> | they get the error.
>> >> |
>> >> | When I run the report via the report manager, I am able to print
>> >> directly
>> >> in
>> >> | the browser.
>> >> |
>> >> | Im running XP SP2.
>> >> |
>> >> | The application I wrote is running under my windows credentials, And
>> >> I
>> >> have
>> >> | rights to print to all the printers.
>> >> |
>> >> | Also.. when I click print, the print dialog doesnt come up.. just
>> >> get
>> >> the
>> >> | error
>> >> |
>> >>
>> >>
>>|||So.. How do I fix it?
The whole reason we are using reporting services is because a microsoft
consultant (Chris Jackson) told us we could imbed it into our application and
that it would work.
Bill
"Daniel Reib [MSFT]" wrote:
> That is correct. You are using the control in a Web Form app which hosts IE.
> This is not a supported scenario. The print control will not open because
> it can not find a handle to the current window.
> --
> -Daniel
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> <sfboiler@.nospam.nospam> wrote in message
> news:A71F127A-8290-4893-BB77-EA8AFEE1D2B8@.microsoft.com...
> >I deleted and reinstalled the control..
> >
> > Now I get this error:
> >
> > "An error occured trying to get the current window"
> >
> >
> > "Daniel Reib [MSFT]" wrote:
> >
> >> The print control is not supported in a win forms hosted app. It also
> >> sounds like you have a 2000 version of the print control. To get the
> >> 2005
> >> version you will need to manually remove the ActiveX object. (Via
> >> IE->Tools->Internet Option->Settings->View Objects). Then browse to RM
> >> and
> >> click on the print icon again.
> >>
> >> --
> >> -Daniel
> >> This posting is provided "AS IS" with no warranties, and confers no
> >> rights.
> >>
> >>
> >> <sfboiler@.nospam.nospam> wrote in message
> >> news:044A5757-6288-4FA1-8D9B-E76CA4488755@.microsoft.com...
> >> > The error seem to be speficially with the print control.. In the same
> >> > application I am able to right click on the browser window and click
> >> > print.
> >> > Everthing prints fine. But when I use the print button in the
> >> > "Reporting
> >> > Services 2005" tool bar. I get the print error.
> >> >
> >> > To reproduce this error..
> >> > 1. create a report in RS 2005.
> >> > 2. Create a windows Application in VS2003 .net framework 1.1 (I use c#)
> >> > 3. Create a form that embeds the web broswer conrtol.
> >> > 4. Call the navigate method to show the report in the browser
> >> > (Also I have the webserver set as local intranet site in security so
> >> > that
> >> > is
> >> > passes credentials automatically)
> >> >
> >> > (Im also only showing the export / page / print toolbar)
> >> >
> >> > 5. click on the print icon on the report tool bar.
> >> >
> >> > Thats where I get the error.
> >> >
> >> > im usuing 2003 server with reporting services..
> >> > and XP sp2, IE 6.0.2900.2180
> >> >
> >> > Bill
> >> >
> >> > "Steven Cheng[MSFT]" wrote:
> >> >
> >> >> Hi Sfboiler,
> >> >>
> >> >> Welcome to MSDN newsgroup.
> >> >> From your description, you use the IE WebBrowser control in your
> >> >> winform
> >> >> application which navigate to a certain reporting service's report
> >> >> page
> >> >> and
> >> >> let the winform app user print the report. However, you found that
> >> >> you'll
> >> >> get an errro "An error occured during printing (0x8007F304)" when try
> >> >> printing the reprot through the "printing" button on the page, but
> >> >> this
> >> >> works well when we navigate the reprot through external IE window,
> >> >> yes?
> >> >>
> >> >> Based on my local testing, seems a normal report can be printed
> >> >> correctly
> >> >> both through the IE WebBrowser control and external IE window.... So
> >> >> this
> >> >> problem is related to the specific envrionment or application. Since
> >> >> the
> >> >> reporting service's reprot page's print button also use some script to
> >> >> execute the print command, I'd suggest you also try directly using the
> >> >> WebBrowser's print command to print the current document to see
> >> >> whether
> >> >> you
> >> >> can correctly print it. e.g:
> >> >>
> >> >> private void btnPrint_Click(object sender, System.EventArgs e)
> >> >> {
> >> >> mshtml.HTMLDocument doc = axWB.Document as mshtml.HTMLDocument;
> >> >>
> >> >> if(doc != null)
> >> >> {
> >> >> //doc.execCommand("Print", true, 0);
> >> >>
> >> >> axWB.ExecWB(SHDocVw.OLECMDID.OLECMDID_PRINT,SHDocVw.OLECMDEXECOPT.OLECMDEXEC
> >> >> OPT_PROMPTUSER);
> >> >> }
> >> >> }
> >> >>
> >> >>
> >> >> If this also fails, I'm afraid there must have something incorrect
> >> >> with
> >> >> the
> >> >> browser's script engine or else...
> >> >>
> >> >> In addition, you can also check the reporting service's serverside log
> >> >> (under ....\Reporting Services\LogFiles folder) to see whether
> >> >> there're
> >> >> anything incorrectly for the reporter's generating....
> >> >>
> >> >> If there're anything else found, please feel free to post here.
> >> >>
> >> >> Thanks,
> >> >>
> >> >> Steven Cheng
> >> >> Microsoft Online Support
> >> >>
> >> >> Get Secure! www.microsoft.com/security
> >> >> (This posting is provided "AS IS", with no warranties, and confers no
> >> >> rights.)
> >> >>
> >> >>
> >> >> --
> >> >> | Thread-Topic: An error occured during printing or An error occurred
> >> >> during print
> >> >> | thread-index: AcX+c6CWzuG9ppc2S3ekdUXsIh9hsw==> >> >> | X-WBNR-Posting-Host: 67.109.68.162
> >> >> | From: "=?Utf-8?B?c2Zib2lsZXJAbm9zcGFtLm5vc3BhbQ==?="
> >> >> <sfboiler@.nospam.nospam>
> >> >> | Subject: An error occured during printing or An error occurred
> >> >> during
> >> >> print
> >> >> | Date: Sun, 11 Dec 2005 08:55:02 -0800
> >> >> | Lines: 20
> >> >> | Message-ID: <25C4730C-D1B0-46A8-BBF7-92DC5CCFAA7A@.microsoft.com>
> >> >> | MIME-Version: 1.0
> >> >> | Content-Type: text/plain;
> >> >> | charset="Utf-8"
> >> >> | Content-Transfer-Encoding: 7bit
> >> >> | X-Newsreader: Microsoft CDO for Windows 2000
> >> >> | Content-Class: urn:content-classes:message
> >> >> | Importance: normal
> >> >> | Priority: normal
> >> >> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
> >> >> | Newsgroups: microsoft.public.sqlserver.reportingsvcs
> >> >> | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
> >> >> | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
> >> >> | Xref: TK2MSFTNGXA02.phx.gbl
> >> >> microsoft.public.sqlserver.reportingsvcs:64792
> >> >> | X-Tomcat-NG: microsoft.public.sqlserver.reportingsvcs
> >> >> |
> >> >> | I get the following error when using the print button on the HTML
> >> >> view
> >> >> of
> >> >> a
> >> >> | report with reporting services 2005.
> >> >> |
> >> >> | "An error occured during printing (0x8007F304)"
> >> >> |
> >> >> | I have a windows application written in VS2003 .net 1.1 and it loads
> >> >> a
> >> >> | webcontrol to show and print the reports. I am using the URL syntax
> >> >> to
> >> >> view
> >> >> | the report. The report views ok, but when the user clicks the print
> >> >> button,
> >> >> | they get the error.
> >> >> |
> >> >> | When I run the report via the report manager, I am able to print
> >> >> directly
> >> >> in
> >> >> | the browser.
> >> >> |
> >> >> | Im running XP SP2.
> >> >> |
> >> >> | The application I wrote is running under my windows credentials, And
> >> >> I
> >> >> have
> >> >> | rights to print to all the printers.
> >> >> |
> >> >> | Also.. when I click print, the print dialog doesnt come up.. just
> >> >> get
> >> >> the
> >> >> | error
> >> >> |
> >> >>
> >> >>
> >>
> >>
> >>
>
>|||"Daniel Reib [MSFT]" <danreib@.online.microsoft.com> wrote in message
news:uTG6ks0$FHA.3136@.TK2MSFTNGP15.phx.gbl...
> That is correct. You are using the control in a Web Form app which hosts
> IE. This is not a supported scenario. The print control will not open
> because it can not find a handle to the current window.
> --
What'! Are you actually saying that trying to print a report from the
ReportServer created web application is not a "supported scenario"'!!!!
How exactly *are* we supposed to print these reports?
Very confused,
Mike|||I might be mistaken but I think the issue here is how it is being done. If
you use the new controls that come with VS 2005 you will get the full
functionality. I haven't used the web control but I have used the new
winform control and the printing functionality is there. If you read the
first post there is URL integration going on. The new controls use web
services which eliminates a lot of the problems.
The new controls have a whole lot of functionality and provide much better
integration with a lot less effort than was possible before.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"Michael Rodriguez" <mike@.nospam.com> wrote in message
news:umDqU72$FHA.3800@.TK2MSFTNGP10.phx.gbl...
> "Daniel Reib [MSFT]" <danreib@.online.microsoft.com> wrote in message
> news:uTG6ks0$FHA.3136@.TK2MSFTNGP15.phx.gbl...
>> That is correct. You are using the control in a Web Form app which hosts
>> IE. This is not a supported scenario. The print control will not open
>> because it can not find a handle to the current window.
>> --
> What'! Are you actually saying that trying to print a report from the
> ReportServer created web application is not a "supported scenario"'!!!!
> How exactly *are* we supposed to print these reports?
> Very confused,
> Mike
>|||Unfortunately the print control had limitations which forced us to not be
able to support this scenario. You can use the new RS 2005 controls which
were designed to be embedded in applications. They do, however, require
that you use RS 2005.
--
-Daniel
This posting is provided "AS IS" with no warranties, and confers no rights.
<sfboiler@.nospam.nospam> wrote in message
news:09EC2A3B-BF05-4135-89B8-FB89A170E7FC@.microsoft.com...
> So.. How do I fix it?
> The whole reason we are using reporting services is because a microsoft
> consultant (Chris Jackson) told us we could imbed it into our application
> and
> that it would work.
> Bill
> "Daniel Reib [MSFT]" wrote:
>> That is correct. You are using the control in a Web Form app which hosts
>> IE.
>> This is not a supported scenario. The print control will not open
>> because
>> it can not find a handle to the current window.
>> --
>> -Daniel
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>> <sfboiler@.nospam.nospam> wrote in message
>> news:A71F127A-8290-4893-BB77-EA8AFEE1D2B8@.microsoft.com...
>> >I deleted and reinstalled the control..
>> >
>> > Now I get this error:
>> >
>> > "An error occured trying to get the current window"
>> >
>> >
>> > "Daniel Reib [MSFT]" wrote:
>> >
>> >> The print control is not supported in a win forms hosted app. It also
>> >> sounds like you have a 2000 version of the print control. To get the
>> >> 2005
>> >> version you will need to manually remove the ActiveX object. (Via
>> >> IE->Tools->Internet Option->Settings->View Objects). Then browse to
>> >> RM
>> >> and
>> >> click on the print icon again.
>> >>
>> >> --
>> >> -Daniel
>> >> This posting is provided "AS IS" with no warranties, and confers no
>> >> rights.
>> >>
>> >>
>> >> <sfboiler@.nospam.nospam> wrote in message
>> >> news:044A5757-6288-4FA1-8D9B-E76CA4488755@.microsoft.com...
>> >> > The error seem to be speficially with the print control.. In the
>> >> > same
>> >> > application I am able to right click on the browser window and click
>> >> > print.
>> >> > Everthing prints fine. But when I use the print button in the
>> >> > "Reporting
>> >> > Services 2005" tool bar. I get the print error.
>> >> >
>> >> > To reproduce this error..
>> >> > 1. create a report in RS 2005.
>> >> > 2. Create a windows Application in VS2003 .net framework 1.1 (I use
>> >> > c#)
>> >> > 3. Create a form that embeds the web broswer conrtol.
>> >> > 4. Call the navigate method to show the report in the browser
>> >> > (Also I have the webserver set as local intranet site in security so
>> >> > that
>> >> > is
>> >> > passes credentials automatically)
>> >> >
>> >> > (Im also only showing the export / page / print toolbar)
>> >> >
>> >> > 5. click on the print icon on the report tool bar.
>> >> >
>> >> > Thats where I get the error.
>> >> >
>> >> > im usuing 2003 server with reporting services..
>> >> > and XP sp2, IE 6.0.2900.2180
>> >> >
>> >> > Bill
>> >> >
>> >> > "Steven Cheng[MSFT]" wrote:
>> >> >
>> >> >> Hi Sfboiler,
>> >> >>
>> >> >> Welcome to MSDN newsgroup.
>> >> >> From your description, you use the IE WebBrowser control in your
>> >> >> winform
>> >> >> application which navigate to a certain reporting service's report
>> >> >> page
>> >> >> and
>> >> >> let the winform app user print the report. However, you found that
>> >> >> you'll
>> >> >> get an errro "An error occured during printing (0x8007F304)" when
>> >> >> try
>> >> >> printing the reprot through the "printing" button on the page, but
>> >> >> this
>> >> >> works well when we navigate the reprot through external IE window,
>> >> >> yes?
>> >> >>
>> >> >> Based on my local testing, seems a normal report can be printed
>> >> >> correctly
>> >> >> both through the IE WebBrowser control and external IE window....
>> >> >> So
>> >> >> this
>> >> >> problem is related to the specific envrionment or application.
>> >> >> Since
>> >> >> the
>> >> >> reporting service's reprot page's print button also use some script
>> >> >> to
>> >> >> execute the print command, I'd suggest you also try directly using
>> >> >> the
>> >> >> WebBrowser's print command to print the current document to see
>> >> >> whether
>> >> >> you
>> >> >> can correctly print it. e.g:
>> >> >>
>> >> >> private void btnPrint_Click(object sender, System.EventArgs e)
>> >> >> {
>> >> >> mshtml.HTMLDocument doc = axWB.Document as mshtml.HTMLDocument;
>> >> >>
>> >> >> if(doc != null)
>> >> >> {
>> >> >> //doc.execCommand("Print", true, 0);
>> >> >>
>> >> >> axWB.ExecWB(SHDocVw.OLECMDID.OLECMDID_PRINT,SHDocVw.OLECMDEXECOPT.OLECMDEXEC
>> >> >> OPT_PROMPTUSER);
>> >> >> }
>> >> >> }
>> >> >>
>> >> >>
>> >> >> If this also fails, I'm afraid there must have something incorrect
>> >> >> with
>> >> >> the
>> >> >> browser's script engine or else...
>> >> >>
>> >> >> In addition, you can also check the reporting service's serverside
>> >> >> log
>> >> >> (under ....\Reporting Services\LogFiles folder) to see whether
>> >> >> there're
>> >> >> anything incorrectly for the reporter's generating....
>> >> >>
>> >> >> If there're anything else found, please feel free to post here.
>> >> >>
>> >> >> Thanks,
>> >> >>
>> >> >> Steven Cheng
>> >> >> Microsoft Online Support
>> >> >>
>> >> >> Get Secure! www.microsoft.com/security
>> >> >> (This posting is provided "AS IS", with no warranties, and confers
>> >> >> no
>> >> >> rights.)
>> >> >>
>> >> >>
>> >> >> --
>> >> >> | Thread-Topic: An error occured during printing or An error
>> >> >> occurred
>> >> >> during print
>> >> >> | thread-index: AcX+c6CWzuG9ppc2S3ekdUXsIh9hsw==>> >> >> | X-WBNR-Posting-Host: 67.109.68.162
>> >> >> | From: "=?Utf-8?B?c2Zib2lsZXJAbm9zcGFtLm5vc3BhbQ==?="
>> >> >> <sfboiler@.nospam.nospam>
>> >> >> | Subject: An error occured during printing or An error occurred
>> >> >> during
>> >> >> print
>> >> >> | Date: Sun, 11 Dec 2005 08:55:02 -0800
>> >> >> | Lines: 20
>> >> >> | Message-ID: <25C4730C-D1B0-46A8-BBF7-92DC5CCFAA7A@.microsoft.com>
>> >> >> | MIME-Version: 1.0
>> >> >> | Content-Type: text/plain;
>> >> >> | charset="Utf-8"
>> >> >> | Content-Transfer-Encoding: 7bit
>> >> >> | X-Newsreader: Microsoft CDO for Windows 2000
>> >> >> | Content-Class: urn:content-classes:message
>> >> >> | Importance: normal
>> >> >> | Priority: normal
>> >> >> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
>> >> >> | Newsgroups: microsoft.public.sqlserver.reportingsvcs
>> >> >> | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
>> >> >> | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
>> >> >> | Xref: TK2MSFTNGXA02.phx.gbl
>> >> >> microsoft.public.sqlserver.reportingsvcs:64792
>> >> >> | X-Tomcat-NG: microsoft.public.sqlserver.reportingsvcs
>> >> >> |
>> >> >> | I get the following error when using the print button on the HTML
>> >> >> view
>> >> >> of
>> >> >> a
>> >> >> | report with reporting services 2005.
>> >> >> |
>> >> >> | "An error occured during printing (0x8007F304)"
>> >> >> |
>> >> >> | I have a windows application written in VS2003 .net 1.1 and it
>> >> >> loads
>> >> >> a
>> >> >> | webcontrol to show and print the reports. I am using the URL
>> >> >> syntax
>> >> >> to
>> >> >> view
>> >> >> | the report. The report views ok, but when the user clicks the
>> >> >> print
>> >> >> button,
>> >> >> | they get the error.
>> >> >> |
>> >> >> | When I run the report via the report manager, I am able to print
>> >> >> directly
>> >> >> in
>> >> >> | the browser.
>> >> >> |
>> >> >> | Im running XP SP2.
>> >> >> |
>> >> >> | The application I wrote is running under my windows credentials,
>> >> >> And
>> >> >> I
>> >> >> have
>> >> >> | rights to print to all the printers.
>> >> >> |
>> >> >> | Also.. when I click print, the print dialog doesnt come up.. just
>> >> >> get
>> >> >> the
>> >> >> | error
>> >> >> |
>> >> >>
>> >> >>
>> >>
>> >>
>> >>
>>|||I'm using RS 2005 and I still get the "cannot get window handle" message in
the IE toolbar created by ReportServer.
"Daniel Reib [MSFT]" <danreib@.online.microsoft.com> wrote in message
news:Occ5qK3$FHA.2256@.TK2MSFTNGP11.phx.gbl...
> Unfortunately the print control had limitations which forced us to not be
> able to support this scenario. You can use the new RS 2005 controls which
> were designed to be embedded in applications. They do, however, require
> that you use RS 2005.
> --
> -Daniel
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
> <sfboiler@.nospam.nospam> wrote in message
> news:09EC2A3B-BF05-4135-89B8-FB89A170E7FC@.microsoft.com...
>> So.. How do I fix it?
>> The whole reason we are using reporting services is because a microsoft
>> consultant (Chris Jackson) told us we could imbed it into our application
>> and
>> that it would work.
>> Bill
>> "Daniel Reib [MSFT]" wrote:
>> That is correct. You are using the control in a Web Form app which hosts
>> IE.
>> This is not a supported scenario. The print control will not open
>> because
>> it can not find a handle to the current window.
>> --
>> -Daniel
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>> <sfboiler@.nospam.nospam> wrote in message
>> news:A71F127A-8290-4893-BB77-EA8AFEE1D2B8@.microsoft.com...
>> >I deleted and reinstalled the control..
>> >
>> > Now I get this error:
>> >
>> > "An error occured trying to get the current window"
>> >
>> >
>> > "Daniel Reib [MSFT]" wrote:
>> >
>> >> The print control is not supported in a win forms hosted app. It
>> >> also
>> >> sounds like you have a 2000 version of the print control. To get the
>> >> 2005
>> >> version you will need to manually remove the ActiveX object. (Via
>> >> IE->Tools->Internet Option->Settings->View Objects). Then browse to
>> >> RM
>> >> and
>> >> click on the print icon again.
>> >>
>> >> --
>> >> -Daniel
>> >> This posting is provided "AS IS" with no warranties, and confers no
>> >> rights.
>> >>
>> >>
>> >> <sfboiler@.nospam.nospam> wrote in message
>> >> news:044A5757-6288-4FA1-8D9B-E76CA4488755@.microsoft.com...
>> >> > The error seem to be speficially with the print control.. In the
>> >> > same
>> >> > application I am able to right click on the browser window and
>> >> > click
>> >> > print.
>> >> > Everthing prints fine. But when I use the print button in the
>> >> > "Reporting
>> >> > Services 2005" tool bar. I get the print error.
>> >> >
>> >> > To reproduce this error..
>> >> > 1. create a report in RS 2005.
>> >> > 2. Create a windows Application in VS2003 .net framework 1.1 (I use
>> >> > c#)
>> >> > 3. Create a form that embeds the web broswer conrtol.
>> >> > 4. Call the navigate method to show the report in the browser
>> >> > (Also I have the webserver set as local intranet site in security
>> >> > so
>> >> > that
>> >> > is
>> >> > passes credentials automatically)
>> >> >
>> >> > (Im also only showing the export / page / print toolbar)
>> >> >
>> >> > 5. click on the print icon on the report tool bar.
>> >> >
>> >> > Thats where I get the error.
>> >> >
>> >> > im usuing 2003 server with reporting services..
>> >> > and XP sp2, IE 6.0.2900.2180
>> >> >
>> >> > Bill
>> >> >
>> >> > "Steven Cheng[MSFT]" wrote:
>> >> >
>> >> >> Hi Sfboiler,
>> >> >>
>> >> >> Welcome to MSDN newsgroup.
>> >> >> From your description, you use the IE WebBrowser control in your
>> >> >> winform
>> >> >> application which navigate to a certain reporting service's report
>> >> >> page
>> >> >> and
>> >> >> let the winform app user print the report. However, you found that
>> >> >> you'll
>> >> >> get an errro "An error occured during printing (0x8007F304)" when
>> >> >> try
>> >> >> printing the reprot through the "printing" button on the page, but
>> >> >> this
>> >> >> works well when we navigate the reprot through external IE window,
>> >> >> yes?
>> >> >>
>> >> >> Based on my local testing, seems a normal report can be printed
>> >> >> correctly
>> >> >> both through the IE WebBrowser control and external IE window....
>> >> >> So
>> >> >> this
>> >> >> problem is related to the specific envrionment or application.
>> >> >> Since
>> >> >> the
>> >> >> reporting service's reprot page's print button also use some
>> >> >> script to
>> >> >> execute the print command, I'd suggest you also try directly using
>> >> >> the
>> >> >> WebBrowser's print command to print the current document to see
>> >> >> whether
>> >> >> you
>> >> >> can correctly print it. e.g:
>> >> >>
>> >> >> private void btnPrint_Click(object sender, System.EventArgs e)
>> >> >> {
>> >> >> mshtml.HTMLDocument doc = axWB.Document as mshtml.HTMLDocument;
>> >> >>
>> >> >> if(doc != null)
>> >> >> {
>> >> >> //doc.execCommand("Print", true, 0);
>> >> >>
>> >> >> axWB.ExecWB(SHDocVw.OLECMDID.OLECMDID_PRINT,SHDocVw.OLECMDEXECOPT.OLECMDEXEC
>> >> >> OPT_PROMPTUSER);
>> >> >> }
>> >> >> }
>> >> >>
>> >> >>
>> >> >> If this also fails, I'm afraid there must have something incorrect
>> >> >> with
>> >> >> the
>> >> >> browser's script engine or else...
>> >> >>
>> >> >> In addition, you can also check the reporting service's serverside
>> >> >> log
>> >> >> (under ....\Reporting Services\LogFiles folder) to see whether
>> >> >> there're
>> >> >> anything incorrectly for the reporter's generating....
>> >> >>
>> >> >> If there're anything else found, please feel free to post here.
>> >> >>
>> >> >> Thanks,
>> >> >>
>> >> >> Steven Cheng
>> >> >> Microsoft Online Support
>> >> >>
>> >> >> Get Secure! www.microsoft.com/security
>> >> >> (This posting is provided "AS IS", with no warranties, and confers
>> >> >> no
>> >> >> rights.)
>> >> >>
>> >> >>
>> >> >> --
>> >> >> | Thread-Topic: An error occured during printing or An error
>> >> >> occurred
>> >> >> during print
>> >> >> | thread-index: AcX+c6CWzuG9ppc2S3ekdUXsIh9hsw==>> >> >> | X-WBNR-Posting-Host: 67.109.68.162
>> >> >> | From: "=?Utf-8?B?c2Zib2lsZXJAbm9zcGFtLm5vc3BhbQ==?="
>> >> >> <sfboiler@.nospam.nospam>
>> >> >> | Subject: An error occured during printing or An error occurred
>> >> >> during
>> >> >> print
>> >> >> | Date: Sun, 11 Dec 2005 08:55:02 -0800
>> >> >> | Lines: 20
>> >> >> | Message-ID: <25C4730C-D1B0-46A8-BBF7-92DC5CCFAA7A@.microsoft.com>
>> >> >> | MIME-Version: 1.0
>> >> >> | Content-Type: text/plain;
>> >> >> | charset="Utf-8"
>> >> >> | Content-Transfer-Encoding: 7bit
>> >> >> | X-Newsreader: Microsoft CDO for Windows 2000
>> >> >> | Content-Class: urn:content-classes:message
>> >> >> | Importance: normal
>> >> >> | Priority: normal
>> >> >> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
>> >> >> | Newsgroups: microsoft.public.sqlserver.reportingsvcs
>> >> >> | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
>> >> >> | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
>> >> >> | Xref: TK2MSFTNGXA02.phx.gbl
>> >> >> microsoft.public.sqlserver.reportingsvcs:64792
>> >> >> | X-Tomcat-NG: microsoft.public.sqlserver.reportingsvcs
>> >> >> |
>> >> >> | I get the following error when using the print button on the
>> >> >> HTML
>> >> >> view
>> >> >> of
>> >> >> a
>> >> >> | report with reporting services 2005.
>> >> >> |
>> >> >> | "An error occured during printing (0x8007F304)"
>> >> >> |
>> >> >> | I have a windows application written in VS2003 .net 1.1 and it
>> >> >> loads
>> >> >> a
>> >> >> | webcontrol to show and print the reports. I am using the URL
>> >> >> syntax
>> >> >> to
>> >> >> view
>> >> >> | the report. The report views ok, but when the user clicks the
>> >> >> print
>> >> >> button,
>> >> >> | they get the error.
>> >> >> |
>> >> >> | When I run the report via the report manager, I am able to print
>> >> >> directly
>> >> >> in
>> >> >> | the browser.
>> >> >> |
>> >> >> | Im running XP SP2.
>> >> >> |
>> >> >> | The application I wrote is running under my windows credentials,
>> >> >> And
>> >> >> I
>> >> >> have
>> >> >> | rights to print to all the printers.
>> >> >> |
>> >> >> | Also.. when I click print, the print dialog doesnt come up..
>> >> >> just
>> >> >> get
>> >> >> the
>> >> >> | error
>> >> >> |
>> >> >>
>> >> >>
>> >>
>> >>
>> >>
>>
>|||I am usuing Visual Studio 2003 (.net 1.1) with Reporting Services 2005. I am
not able to ugrade my application at this time. It is very large and years
in development. we currently have 36mb of souce code and are close to being
ready for deployment. Ugrading to Visual Studio 2005 is not an option at the
moment.
How can this not be supported? Everything I am usuing in Microsoft.
Visual Studio .. Microsoft
Windows XP .. Microsoft
Interenet Explorer .. Microsoft
SQL Server .. Microsoft
Reporting Services .. Microsoft
Its seems to me there is a problem with the ReportingServices print dll.
What good is a reporting tool.. if you cant print?
Bill
"Bruce L-C [MVP]" wrote:
> I might be mistaken but I think the issue here is how it is being done. If
> you use the new controls that come with VS 2005 you will get the full
> functionality. I haven't used the web control but I have used the new
> winform control and the printing functionality is there. If you read the
> first post there is URL integration going on. The new controls use web
> services which eliminates a lot of the problems.
> The new controls have a whole lot of functionality and provide much better
> integration with a lot less effort than was possible before.
>
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
>
> "Michael Rodriguez" <mike@.nospam.com> wrote in message
> news:umDqU72$FHA.3800@.TK2MSFTNGP10.phx.gbl...
> > "Daniel Reib [MSFT]" <danreib@.online.microsoft.com> wrote in message
> > news:uTG6ks0$FHA.3136@.TK2MSFTNGP15.phx.gbl...
> >> That is correct. You are using the control in a Web Form app which hosts
> >> IE. This is not a supported scenario. The print control will not open
> >> because it can not find a handle to the current window.
> >>
> >> --
> >
> > What'! Are you actually saying that trying to print a report from the
> > ReportServer created web application is not a "supported scenario"'!!!!
> > How exactly *are* we supposed to print these reports?
> >
> > Very confused,
> >
> > Mike
> >
> >
>
>|||If you are using RS 2005 then you have at least some of your web site using
framework 2.0 (since it is a framework 2.0 app). Can you leave most of your
app at 1.1 and just have a page with the new control in 2.0? As I said, I
don't know how feasible it is.
The ability to tightly integrate has improved greatly between versions. RS
2005 offers much better integration with the new controls. Because of your
situation it sounds like that is not an option for you at this time. There
are ways around it but nothing is that easy (render to a file on the server
and print that, etc).
It wasn't until SP2 that there was any printing. Previously my users had to
export to PDF and then print. That is still an option.
URL integration has some strong points, web services has it's strong points.
You seem to have hit an issue with URL integration. If there is any way to
use the new controls that would be the best solution.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
<sfboiler@.nospam.nospam> wrote in message
news:2E4460ED-0983-4BD4-856B-CF78A875A615@.microsoft.com...
>I am usuing Visual Studio 2003 (.net 1.1) with Reporting Services 2005. I
>am
> not able to ugrade my application at this time. It is very large and
> years
> in development. we currently have 36mb of souce code and are close to
> being
> ready for deployment. Ugrading to Visual Studio 2005 is not an option at
> the
> moment.
> How can this not be supported? Everything I am usuing in Microsoft.
> Visual Studio .. Microsoft
> Windows XP .. Microsoft
> Interenet Explorer .. Microsoft
> SQL Server .. Microsoft
> Reporting Services .. Microsoft
> Its seems to me there is a problem with the ReportingServices print dll.
> What good is a reporting tool.. if you cant print?
> Bill
>
> "Bruce L-C [MVP]" wrote:
>> I might be mistaken but I think the issue here is how it is being done.
>> If
>> you use the new controls that come with VS 2005 you will get the full
>> functionality. I haven't used the web control but I have used the new
>> winform control and the printing functionality is there. If you read the
>> first post there is URL integration going on. The new controls use web
>> services which eliminates a lot of the problems.
>> The new controls have a whole lot of functionality and provide much
>> better
>> integration with a lot less effort than was possible before.
>>
>> --
>> Bruce Loehle-Conger
>> MVP SQL Server Reporting Services
>>
>> "Michael Rodriguez" <mike@.nospam.com> wrote in message
>> news:umDqU72$FHA.3800@.TK2MSFTNGP10.phx.gbl...
>> > "Daniel Reib [MSFT]" <danreib@.online.microsoft.com> wrote in message
>> > news:uTG6ks0$FHA.3136@.TK2MSFTNGP15.phx.gbl...
>> >> That is correct. You are using the control in a Web Form app which
>> >> hosts
>> >> IE. This is not a supported scenario. The print control will not open
>> >> because it can not find a handle to the current window.
>> >>
>> >> --
>> >
>> > What'! Are you actually saying that trying to print a report from the
>> > ReportServer created web application is not a "supported
>> > scenario"'!!!!
>> > How exactly *are* we supposed to print these reports?
>> >
>> > Very confused,
>> >
>> > Mike
>> >
>> >
>>|||Yes, the IE print control is not supported in hosted winform app. If you
are writing a winform app you should use the report server winform control.
Using this control will allow you to integrate report viewing with printing
into your app.
--
-Daniel
This posting is provided "AS IS" with no warranties, and confers no rights.
"Michael Rodriguez" <mike@.nospam.com> wrote in message
news:uGB4W13$FHA.2092@.TK2MSFTNGP10.phx.gbl...
> I'm using RS 2005 and I still get the "cannot get window handle" message
> in the IE toolbar created by ReportServer.
>
> "Daniel Reib [MSFT]" <danreib@.online.microsoft.com> wrote in message
> news:Occ5qK3$FHA.2256@.TK2MSFTNGP11.phx.gbl...
>> Unfortunately the print control had limitations which forced us to not be
>> able to support this scenario. You can use the new RS 2005 controls
>> which were designed to be embedded in applications. They do, however,
>> require that you use RS 2005.
>> --
>> -Daniel
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>> <sfboiler@.nospam.nospam> wrote in message
>> news:09EC2A3B-BF05-4135-89B8-FB89A170E7FC@.microsoft.com...
>> So.. How do I fix it?
>> The whole reason we are using reporting services is because a microsoft
>> consultant (Chris Jackson) told us we could imbed it into our
>> application and
>> that it would work.
>> Bill
>> "Daniel Reib [MSFT]" wrote:
>> That is correct. You are using the control in a Web Form app which
>> hosts IE.
>> This is not a supported scenario. The print control will not open
>> because
>> it can not find a handle to the current window.
>> --
>> -Daniel
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>> <sfboiler@.nospam.nospam> wrote in message
>> news:A71F127A-8290-4893-BB77-EA8AFEE1D2B8@.microsoft.com...
>> >I deleted and reinstalled the control..
>> >
>> > Now I get this error:
>> >
>> > "An error occured trying to get the current window"
>> >
>> >
>> > "Daniel Reib [MSFT]" wrote:
>> >
>> >> The print control is not supported in a win forms hosted app. It
>> >> also
>> >> sounds like you have a 2000 version of the print control. To get
>> >> the
>> >> 2005
>> >> version you will need to manually remove the ActiveX object. (Via
>> >> IE->Tools->Internet Option->Settings->View Objects). Then browse to
>> >> RM
>> >> and
>> >> click on the print icon again.
>> >>
>> >> --
>> >> -Daniel
>> >> This posting is provided "AS IS" with no warranties, and confers no
>> >> rights.
>> >>
>> >>
>> >> <sfboiler@.nospam.nospam> wrote in message
>> >> news:044A5757-6288-4FA1-8D9B-E76CA4488755@.microsoft.com...
>> >> > The error seem to be speficially with the print control.. In the
>> >> > same
>> >> > application I am able to right click on the browser window and
>> >> > click
>> >> > print.
>> >> > Everthing prints fine. But when I use the print button in the
>> >> > "Reporting
>> >> > Services 2005" tool bar. I get the print error.
>> >> >
>> >> > To reproduce this error..
>> >> > 1. create a report in RS 2005.
>> >> > 2. Create a windows Application in VS2003 .net framework 1.1 (I
>> >> > use c#)
>> >> > 3. Create a form that embeds the web broswer conrtol.
>> >> > 4. Call the navigate method to show the report in the browser
>> >> > (Also I have the webserver set as local intranet site in security
>> >> > so
>> >> > that
>> >> > is
>> >> > passes credentials automatically)
>> >> >
>> >> > (Im also only showing the export / page / print toolbar)
>> >> >
>> >> > 5. click on the print icon on the report tool bar.
>> >> >
>> >> > Thats where I get the error.
>> >> >
>> >> > im usuing 2003 server with reporting services..
>> >> > and XP sp2, IE 6.0.2900.2180
>> >> >
>> >> > Bill
>> >> >
>> >> > "Steven Cheng[MSFT]" wrote:
>> >> >
>> >> >> Hi Sfboiler,
>> >> >>
>> >> >> Welcome to MSDN newsgroup.
>> >> >> From your description, you use the IE WebBrowser control in your
>> >> >> winform
>> >> >> application which navigate to a certain reporting service's
>> >> >> report
>> >> >> page
>> >> >> and
>> >> >> let the winform app user print the report. However, you found
>> >> >> that
>> >> >> you'll
>> >> >> get an errro "An error occured during printing (0x8007F304)" when
>> >> >> try
>> >> >> printing the reprot through the "printing" button on the page,
>> >> >> but
>> >> >> this
>> >> >> works well when we navigate the reprot through external IE
>> >> >> window,
>> >> >> yes?
>> >> >>
>> >> >> Based on my local testing, seems a normal report can be printed
>> >> >> correctly
>> >> >> both through the IE WebBrowser control and external IE
>> >> >> window.... So
>> >> >> this
>> >> >> problem is related to the specific envrionment or application.
>> >> >> Since
>> >> >> the
>> >> >> reporting service's reprot page's print button also use some
>> >> >> script to
>> >> >> execute the print command, I'd suggest you also try directly
>> >> >> using the
>> >> >> WebBrowser's print command to print the current document to see
>> >> >> whether
>> >> >> you
>> >> >> can correctly print it. e.g:
>> >> >>
>> >> >> private void btnPrint_Click(object sender, System.EventArgs e)
>> >> >> {
>> >> >> mshtml.HTMLDocument doc = axWB.Document as mshtml.HTMLDocument;
>> >> >>
>> >> >> if(doc != null)
>> >> >> {
>> >> >> //doc.execCommand("Print", true, 0);
>> >> >>
>> >> >> axWB.ExecWB(SHDocVw.OLECMDID.OLECMDID_PRINT,SHDocVw.OLECMDEXECOPT.OLECMDEXEC
>> >> >> OPT_PROMPTUSER);
>> >> >> }
>> >> >> }
>> >> >>
>> >> >>
>> >> >> If this also fails, I'm afraid there must have something
>> >> >> incorrect
>> >> >> with
>> >> >> the
>> >> >> browser's script engine or else...
>> >> >>
>> >> >> In addition, you can also check the reporting service's
>> >> >> serverside log
>> >> >> (under ....\Reporting Services\LogFiles folder) to see whether
>> >> >> there're
>> >> >> anything incorrectly for the reporter's generating....
>> >> >>
>> >> >> If there're anything else found, please feel free to post here.
>> >> >>
>> >> >> Thanks,
>> >> >>
>> >> >> Steven Cheng
>> >> >> Microsoft Online Support
>> >> >>
>> >> >> Get Secure! www.microsoft.com/security
>> >> >> (This posting is provided "AS IS", with no warranties, and
>> >> >> confers no
>> >> >> rights.)
>> >> >>
>> >> >>
>> >> >> --
>> >> >> | Thread-Topic: An error occured during printing or An error
>> >> >> occurred
>> >> >> during print
>> >> >> | thread-index: AcX+c6CWzuG9ppc2S3ekdUXsIh9hsw==>> >> >> | X-WBNR-Posting-Host: 67.109.68.162
>> >> >> | From: "=?Utf-8?B?c2Zib2lsZXJAbm9zcGFtLm5vc3BhbQ==?="
>> >> >> <sfboiler@.nospam.nospam>
>> >> >> | Subject: An error occured during printing or An error occurred
>> >> >> during
>> >> >> print
>> >> >> | Date: Sun, 11 Dec 2005 08:55:02 -0800
>> >> >> | Lines: 20
>> >> >> | Message-ID:
>> >> >> <25C4730C-D1B0-46A8-BBF7-92DC5CCFAA7A@.microsoft.com>
>> >> >> | MIME-Version: 1.0
>> >> >> | Content-Type: text/plain;
>> >> >> | charset="Utf-8"
>> >> >> | Content-Transfer-Encoding: 7bit
>> >> >> | X-Newsreader: Microsoft CDO for Windows 2000
>> >> >> | Content-Class: urn:content-classes:message
>> >> >> | Importance: normal
>> >> >> | Priority: normal
>> >> >> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
>> >> >> | Newsgroups: microsoft.public.sqlserver.reportingsvcs
>> >> >> | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
>> >> >> | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
>> >> >> | Xref: TK2MSFTNGXA02.phx.gbl
>> >> >> microsoft.public.sqlserver.reportingsvcs:64792
>> >> >> | X-Tomcat-NG: microsoft.public.sqlserver.reportingsvcs
>> >> >> |
>> >> >> | I get the following error when using the print button on the
>> >> >> HTML
>> >> >> view
>> >> >> of
>> >> >> a
>> >> >> | report with reporting services 2005.
>> >> >> |
>> >> >> | "An error occured during printing (0x8007F304)"
>> >> >> |
>> >> >> | I have a windows application written in VS2003 .net 1.1 and it
>> >> >> loads
>> >> >> a
>> >> >> | webcontrol to show and print the reports. I am using the URL
>> >> >> syntax
>> >> >> to
>> >> >> view
>> >> >> | the report. The report views ok, but when the user clicks the
>> >> >> print
>> >> >> button,
>> >> >> | they get the error.
>> >> >> |
>> >> >> | When I run the report via the report manager, I am able to
>> >> >> print
>> >> >> directly
>> >> >> in
>> >> >> | the browser.
>> >> >> |
>> >> >> | Im running XP SP2.
>> >> >> |
>> >> >> | The application I wrote is running under my windows
>> >> >> credentials, And
>> >> >> I
>> >> >> have
>> >> >> | rights to print to all the printers.
>> >> >> |
>> >> >> | Also.. when I click print, the print dialog doesnt come up..
>> >> >> just
>> >> >> get
>> >> >> the
>> >> >> | error
>> >> >> |
>> >> >>
>> >> >>
>> >>
>> >>
>> >>
>>
>>
>|||Daniel,
I don't think we're connecting here. Here is what I am doing:
- I upload the reports from VS to http://localhost/ReportServer
- I pull up IE and browse to http://localhost/Reports
- I select a report and preview it
- I click the print button on the reports toolbar right next to the export
and refresh buttons
- It tells me "an error occurred trying to get the current window"
This is not a hosted winform app. This is the IE app ReportServer created
for me. Is this scenario supposed to be supported? If not, why did MS put
the print button there in the first place?
Thank you very much for you help,
Mike Rodriguez
"Daniel Reib [MSFT]" <danreib@.online.microsoft.com> wrote in message
news:%23ZGdkyAAGHA.3136@.TK2MSFTNGP15.phx.gbl...
> Yes, the IE print control is not supported in hosted winform app. If you
> are writing a winform app you should use the report server winform
> control. Using this control will allow you to integrate report viewing
> with printing into your app.
> --
> -Daniel
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
> "Michael Rodriguez" <mike@.nospam.com> wrote in message
> news:uGB4W13$FHA.2092@.TK2MSFTNGP10.phx.gbl...
>> I'm using RS 2005 and I still get the "cannot get window handle" message
>> in the IE toolbar created by ReportServer.
>>
>> "Daniel Reib [MSFT]" <danreib@.online.microsoft.com> wrote in message
>> news:Occ5qK3$FHA.2256@.TK2MSFTNGP11.phx.gbl...
>> Unfortunately the print control had limitations which forced us to not
>> be able to support this scenario. You can use the new RS 2005 controls
>> which were designed to be embedded in applications. They do, however,
>> require that you use RS 2005.
>> --
>> -Daniel
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>> <sfboiler@.nospam.nospam> wrote in message
>> news:09EC2A3B-BF05-4135-89B8-FB89A170E7FC@.microsoft.com...
>> So.. How do I fix it?
>> The whole reason we are using reporting services is because a microsoft
>> consultant (Chris Jackson) told us we could imbed it into our
>> application and
>> that it would work.
>> Bill
>> "Daniel Reib [MSFT]" wrote:
>> That is correct. You are using the control in a Web Form app which
>> hosts IE.
>> This is not a supported scenario. The print control will not open
>> because
>> it can not find a handle to the current window.
>> --
>> -Daniel
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>> <sfboiler@.nospam.nospam> wrote in message
>> news:A71F127A-8290-4893-BB77-EA8AFEE1D2B8@.microsoft.com...
>> >I deleted and reinstalled the control..
>> >
>> > Now I get this error:
>> >
>> > "An error occured trying to get the current window"
>> >
>> >
>> > "Daniel Reib [MSFT]" wrote:
>> >
>> >> The print control is not supported in a win forms hosted app. It
>> >> also
>> >> sounds like you have a 2000 version of the print control. To get
>> >> the
>> >> 2005
>> >> version you will need to manually remove the ActiveX object. (Via
>> >> IE->Tools->Internet Option->Settings->View Objects). Then browse
>> >> to RM
>> >> and
>> >> click on the print icon again.
>> >>
>> >> --
>> >> -Daniel
>> >> This posting is provided "AS IS" with no warranties, and confers no
>> >> rights.
>> >>
>> >>
>> >> <sfboiler@.nospam.nospam> wrote in message
>> >> news:044A5757-6288-4FA1-8D9B-E76CA4488755@.microsoft.com...
>> >> > The error seem to be speficially with the print control.. In the
>> >> > same
>> >> > application I am able to right click on the browser window and
>> >> > click
>> >> > print.
>> >> > Everthing prints fine. But when I use the print button in the
>> >> > "Reporting
>> >> > Services 2005" tool bar. I get the print error.
>> >> >
>> >> > To reproduce this error..
>> >> > 1. create a report in RS 2005.
>> >> > 2. Create a windows Application in VS2003 .net framework 1.1 (I
>> >> > use c#)
>> >> > 3. Create a form that embeds the web broswer conrtol.
>> >> > 4. Call the navigate method to show the report in the browser
>> >> > (Also I have the webserver set as local intranet site in security
>> >> > so
>> >> > that
>> >> > is
>> >> > passes credentials automatically)
>> >> >
>> >> > (Im also only showing the export / page / print toolbar)
>> >> >
>> >> > 5. click on the print icon on the report tool bar.
>> >> >
>> >> > Thats where I get the error.
>> >> >
>> >> > im usuing 2003 server with reporting services..
>> >> > and XP sp2, IE 6.0.2900.2180
>> >> >
>> >> > Bill
>> >> >
>> >> > "Steven Cheng[MSFT]" wrote:
>> >> >
>> >> >> Hi Sfboiler,
>> >> >>
>> >> >> Welcome to MSDN newsgroup.
>> >> >> From your description, you use the IE WebBrowser control in your
>> >> >> winform
>> >> >> application which navigate to a certain reporting service's
>> >> >> report
>> >> >> page
>> >> >> and
>> >> >> let the winform app user print the report. However, you found
>> >> >> that
>> >> >> you'll
>> >> >> get an errro "An error occured during printing (0x8007F304)"
>> >> >> when try
>> >> >> printing the reprot through the "printing" button on the page,
>> >> >> but
>> >> >> this
>> >> >> works well when we navigate the reprot through external IE
>> >> >> window,
>> >> >> yes?
>> >> >>
>> >> >> Based on my local testing, seems a normal report can be printed
>> >> >> correctly
>> >> >> both through the IE WebBrowser control and external IE
>> >> >> window.... So
>> >> >> this
>> >> >> problem is related to the specific envrionment or application.
>> >> >> Since
>> >> >> the
>> >> >> reporting service's reprot page's print button also use some
>> >> >> script to
>> >> >> execute the print command, I'd suggest you also try directly
>> >> >> using the
>> >> >> WebBrowser's print command to print the current document to see
>> >> >> whether
>> >> >> you
>> >> >> can correctly print it. e.g:
>> >> >>
>> >> >> private void btnPrint_Click(object sender, System.EventArgs e)
>> >> >> {
>> >> >> mshtml.HTMLDocument doc = axWB.Document as mshtml.HTMLDocument;
>> >> >>
>> >> >> if(doc != null)
>> >> >> {
>> >> >> //doc.execCommand("Print", true, 0);
>> >> >>
>> >> >> axWB.ExecWB(SHDocVw.OLECMDID.OLECMDID_PRINT,SHDocVw.OLECMDEXECOPT.OLECMDEXEC
>> >> >> OPT_PROMPTUSER);
>> >> >> }
>> >> >> }
>> >> >>
>> >> >>
>> >> >> If this also fails, I'm afraid there must have something
>> >> >> incorrect
>> >> >> with
>> >> >> the
>> >> >> browser's script engine or else...
>> >> >>
>> >> >> In addition, you can also check the reporting service's
>> >> >> serverside log
>> >> >> (under ....\Reporting Services\LogFiles folder) to see whether
>> >> >> there're
>> >> >> anything incorrectly for the reporter's generating....
>> >> >>
>> >> >> If there're anything else found, please feel free to post here.
>> >> >>
>> >> >> Thanks,
>> >> >>
>> >> >> Steven Cheng
>> >> >> Microsoft Online Support
>> >> >>
>> >> >> Get Secure! www.microsoft.com/security
>> >> >> (This posting is provided "AS IS", with no warranties, and
>> >> >> confers no
>> >> >> rights.)
>> >> >>
>> >> >>
>> >> >> --
>> >> >> | Thread-Topic: An error occured during printing or An error
>> >> >> occurred
>> >> >> during print
>> >> >> | thread-index: AcX+c6CWzuG9ppc2S3ekdUXsIh9hsw==>> >> >> | X-WBNR-Posting-Host: 67.109.68.162
>> >> >> | From: "=?Utf-8?B?c2Zib2lsZXJAbm9zcGFtLm5vc3BhbQ==?="
>> >> >> <sfboiler@.nospam.nospam>
>> >> >> | Subject: An error occured during printing or An error occurred
>> >> >> during
>> >> >> print
>> >> >> | Date: Sun, 11 Dec 2005 08:55:02 -0800
>> >> >> | Lines: 20
>> >> >> | Message-ID:
>> >> >> <25C4730C-D1B0-46A8-BBF7-92DC5CCFAA7A@.microsoft.com>
>> >> >> | MIME-Version: 1.0
>> >> >> | Content-Type: text/plain;
>> >> >> | charset="Utf-8"
>> >> >> | Content-Transfer-Encoding: 7bit
>> >> >> | X-Newsreader: Microsoft CDO for Windows 2000
>> >> >> | Content-Class: urn:content-classes:message
>> >> >> | Importance: normal
>> >> >> | Priority: normal
>> >> >> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
>> >> >> | Newsgroups: microsoft.public.sqlserver.reportingsvcs
>> >> >> | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
>> >> >> | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
>> >> >> | Xref: TK2MSFTNGXA02.phx.gbl
>> >> >> microsoft.public.sqlserver.reportingsvcs:64792
>> >> >> | X-Tomcat-NG: microsoft.public.sqlserver.reportingsvcs
>> >> >> |
>> >> >> | I get the following error when using the print button on the
>> >> >> HTML
>> >> >> view
>> >> >> of
>> >> >> a
>> >> >> | report with reporting services 2005.
>> >> >> |
>> >> >> | "An error occured during printing (0x8007F304)"
>> >> >> |
>> >> >> | I have a windows application written in VS2003 .net 1.1 and it
>> >> >> loads
>> >> >> a
>> >> >> | webcontrol to show and print the reports. I am using the URL
>> >> >> syntax
>> >> >> to
>> >> >> view
>> >> >> | the report. The report views ok, but when the user clicks the
>> >> >> print
>> >> >> button,
>> >> >> | they get the error.
>> >> >> |
>> >> >> | When I run the report via the report manager, I am able to
>> >> >> print
>> >> >> directly
>> >> >> in
>> >> >> | the browser.
>> >> >> |
>> >> >> | Im running XP SP2.
>> >> >> |
>> >> >> | The application I wrote is running under my windows
>> >> >> credentials, And
>> >> >> I
>> >> >> have
>> >> >> | rights to print to all the printers.
>> >> >> |
>> >> >> | Also.. when I click print, the print dialog doesnt come up..
>> >> >> just
>> >> >> get
>> >> >> the
>> >> >> | error
>> >> >> |
>> >> >>
>> >> >>
>> >>
>> >>
>> >>
>>
>>
>>
>|||Are you physically sitting at the machine or did you connect via remote
desktop or terminal services? Since you are using localhost it is one or the
other. What OS do you have RS running with?
Are you an admin on the box? For this to work it will want to install an
active x control.
It gets confusing because when you said App everyone thought you had your
own asp.net app and were integrating with either URL integration or web
services. For the future, what you are doing is called using Report Manager
(this is what I call the portal that ships with RS).
Note, from IE using Report Manager, printing should work. However, for it to
work, the active x control has to get installed.
If you are on the server (particularly Windows 2003 server OS) there can be
security issues that might trip you up.
I have lots of users using this printing (it came out with SP2 and continued
with RS 2005). All my users have IE6 and either 2000 Pro or XP Pro. All the
users are local admin. In this environment it has worked every time.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"Michael Rodriguez" <mike@.nospam.com> wrote in message
news:OFs68pBAGHA.2148@.TK2MSFTNGP10.phx.gbl...
> Daniel,
> I don't think we're connecting here. Here is what I am doing:
> - I upload the reports from VS to http://localhost/ReportServer
> - I pull up IE and browse to http://localhost/Reports
> - I select a report and preview it
> - I click the print button on the reports toolbar right next to the export
> and refresh buttons
> - It tells me "an error occurred trying to get the current window"
> This is not a hosted winform app. This is the IE app ReportServer created
> for me. Is this scenario supposed to be supported? If not, why did MS
> put the print button there in the first place?
> Thank you very much for you help,
> Mike Rodriguez
>
> "Daniel Reib [MSFT]" <danreib@.online.microsoft.com> wrote in message
> news:%23ZGdkyAAGHA.3136@.TK2MSFTNGP15.phx.gbl...
>> Yes, the IE print control is not supported in hosted winform app. If you
>> are writing a winform app you should use the report server winform
>> control. Using this control will allow you to integrate report viewing
>> with printing into your app.
>> --
>> -Daniel
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>> "Michael Rodriguez" <mike@.nospam.com> wrote in message
>> news:uGB4W13$FHA.2092@.TK2MSFTNGP10.phx.gbl...
>> I'm using RS 2005 and I still get the "cannot get window handle" message
>> in the IE toolbar created by ReportServer.
>>
>> "Daniel Reib [MSFT]" <danreib@.online.microsoft.com> wrote in message
>> news:Occ5qK3$FHA.2256@.TK2MSFTNGP11.phx.gbl...
>> Unfortunately the print control had limitations which forced us to not
>> be able to support this scenario. You can use the new RS 2005 controls
>> which were designed to be embedded in applications. They do, however,
>> require that you use RS 2005.
>> --
>> -Daniel
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>> <sfboiler@.nospam.nospam> wrote in message
>> news:09EC2A3B-BF05-4135-89B8-FB89A170E7FC@.microsoft.com...
>> So.. How do I fix it?
>> The whole reason we are using reporting services is because a
>> microsoft
>> consultant (Chris Jackson) told us we could imbed it into our
>> application and
>> that it would work.
>> Bill
>> "Daniel Reib [MSFT]" wrote:
>> That is correct. You are using the control in a Web Form app which
>> hosts IE.
>> This is not a supported scenario. The print control will not open
>> because
>> it can not find a handle to the current window.
>> --
>> -Daniel
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>> <sfboiler@.nospam.nospam> wrote in message
>> news:A71F127A-8290-4893-BB77-EA8AFEE1D2B8@.microsoft.com...
>> >I deleted and reinstalled the control..
>> >
>> > Now I get this error:
>> >
>> > "An error occured trying to get the current window"
>> >
>> >
>> > "Daniel Reib [MSFT]" wrote:
>> >
>> >> The print control is not supported in a win forms hosted app. It
>> >> also
>> >> sounds like you have a 2000 version of the print control. To get
>> >> the
>> >> 2005
>> >> version you will need to manually remove the ActiveX object. (Via
>> >> IE->Tools->Internet Option->Settings->View Objects). Then browse
>> >> to RM
>> >> and
>> >> click on the print icon again.
>> >>
>> >> --
>> >> -Daniel
>> >> This posting is provided "AS IS" with no warranties, and confers
>> >> no
>> >> rights.
>> >>
>> >>
>> >> <sfboiler@.nospam.nospam> wrote in message
>> >> news:044A5757-6288-4FA1-8D9B-E76CA4488755@.microsoft.com...
>> >> > The error seem to be speficially with the print control.. In the
>> >> > same
>> >> > application I am able to right click on the browser window and
>> >> > click
>> >> > print.
>> >> > Everthing prints fine. But when I use the print button in the
>> >> > "Reporting
>> >> > Services 2005" tool bar. I get the print error.
>> >> >
>> >> > To reproduce this error..
>> >> > 1. create a report in RS 2005.
>> >> > 2. Create a windows Application in VS2003 .net framework 1.1 (I
>> >> > use c#)
>> >> > 3. Create a form that embeds the web broswer conrtol.
>> >> > 4. Call the navigate method to show the report in the browser
>> >> > (Also I have the webserver set as local intranet site in
>> >> > security so
>> >> > that
>> >> > is
>> >> > passes credentials automatically)
>> >> >
>> >> > (Im also only showing the export / page / print toolbar)
>> >> >
>> >> > 5. click on the print icon on the report tool bar.
>> >> >
>> >> > Thats where I get the error.
>> >> >
>> >> > im usuing 2003 server with reporting services..
>> >> > and XP sp2, IE 6.0.2900.2180
>> >> >
>> >> > Bill
>> >> >
>> >> > "Steven Cheng[MSFT]" wrote:
>> >> >
>> >> >> Hi Sfboiler,
>> >> >>
>> >> >> Welcome to MSDN newsgroup.
>> >> >> From your description, you use the IE WebBrowser control in
>> >> >> your
>> >> >> winform
>> >> >> application which navigate to a certain reporting service's
>> >> >> report
>> >> >> page
>> >> >> and
>> >> >> let the winform app user print the report. However, you found
>> >> >> that
>> >> >> you'll
>> >> >> get an errro "An error occured during printing (0x8007F304)"
>> >> >> when try
>> >> >> printing the reprot through the "printing" button on the page,
>> >> >> but
>> >> >> this
>> >> >> works well when we navigate the reprot through external IE
>> >> >> window,
>> >> >> yes?
>> >> >>
>> >> >> Based on my local testing, seems a normal report can be printed
>> >> >> correctly
>> >> >> both through the IE WebBrowser control and external IE
>> >> >> window.... So
>> >> >> this
>> >> >> problem is related to the specific envrionment or application.
>> >> >> Since
>> >> >> the
>> >> >> reporting service's reprot page's print button also use some
>> >> >> script to
>> >> >> execute the print command, I'd suggest you also try directly
>> >> >> using the
>> >> >> WebBrowser's print command to print the current document to see
>> >> >> whether
>> >> >> you
>> >> >> can correctly print it. e.g:
>> >> >>
>> >> >> private void btnPrint_Click(object sender, System.EventArgs e)
>> >> >> {
>> >> >> mshtml.HTMLDocument doc = axWB.Document as mshtml.HTMLDocument;
>> >> >>
>> >> >> if(doc != null)
>> >> >> {
>> >> >> //doc.execCommand("Print", true, 0);
>> >> >>
>> >> >> axWB.ExecWB(SHDocVw.OLECMDID.OLECMDID_PRINT,SHDocVw.OLECMDEXECOPT.OLECMDEXEC
>> >> >> OPT_PROMPTUSER);
>> >> >> }
>> >> >> }
>> >> >>
>> >> >>
>> >> >> If this also fails, I'm afraid there must have something
>> >> >> incorrect
>> >> >> with
>> >> >> the
>> >> >> browser's script engine or else...
>> >> >>
>> >> >> In addition, you can also check the reporting service's
>> >> >> serverside log
>> >> >> (under ....\Reporting Services\LogFiles folder) to see whether
>> >> >> there're
>> >> >> anything incorrectly for the reporter's generating....
>> >> >>
>> >> >> If there're anything else found, please feel free to post here.
>> >> >>
>> >> >> Thanks,
>> >> >>
>> >> >> Steven Cheng
>> >> >> Microsoft Online Support
>> >> >>
>> >> >> Get Secure! www.microsoft.com/security
>> >> >> (This posting is provided "AS IS", with no warranties, and
>> >> >> confers no
>> >> >> rights.)
>> >> >>
>> >> >>
>> >> >> --
>> >> >> | Thread-Topic: An error occured during printing or An error
>> >> >> occurred
>> >> >> during print
>> >> >> | thread-index: AcX+c6CWzuG9ppc2S3ekdUXsIh9hsw==>> >> >> | X-WBNR-Posting-Host: 67.109.68.162
>> >> >> | From: "=?Utf-8?B?c2Zib2lsZXJAbm9zcGFtLm5vc3BhbQ==?="
>> >> >> <sfboiler@.nospam.nospam>
>> >> >> | Subject: An error occured during printing or An error
>> >> >> occurred
>> >> >> during
>> >> >> print
>> >> >> | Date: Sun, 11 Dec 2005 08:55:02 -0800
>> >> >> | Lines: 20
>> >> >> | Message-ID:
>> >> >> <25C4730C-D1B0-46A8-BBF7-92DC5CCFAA7A@.microsoft.com>
>> >> >> | MIME-Version: 1.0
>> >> >> | Content-Type: text/plain;
>> >> >> | charset="Utf-8"
>> >> >> | Content-Transfer-Encoding: 7bit
>> >> >> | X-Newsreader: Microsoft CDO for Windows 2000
>> >> >> | Content-Class: urn:content-classes:message
>> >> >> | Importance: normal
>> >> >> | Priority: normal
>> >> >> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
>> >> >> | Newsgroups: microsoft.public.sqlserver.reportingsvcs
>> >> >> | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
>> >> >> | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
>> >> >> | Xref: TK2MSFTNGXA02.phx.gbl
>> >> >> microsoft.public.sqlserver.reportingsvcs:64792
>> >> >> | X-Tomcat-NG: microsoft.public.sqlserver.reportingsvcs
>> >> >> |
>> >> >> | I get the following error when using the print button on the
>> >> >> HTML
>> >> >> view
>> >> >> of
>> >> >> a
>> >> >> | report with reporting services 2005.
>> >> >> |
>> >> >> | "An error occured during printing (0x8007F304)"
>> >> >> |
>> >> >> | I have a windows application written in VS2003 .net 1.1 and
>> >> >> it loads
>> >> >> a
>> >> >> | webcontrol to show and print the reports. I am using the URL
>> >> >> syntax
>> >> >> to
>> >> >> view
>> >> >> | the report. The report views ok, but when the user clicks
>> >> >> the print
>> >> >> button,
>> >> >> | they get the error.
>> >> >> |
>> >> >> | When I run the report via the report manager, I am able to
>> >> >> print
>> >> >> directly
>> >> >> in
>> >> >> | the browser.
>> >> >> |
>> >> >> | Im running XP SP2.
>> >> >> |
>> >> >> | The application I wrote is running under my windows
>> >> >> credentials, And
>> >> >> I
>> >> >> have
>> >> >> | rights to print to all the printers.
>> >> >> |
>> >> >> | Also.. when I click print, the print dialog doesnt come up..
>> >> >> just
>> >> >> get
>> >> >> the
>> >> >> | error
>> >> >> |
>> >> >>
>> >> >>
>> >>
>> >>
>> >>
>>
>>
>>
>>
>|||We are usuing a windows app with version .net 1.1. Reporting Services is
running on a differnat server so we do not having any code in .net 2.0.
Our webservices are written in c# .net 1.1 and are not deployed to the same
server as reporting services runs from
We are linking to Reporting services usuing URL access with the IE control
embeded into the windows form.
Bill
"Bruce L-C [MVP]" wrote:
> If you are using RS 2005 then you have at least some of your web site using
> framework 2.0 (since it is a framework 2.0 app). Can you leave most of your
> app at 1.1 and just have a page with the new control in 2.0? As I said, I
> don't know how feasible it is.
> The ability to tightly integrate has improved greatly between versions. RS
> 2005 offers much better integration with the new controls. Because of your
> situation it sounds like that is not an option for you at this time. There
> are ways around it but nothing is that easy (render to a file on the server
> and print that, etc).
> It wasn't until SP2 that there was any printing. Previously my users had to
> export to PDF and then print. That is still an option.
> URL integration has some strong points, web services has it's strong points.
> You seem to have hit an issue with URL integration. If there is any way to
> use the new controls that would be the best solution.
>
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
> <sfboiler@.nospam.nospam> wrote in message
> news:2E4460ED-0983-4BD4-856B-CF78A875A615@.microsoft.com...
> >I am usuing Visual Studio 2003 (.net 1.1) with Reporting Services 2005. I
> >am
> > not able to ugrade my application at this time. It is very large and
> > years
> > in development. we currently have 36mb of souce code and are close to
> > being
> > ready for deployment. Ugrading to Visual Studio 2005 is not an option at
> > the
> > moment.
> >
> > How can this not be supported? Everything I am usuing in Microsoft.
> >
> > Visual Studio .. Microsoft
> > Windows XP .. Microsoft
> > Interenet Explorer .. Microsoft
> > SQL Server .. Microsoft
> > Reporting Services .. Microsoft
> >
> > Its seems to me there is a problem with the ReportingServices print dll.
> >
> > What good is a reporting tool.. if you cant print?
> >
> > Bill
> >
> >
> > "Bruce L-C [MVP]" wrote:
> >
> >> I might be mistaken but I think the issue here is how it is being done.
> >> If
> >> you use the new controls that come with VS 2005 you will get the full
> >> functionality. I haven't used the web control but I have used the new
> >> winform control and the printing functionality is there. If you read the
> >> first post there is URL integration going on. The new controls use web
> >> services which eliminates a lot of the problems.
> >>
> >> The new controls have a whole lot of functionality and provide much
> >> better
> >> integration with a lot less effort than was possible before.
> >>
> >>
> >> --
> >> Bruce Loehle-Conger
> >> MVP SQL Server Reporting Services
> >>
> >>
> >> "Michael Rodriguez" <mike@.nospam.com> wrote in message
> >> news:umDqU72$FHA.3800@.TK2MSFTNGP10.phx.gbl...
> >> > "Daniel Reib [MSFT]" <danreib@.online.microsoft.com> wrote in message
> >> > news:uTG6ks0$FHA.3136@.TK2MSFTNGP15.phx.gbl...
> >> >> That is correct. You are using the control in a Web Form app which
> >> >> hosts
> >> >> IE. This is not a supported scenario. The print control will not open
> >> >> because it can not find a handle to the current window.
> >> >>
> >> >> --
> >> >
> >> > What'! Are you actually saying that trying to print a report from the
> >> > ReportServer created web application is not a "supported
> >> > scenario"'!!!!
> >> > How exactly *are* we supposed to print these reports?
> >> >
> >> > Very confused,
> >> >
> >> > Mike
> >> >
> >> >
> >>
> >>
> >>
>
>|||Bruce is correct, this is certainly a supported scenario. We could try
looking at the log file and see if it contains anything that might help us.
To do that add the following registry key:
[HKEY_CURRENT_USER\Software\Microsoft\Microsoft SQL Server\80\Reporting
Services]
"LogRSClientPrintInfo"=dword:00000001
The log file will be generated in the %temp% directory and be called
Log#.tmp. If you could post this, it might help us figure out what is going
on.
--
-Daniel
This posting is provided "AS IS" with no warranties, and confers no rights.
"Bruce L-C [MVP]" <bruce_lcNOSPAM@.hotmail.com> wrote in message
news:ubF2V%23BAGHA.3476@.TK2MSFTNGP10.phx.gbl...
> Are you physically sitting at the machine or did you connect via remote
> desktop or terminal services? Since you are using localhost it is one or
> the other. What OS do you have RS running with?
> Are you an admin on the box? For this to work it will want to install an
> active x control.
> It gets confusing because when you said App everyone thought you had your
> own asp.net app and were integrating with either URL integration or web
> services. For the future, what you are doing is called using Report
> Manager (this is what I call the portal that ships with RS).
> Note, from IE using Report Manager, printing should work. However, for it
> to work, the active x control has to get installed.
> If you are on the server (particularly Windows 2003 server OS) there can
> be security issues that might trip you up.
> I have lots of users using this printing (it came out with SP2 and
> continued with RS 2005). All my users have IE6 and either 2000 Pro or XP
> Pro. All the users are local admin. In this environment it has worked
> every time.
>
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
> "Michael Rodriguez" <mike@.nospam.com> wrote in message
> news:OFs68pBAGHA.2148@.TK2MSFTNGP10.phx.gbl...
>> Daniel,
>> I don't think we're connecting here. Here is what I am doing:
>> - I upload the reports from VS to http://localhost/ReportServer
>> - I pull up IE and browse to http://localhost/Reports
>> - I select a report and preview it
>> - I click the print button on the reports toolbar right next to the
>> export and refresh buttons
>> - It tells me "an error occurred trying to get the current window"
>> This is not a hosted winform app. This is the IE app ReportServer
>> created for me. Is this scenario supposed to be supported? If not, why
>> did MS put the print button there in the first place?
>> Thank you very much for you help,
>> Mike Rodriguez
>>
>> "Daniel Reib [MSFT]" <danreib@.online.microsoft.com> wrote in message
>> news:%23ZGdkyAAGHA.3136@.TK2MSFTNGP15.phx.gbl...
>> Yes, the IE print control is not supported in hosted winform app. If
>> you are writing a winform app you should use the report server winform
>> control. Using this control will allow you to integrate report viewing
>> with printing into your app.
>> --
>> -Daniel
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>> "Michael Rodriguez" <mike@.nospam.com> wrote in message
>> news:uGB4W13$FHA.2092@.TK2MSFTNGP10.phx.gbl...
>> I'm using RS 2005 and I still get the "cannot get window handle"
>> message in the IE toolbar created by ReportServer.
>>
>> "Daniel Reib [MSFT]" <danreib@.online.microsoft.com> wrote in message
>> news:Occ5qK3$FHA.2256@.TK2MSFTNGP11.phx.gbl...
>> Unfortunately the print control had limitations which forced us to not
>> be able to support this scenario. You can use the new RS 2005
>> controls which were designed to be embedded in applications. They do,
>> however, require that you use RS 2005.
>> --
>> -Daniel
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>> <sfboiler@.nospam.nospam> wrote in message
>> news:09EC2A3B-BF05-4135-89B8-FB89A170E7FC@.microsoft.com...
>> So.. How do I fix it?
>> The whole reason we are using reporting services is because a
>> microsoft
>> consultant (Chris Jackson) told us we could imbed it into our
>> application and
>> that it would work.
>> Bill
>> "Daniel Reib [MSFT]" wrote:
>>> That is correct. You are using the control in a Web Form app which
>>> hosts IE.
>>> This is not a supported scenario. The print control will not open
>>> because
>>> it can not find a handle to the current window.
>>>
>>> --
>>> -Daniel
>>> This posting is provided "AS IS" with no warranties, and confers no
>>> rights.
>>>
>>>
>>> <sfboiler@.nospam.nospam> wrote in message
>>> news:A71F127A-8290-4893-BB77-EA8AFEE1D2B8@.microsoft.com...
>>> >I deleted and reinstalled the control..
>>> >
>>> > Now I get this error:
>>> >
>>> > "An error occured trying to get the current window"
>>> >
>>> >
>>> > "Daniel Reib [MSFT]" wrote:
>>> >
>>> >> The print control is not supported in a win forms hosted app. It
>>> >> also
>>> >> sounds like you have a 2000 version of the print control. To get
>>> >> the
>>> >> 2005
>>> >> version you will need to manually remove the ActiveX object.
>>> >> (Via
>>> >> IE->Tools->Internet Option->Settings->View Objects). Then browse
>>> >> to RM
>>> >> and
>>> >> click on the print icon again.
>>> >>
>>> >> --
>>> >> -Daniel
>>> >> This posting is provided "AS IS" with no warranties, and confers
>>> >> no
>>> >> rights.
>>> >>
>>> >>
>>> >> <sfboiler@.nospam.nospam> wrote in message
>>> >> news:044A5757-6288-4FA1-8D9B-E76CA4488755@.microsoft.com...
>>> >> > The error seem to be speficially with the print control.. In
>>> >> > the same
>>> >> > application I am able to right click on the browser window and
>>> >> > click
>>> >> > print.
>>> >> > Everthing prints fine. But when I use the print button in the
>>> >> > "Reporting
>>> >> > Services 2005" tool bar. I get the print error.
>>> >> >
>>> >> > To reproduce this error..
>>> >> > 1. create a report in RS 2005.
>>> >> > 2. Create a windows Application in VS2003 .net framework 1.1 (I
>>> >> > use c#)
>>> >> > 3. Create a form that embeds the web broswer conrtol.
>>> >> > 4. Call the navigate method to show the report in the browser
>>> >> > (Also I have the webserver set as local intranet site in
>>> >> > security so
>>> >> > that
>>> >> > is
>>> >> > passes credentials automatically)
>>> >> >
>>> >> > (Im also only showing the export / page / print toolbar)
>>> >> >
>>> >> > 5. click on the print icon on the report tool bar.
>>> >> >
>>> >> > Thats where I get the error.
>>> >> >
>>> >> > im usuing 2003 server with reporting services..
>>> >> > and XP sp2, IE 6.0.2900.2180
>>> >> >
>>> >> > Bill
>>> >> >
>>> >> > "Steven Cheng[MSFT]" wrote:
>>> >> >
>>> >> >> Hi Sfboiler,
>>> >> >>
>>> >> >> Welcome to MSDN newsgroup.
>>> >> >> From your description, you use the IE WebBrowser control in
>>> >> >> your
>>> >> >> winform
>>> >> >> application which navigate to a certain reporting service's
>>> >> >> report
>>> >> >> page
>>> >> >> and
>>> >> >> let the winform app user print the report. However, you found
>>> >> >> that
>>> >> >> you'll
>>> >> >> get an errro "An error occured during printing (0x8007F304)"
>>> >> >> when try
>>> >> >> printing the reprot through the "printing" button on the page,
>>> >> >> but
>>> >> >> this
>>> >> >> works well when we navigate the reprot through external IE
>>> >> >> window,
>>> >> >> yes?
>>> >> >>
>>> >> >> Based on my local testing, seems a normal report can be
>>> >> >> printed
>>> >> >> correctly
>>> >> >> both through the IE WebBrowser control and external IE
>>> >> >> window.... So
>>> >> >> this
>>> >> >> problem is related to the specific envrionment or application.
>>> >> >> Since
>>> >> >> the
>>> >> >> reporting service's reprot page's print button also use some
>>> >> >> script to
>>> >> >> execute the print command, I'd suggest you also try directly
>>> >> >> using the
>>> >> >> WebBrowser's print command to print the current document to
>>> >> >> see
>>> >> >> whether
>>> >> >> you
>>> >> >> can correctly print it. e.g:
>>> >> >>
>>> >> >> private void btnPrint_Click(object sender, System.EventArgs e)
>>> >> >> {
>>> >> >> mshtml.HTMLDocument doc = axWB.Document as
>>> >> >> mshtml.HTMLDocument;
>>> >> >>
>>> >> >> if(doc != null)
>>> >> >> {
>>> >> >> //doc.execCommand("Print", true, 0);
>>> >> >>
>>> >> >> axWB.ExecWB(SHDocVw.OLECMDID.OLECMDID_PRINT,SHDocVw.OLECMDEXECOPT.OLECMDEXEC
>>> >> >> OPT_PROMPTUSER);
>>> >> >> }
>>> >> >> }
>>> >> >>
>>> >> >>
>>> >> >> If this also fails, I'm afraid there must have something
>>> >> >> incorrect
>>> >> >> with
>>> >> >> the
>>> >> >> browser's script engine or else...
>>> >> >>
>>> >> >> In addition, you can also check the reporting service's
>>> >> >> serverside log
>>> >> >> (under ....\Reporting Services\LogFiles folder) to see
>>> >> >> whether
>>> >> >> there're
>>> >> >> anything incorrectly for the reporter's generating....
>>> >> >>
>>> >> >> If there're anything else found, please feel free to post
>>> >> >> here.
>>> >> >>
>>> >> >> Thanks,
>>> >> >>
>>> >> >> Steven Cheng
>>> >> >> Microsoft Online Support
>>> >> >>
>>> >> >> Get Secure! www.microsoft.com/security
>>> >> >> (This posting is provided "AS IS", with no warranties, and
>>> >> >> confers no
>>> >> >> rights.)
>>> >> >>
>>> >> >>
>>> >> >> --
>>> >> >> | Thread-Topic: An error occured during printing or An error
>>> >> >> occurred
>>> >> >> during print
>>> >> >> | thread-index: AcX+c6CWzuG9ppc2S3ekdUXsIh9hsw==>>> >> >> | X-WBNR-Posting-Host: 67.109.68.162
>>> >> >> | From: "=?Utf-8?B?c2Zib2lsZXJAbm9zcGFtLm5vc3BhbQ==?="
>>> >> >> <sfboiler@.nospam.nospam>
>>> >> >> | Subject: An error occured during printing or An error
>>> >> >> occurred
>>> >> >> during
>>> >> >> print
>>> >> >> | Date: Sun, 11 Dec 2005 08:55:02 -0800
>>> >> >> | Lines: 20
>>> >> >> | Message-ID:
>>> >> >> <25C4730C-D1B0-46A8-BBF7-92DC5CCFAA7A@.microsoft.com>
>>> >> >> | MIME-Version: 1.0
>>> >> >> | Content-Type: text/plain;
>>> >> >> | charset="Utf-8"
>>> >> >> | Content-Transfer-Encoding: 7bit
>>> >> >> | X-Newsreader: Microsoft CDO for Windows 2000
>>> >> >> | Content-Class: urn:content-classes:message
>>> >> >> | Importance: normal
>>> >> >> | Priority: normal
>>> >> >> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
>>> >> >> | Newsgroups: microsoft.public.sqlserver.reportingsvcs
>>> >> >> | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
>>> >> >> | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
>>> >> >> | Xref: TK2MSFTNGXA02.phx.gbl
>>> >> >> microsoft.public.sqlserver.reportingsvcs:64792
>>> >> >> | X-Tomcat-NG: microsoft.public.sqlserver.reportingsvcs
>>> >> >> |
>>> >> >> | I get the following error when using the print button on the
>>> >> >> HTML
>>> >> >> view
>>> >> >> of
>>> >> >> a
>>> >> >> | report with reporting services 2005.
>>> >> >> |
>>> >> >> | "An error occured during printing (0x8007F304)"
>>> >> >> |
>>> >> >> | I have a windows application written in VS2003 .net 1.1 and
>>> >> >> it loads
>>> >> >> a
>>> >> >> | webcontrol to show and print the reports. I am using the
>>> >> >> URL syntax
>>> >> >> to
>>> >> >> view
>>> >> >> | the report. The report views ok, but when the user clicks
>>> >> >> the print
>>> >> >> button,
>>> >> >> | they get the error.
>>> >> >> |
>>> >> >> | When I run the report via the report manager, I am able to
>>> >> >> print
>>> >> >> directly
>>> >> >> in
>>> >> >> | the browser.
>>> >> >> |
>>> >> >> | Im running XP SP2.
>>> >> >> |
>>> >> >> | The application I wrote is running under my windows
>>> >> >> credentials, And
>>> >> >> I
>>> >> >> have
>>> >> >> | rights to print to all the printers.
>>> >> >> |
>>> >> >> | Also.. when I click print, the print dialog doesnt come up..
>>> >> >> just
>>> >> >> get
>>> >> >> the
>>> >> >> | error
>>> >> >> |
>>> >> >>
>>> >> >>
>>> >>
>>> >>
>>> >>
>>>
>>>
>>>
>>
>>
>>
>>
>|||I added the key to the registry, then ran my application where the error
shows. I was unable to find any log file on my computer that starts with log
and ends with tmp did a search log*.tmp also did *.tmp and none of the
files returned started with log.
"Daniel Reib [MSFT]" wrote:
> Bruce is correct, this is certainly a supported scenario. We could try
> looking at the log file and see if it contains anything that might help us.
> To do that add the following registry key:
>
> [HKEY_CURRENT_USER\Software\Microsoft\Microsoft SQL Server\80\Reporting
> Services]
> "LogRSClientPrintInfo"=dword:00000001
>
> The log file will be generated in the %temp% directory and be called
> Log#.tmp. If you could post this, it might help us figure out what is going
> on.
> --
> -Daniel
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "Bruce L-C [MVP]" <bruce_lcNOSPAM@.hotmail.com> wrote in message
> news:ubF2V%23BAGHA.3476@.TK2MSFTNGP10.phx.gbl...
> > Are you physically sitting at the machine or did you connect via remote
> > desktop or terminal services? Since you are using localhost it is one or
> > the other. What OS do you have RS running with?
> >
> > Are you an admin on the box? For this to work it will want to install an
> > active x control.
> >
> > It gets confusing because when you said App everyone thought you had your
> > own asp.net app and were integrating with either URL integration or web
> > services. For the future, what you are doing is called using Report
> > Manager (this is what I call the portal that ships with RS).
> >
> > Note, from IE using Report Manager, printing should work. However, for it
> > to work, the active x control has to get installed.
> >
> > If you are on the server (particularly Windows 2003 server OS) there can
> > be security issues that might trip you up.
> >
> > I have lots of users using this printing (it came out with SP2 and
> > continued with RS 2005). All my users have IE6 and either 2000 Pro or XP
> > Pro. All the users are local admin. In this environment it has worked
> > every time.
> >
> >
> > --
> > Bruce Loehle-Conger
> > MVP SQL Server Reporting Services
> >
> > "Michael Rodriguez" <mike@.nospam.com> wrote in message
> > news:OFs68pBAGHA.2148@.TK2MSFTNGP10.phx.gbl...
> >> Daniel,
> >>
> >> I don't think we're connecting here. Here is what I am doing:
> >>
> >> - I upload the reports from VS to http://localhost/ReportServer
> >> - I pull up IE and browse to http://localhost/Reports
> >> - I select a report and preview it
> >> - I click the print button on the reports toolbar right next to the
> >> export and refresh buttons
> >> - It tells me "an error occurred trying to get the current window"
> >>
> >> This is not a hosted winform app. This is the IE app ReportServer
> >> created for me. Is this scenario supposed to be supported? If not, why
> >> did MS put the print button there in the first place?
> >>
> >> Thank you very much for you help,
> >>
> >> Mike Rodriguez
> >>
> >>
> >>
> >> "Daniel Reib [MSFT]" <danreib@.online.microsoft.com> wrote in message
> >> news:%23ZGdkyAAGHA.3136@.TK2MSFTNGP15.phx.gbl...
> >> Yes, the IE print control is not supported in hosted winform app. If
> >> you are writing a winform app you should use the report server winform
> >> control. Using this control will allow you to integrate report viewing
> >> with printing into your app.
> >>
> >> --
> >> -Daniel
> >> This posting is provided "AS IS" with no warranties, and confers no
> >> rights.
> >>
> >>
> >> "Michael Rodriguez" <mike@.nospam.com> wrote in message
> >> news:uGB4W13$FHA.2092@.TK2MSFTNGP10.phx.gbl...
> >> I'm using RS 2005 and I still get the "cannot get window handle"
> >> message in the IE toolbar created by ReportServer.
> >>
> >>
> >> "Daniel Reib [MSFT]" <danreib@.online.microsoft.com> wrote in message
> >> news:Occ5qK3$FHA.2256@.TK2MSFTNGP11.phx.gbl...
> >> Unfortunately the print control had limitations which forced us to not
> >> be able to support this scenario. You can use the new RS 2005
> >> controls which were designed to be embedded in applications. They do,
> >> however, require that you use RS 2005.
> >>
> >> --
> >> -Daniel
> >> This posting is provided "AS IS" with no warranties, and confers no
> >> rights.
> >>
> >>
> >> <sfboiler@.nospam.nospam> wrote in message
> >> news:09EC2A3B-BF05-4135-89B8-FB89A170E7FC@.microsoft.com...
> >> So.. How do I fix it?
> >>
> >> The whole reason we are using reporting services is because a
> >> microsoft
> >> consultant (Chris Jackson) told us we could imbed it into our
> >> application and
> >> that it would work.
> >>
> >> Bill
> >>
> >> "Daniel Reib [MSFT]" wrote:
> >>
> >>> That is correct. You are using the control in a Web Form app which
> >>> hosts IE.
> >>> This is not a supported scenario. The print control will not open
> >>> because
> >>> it can not find a handle to the current window.
> >>>
> >>> --
> >>> -Daniel
> >>> This posting is provided "AS IS" with no warranties, and confers no
> >>> rights.
> >>>
> >>>
> >>> <sfboiler@.nospam.nospam> wrote in message
> >>> news:A71F127A-8290-4893-BB77-EA8AFEE1D2B8@.microsoft.com...
> >>> >I deleted and reinstalled the control..
> >>> >
> >>> > Now I get this error:
> >>> >
> >>> > "An error occured trying to get the current window"
> >>> >
> >>> >
> >>> > "Daniel Reib [MSFT]" wrote:
> >>> >
> >>> >> The print control is not supported in a win forms hosted app. It
> >>> >> also
> >>> >> sounds like you have a 2000 version of the print control. To get
> >>> >> the
> >>> >> 2005
> >>> >> version you will need to manually remove the ActiveX object.
> >>> >> (Via
> >>> >> IE->Tools->Internet Option->Settings->View Objects). Then browse
> >>> >> to RM
> >>> >> and
> >>> >> click on the print icon again.
> >>> >>
> >>> >> --
> >>> >> -Daniel
> >>> >> This posting is provided "AS IS" with no warranties, and confers
> >>> >> no
> >>> >> rights.
> >>> >>
> >>> >>
> >>> >> <sfboiler@.nospam.nospam> wrote in message
> >>> >> news:044A5757-6288-4FA1-8D9B-E76CA4488755@.microsoft.com...
> >>> >> > The error seem to be speficially with the print control.. In
> >>> >> > the same
> >>> >> > application I am able to right click on the browser window and
> >>> >> > click
> >>> >> > print.
> >>> >> > Everthing prints fine. But when I use the print button in the
> >>> >> > "Reporting
> >>> >> > Services 2005" tool bar. I get the print error.
> >>> >> >
> >>> >> > To reproduce this error..
> >>> >> > 1. create a report in RS 2005.
> >>> >> > 2. Create a windows Application in VS2003 .net framework 1.1 (I
> >>> >> > use c#)
> >>> >> > 3. Create a form that embeds the web broswer conrtol.
> >>> >> > 4. Call the navigate method to show the report in the browser
> >>> >> > (Also I have the webserver set as local intranet site in
> >>> >> > security so
> >>> >> > that
> >>> >> > is
> >>> >> > passes credentials automatically)
> >>> >> >
> >>> >> > (Im also only showing the export / page / print toolbar)
> >>> >> >
> >>> >> > 5. click on the print icon on the report tool bar.
> >>> >> >
> >>> >> > Thats where I get the error.
> >>> >> >
> >>> >> > im usuing 2003 server with reporting services..
> >>> >> > and XP sp2, IE 6.0.2900.2180
> >>> >> >
> >>> >> > Bill
> >>> >> >
> >>> >> > "Steven Cheng[MSFT]" wrote:
> >>> >> >
> >>> >> >> Hi Sfboiler,
> >>> >> >>
> >>> >> >> Welcome to MSDN newsgroup.
> >>> >> >> From your description, you use the IE WebBrowser control in
> >>> >> >> your
> >>> >> >> winform
> >>> >> >> application which navigate to a certain reporting service's
> >>> >> >> report
> >>> >> >> page
> >>> >> >> and
> >>> >> >> let the winform app user print the report. However, you found
> >>> >> >> that
> >>> >> >> you'll
> >>> >> >> get an errro "An error occured during printing (0x8007F304)"
> >>> >> >> when try
> >>> >> >> printing the reprot through the "printing" button on the page,
> >>> >> >> but
> >>> >> >> this
> >>> >> >> works well when we navigate the reprot through external IE
> >>> >> >> window,
> >>> >> >> yes?
> >>> >> >>
> >>> >> >> Based on my local testing, seems a normal report can be
> >>> >> >> printed
> >>> >> >> correctly
> >>> >> >> both through the IE WebBrowser control and external IE
> >>> >> >> window.... So
> >>> >> >> this
> >>> >> >> problem is related to the specific envrionment or application.
> >>> >> >> Since
> >>> >> >> the
> >>> >> >> reporting service's reprot page's print button also use some
> >>> >> >> script to
> >>> >> >> execute the print command, I'd suggest you also try directly
> >>> >> >> using the
> >>> >> >> WebBrowser's print command to print the current document to
> >>> >> >> see
> >>> >> >> whether
> >>> >> >> you
> >>> >> >> can correctly print it. e.g:
> >>> >> >>
> >>> >> >> private void btnPrint_Click(object sender, System.EventArgs e)
> >>> >> >> {
> >>> >> >> mshtml.HTMLDocument doc = axWB.Document as
> >>> >> >> mshtml.HTMLDocument;
> >>> >> >>
> >>> >> >> if(doc != null)
> >>> >> >> {
> >>> >> >> //doc.execCommand("Print", true, 0);
> >>> >> >>
> >>> >> >> axWB.ExecWB(SHDocVw.OLECMDID.OLECMDID_PRINT,SHDocVw.OLECMDEXECOPT.OLECMDEXEC
> >>> >> >> OPT_PROMPTUSER);
> >>> >> >> }
> >>> >> >> }
> >>> >> >>
> >>> >> >>
> >>> >> >> If this also fails, I'm afraid there must have something
> >>> >> >> incorrect
> >>> >> >> with
> >>> >> >> the
> >>> >> >> browser's script engine or else...
> >>> >> >>
> >>> >> >> In addition, you can also check the reporting service's
> >>> >> >> serverside log
> >>> >> >> (under ....\Reporting Services\LogFiles folder) to see
> >>> >> >> whether
> >>> >> >> there're
> >>> >> >> anything incorrectly for the reporter's generating....
> >>> >> >>
> >>> >> >> If there're anything else found, please feel free to post
> >>> >> >> here.
> >>> >> >>
> >>> >> >> Thanks,
> >>> >> >>
> >>> >> >> Steven Cheng
> >>> >> >> Microsoft Online Support
> >>> >> >>
> >>> >> >> Get Secure! www.microsoft.com/security
> >>> >> >> (This posting is provided "AS IS", with no warranties, and
> >>> >> >> confers no
> >>> >> >> rights.)
> >>> >> >>
> >>> >> >>
> >>> >> >> --
> >>> >> >> | Thread-Topic: An error occured during printing or An error
> >>> >> >> occurred
> >>> >> >> during print
> >>> >> >> | thread-index: AcX+c6CWzuG9ppc2S3ekdUXsIh9hsw==> >>> >> >> | X-WBNR-Posting-Host: 67.109.68.162
> >>> >> >> | From: "=?Utf-8?B?c2Zib2lsZXJAbm9zcGFtLm5vc3BhbQ==?="
> >>> >> >> <sfboiler@.nospam.nospam>
> >>> >> >> | Subject: An error occured during printing or An error
> >>> >> >> occurred
> >>> >> >> during
> >>> >> >> print
> >>> >> >> | Date: Sun, 11 Dec 2005 08:55:02 -0800
> >>> >> >> | Lines: 20
> >>> >> >> | Message-ID:
> >>> >> >> <25C4730C-D1B0-46A8-BBF7-92DC5CCFAA7A@.microsoft.com>
> >>> >> >> | MIME-Version: 1.0
> >>> >> >> | Content-Type: text/plain;
> >>> >> >> | charset="Utf-8"
> >>> >> >> | Content-Transfer-Encoding: 7bit
> >>> >> >> | X-Newsreader: Microsoft CDO for Windows 2000|||You added this on the client machine? If so I am not sure why it would not
show up. Do you have a space between Reporting and Services?
--
-Daniel
This posting is provided "AS IS" with no warranties, and confers no rights.
<sfboiler@.nospam.nospam> wrote in message
news:90E06A1E-1F00-41D2-A357-97C39455843D@.microsoft.com...
>I added the key to the registry, then ran my application where the error
> shows. I was unable to find any log file on my computer that starts with
> log
> and ends with tmp did a search log*.tmp also did *.tmp and none of the
> files returned started with log.
> "Daniel Reib [MSFT]" wrote:
>> Bruce is correct, this is certainly a supported scenario. We could try
>> looking at the log file and see if it contains anything that might help
>> us.
>> To do that add the following registry key:
>>
>> [HKEY_CURRENT_USER\Software\Microsoft\Microsoft SQL Server\80\Reporting
>> Services]
>> "LogRSClientPrintInfo"=dword:00000001
>>
>> The log file will be generated in the %temp% directory and be called
>> Log#.tmp. If you could post this, it might help us figure out what is
>> going
>> on.
>> --
>> -Daniel
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>> "Bruce L-C [MVP]" <bruce_lcNOSPAM@.hotmail.com> wrote in message
>> news:ubF2V%23BAGHA.3476@.TK2MSFTNGP10.phx.gbl...
>> > Are you physically sitting at the machine or did you connect via remote
>> > desktop or terminal services? Since you are using localhost it is one
>> > or
>> > the other. What OS do you have RS running with?
>> >
>> > Are you an admin on the box? For this to work it will want to install
>> > an
>> > active x control.
>> >
>> > It gets confusing because when you said App everyone thought you had
>> > your
>> > own asp.net app and were integrating with either URL integration or web
>> > services. For the future, what you are doing is called using Report
>> > Manager (this is what I call the portal that ships with RS).
>> >
>> > Note, from IE using Report Manager, printing should work. However, for
>> > it
>> > to work, the active x control has to get installed.
>> >
>> > If you are on the server (particularly Windows 2003 server OS) there
>> > can
>> > be security issues that might trip you up.
>> >
>> > I have lots of users using this printing (it came out with SP2 and
>> > continued with RS 2005). All my users have IE6 and either 2000 Pro or
>> > XP
>> > Pro. All the users are local admin. In this environment it has worked
>> > every time.
>> >
>> >
>> > --
>> > Bruce Loehle-Conger
>> > MVP SQL Server Reporting Services
>> >
>> > "Michael Rodriguez" <mike@.nospam.com> wrote in message
>> > news:OFs68pBAGHA.2148@.TK2MSFTNGP10.phx.gbl...
>> >> Daniel,
>> >>
>> >> I don't think we're connecting here. Here is what I am doing:
>> >>
>> >> - I upload the reports from VS to http://localhost/ReportServer
>> >> - I pull up IE and browse to http://localhost/Reports
>> >> - I select a report and preview it
>> >> - I click the print button on the reports toolbar right next to the
>> >> export and refresh buttons
>> >> - It tells me "an error occurred trying to get the current window"
>> >>
>> >> This is not a hosted winform app. This is the IE app ReportServer
>> >> created for me. Is this scenario supposed to be supported? If not,
>> >> why
>> >> did MS put the print button there in the first place?
>> >>
>> >> Thank you very much for you help,
>> >>
>> >> Mike Rodriguez
>> >>
>> >>
>> >>
>> >> "Daniel Reib [MSFT]" <danreib@.online.microsoft.com> wrote in message
>> >> news:%23ZGdkyAAGHA.3136@.TK2MSFTNGP15.phx.gbl...
>> >> Yes, the IE print control is not supported in hosted winform app. If
>> >> you are writing a winform app you should use the report server
>> >> winform
>> >> control. Using this control will allow you to integrate report
>> >> viewing
>> >> with printing into your app.
>> >>
>> >> --
>> >> -Daniel
>> >> This posting is provided "AS IS" with no warranties, and confers no
>> >> rights.
>> >>
>> >>
>> >> "Michael Rodriguez" <mike@.nospam.com> wrote in message
>> >> news:uGB4W13$FHA.2092@.TK2MSFTNGP10.phx.gbl...
>> >> I'm using RS 2005 and I still get the "cannot get window handle"
>> >> message in the IE toolbar created by ReportServer.
>> >>
>> >>
>> >> "Daniel Reib [MSFT]" <danreib@.online.microsoft.com> wrote in message
>> >> news:Occ5qK3$FHA.2256@.TK2MSFTNGP11.phx.gbl...
>> >> Unfortunately the print control had limitations which forced us to
>> >> not
>> >> be able to support this scenario. You can use the new RS 2005
>> >> controls which were designed to be embedded in applications. They
>> >> do,
>> >> however, require that you use RS 2005.
>> >>
>> >> --
>> >> -Daniel
>> >> This posting is provided "AS IS" with no warranties, and confers no
>> >> rights.
>> >>
>> >>
>> >> <sfboiler@.nospam.nospam> wrote in message
>> >> news:09EC2A3B-BF05-4135-89B8-FB89A170E7FC@.microsoft.com...
>> >> So.. How do I fix it?
>> >>
>> >> The whole reason we are using reporting services is because a
>> >> microsoft
>> >> consultant (Chris Jackson) told us we could imbed it into our
>> >> application and
>> >> that it would work.
>> >>
>> >> Bill
>> >>
>> >> "Daniel Reib [MSFT]" wrote:
>> >>
>> >>> That is correct. You are using the control in a Web Form app
>> >>> which
>> >>> hosts IE.
>> >>> This is not a supported scenario. The print control will not
>> >>> open
>> >>> because
>> >>> it can not find a handle to the current window.
>> >>>
>> >>> --
>> >>> -Daniel
>> >>> This posting is provided "AS IS" with no warranties, and confers
>> >>> no
>> >>> rights.
>> >>>
>> >>>
>> >>> <sfboiler@.nospam.nospam> wrote in message
>> >>> news:A71F127A-8290-4893-BB77-EA8AFEE1D2B8@.microsoft.com...
>> >>> >I deleted and reinstalled the control..
>> >>> >
>> >>> > Now I get this error:
>> >>> >
>> >>> > "An error occured trying to get the current window"
>> >>> >
>> >>> >
>> >>> > "Daniel Reib [MSFT]" wrote:
>> >>> >
>> >>> >> The print control is not supported in a win forms hosted app.
>> >>> >> It
>> >>> >> also
>> >>> >> sounds like you have a 2000 version of the print control. To
>> >>> >> get
>> >>> >> the
>> >>> >> 2005
>> >>> >> version you will need to manually remove the ActiveX object.
>> >>> >> (Via
>> >>> >> IE->Tools->Internet Option->Settings->View Objects). Then
>> >>> >> browse
>> >>> >> to RM
>> >>> >> and
>> >>> >> click on the print icon again.
>> >>> >>
>> >>> >> --
>> >>> >> -Daniel
>> >>> >> This posting is provided "AS IS" with no warranties, and
>> >>> >> confers
>> >>> >> no
>> >>> >> rights.
>> >>> >>
>> >>> >>
>> >>> >> <sfboiler@.nospam.nospam> wrote in message
>> >>> >> news:044A5757-6288-4FA1-8D9B-E76CA4488755@.microsoft.com...
>> >>> >> > The error seem to be speficially with the print control.. In
>> >>> >> > the same
>> >>> >> > application I am able to right click on the browser window
>> >>> >> > and
>> >>> >> > click
>> >>> >> > print.
>> >>> >> > Everthing prints fine. But when I use the print button in
>> >>> >> > the
>> >>> >> > "Reporting
>> >>> >> > Services 2005" tool bar. I get the print error.
>> >>> >> >
>> >>> >> > To reproduce this error..
>> >>> >> > 1. create a report in RS 2005.
>> >>> >> > 2. Create a windows Application in VS2003 .net framework 1.1
>> >>> >> > (I
>> >>> >> > use c#)
>> >>> >> > 3. Create a form that embeds the web broswer conrtol.
>> >>> >> > 4. Call the navigate method to show the report in the
>> >>> >> > browser
>> >>> >> > (Also I have the webserver set as local intranet site in
>> >>> >> > security so
>> >>> >> > that
>> >>> >> > is
>> >>> >> > passes credentials automatically)
>> >>> >> >
>> >>> >> > (Im also only showing the export / page / print toolbar)
>> >>> >> >
>> >>> >> > 5. click on the print icon on the report tool bar.
>> >>> >> >
>> >>> >> > Thats where I get the error.
>> >>> >> >
>> >>> >> > im usuing 2003 server with reporting services..
>> >>> >> > and XP sp2, IE 6.0.2900.2180
>> >>> >> >
>> >>> >> > Bill
>> >>> >> >
>> >>> >> > "Steven Cheng[MSFT]" wrote:
>> >>> >> >
>> >>> >> >> Hi Sfboiler,
>> >>> >> >>
>> >>> >> >> Welcome to MSDN newsgroup.
>> >>> >> >> From your description, you use the IE WebBrowser control in
>> >>> >> >> your
>> >>> >> >> winform
>> >>> >> >> application which navigate to a certain reporting service's
>> >>> >> >> report
>> >>> >> >> page
>> >>> >> >> and
>> >>> >> >> let the winform app user print the report. However, you
>> >>> >> >> found
>> >>> >> >> that
>> >>> >> >> you'll
>> >>> >> >> get an errro "An error occured during printing
>> >>> >> >> (0x8007F304)"
>> >>> >> >> when try
>> >>> >> >> printing the reprot through the "printing" button on the
>> >>> >> >> page,
>> >>> >> >> but
>> >>> >> >> this
>> >>> >> >> works well when we navigate the reprot through external IE
>> >>> >> >> window,
>> >>> >> >> yes?
>> >>> >> >>
>> >>> >> >> Based on my local testing, seems a normal report can be
>> >>> >> >> printed
>> >>> >> >> correctly
>> >>> >> >> both through the IE WebBrowser control and external IE
>> >>> >> >> window.... So
>> >>> >> >> this
>> >>> >> >> problem is related to the specific envrionment or
>> >>> >> >> application.
>> >>> >> >> Since
>> >>> >> >> the
>> >>> >> >> reporting service's reprot page's print button also use
>> >>> >> >> some
>> >>> >> >> script to
>> >>> >> >> execute the print command, I'd suggest you also try
>> >>> >> >> directly
>> >>> >> >> using the
>> >>> >> >> WebBrowser's print command to print the current document to
>> >>> >> >> see
>> >>> >> >> whether
>> >>> >> >> you
>> >>> >> >> can correctly print it. e.g:
>> >>> >> >>
>> >>> >> >> private void btnPrint_Click(object sender, System.EventArgs
>> >>> >> >> e)
>> >>> >> >> {
>> >>> >> >> mshtml.HTMLDocument doc = axWB.Document as
>> >>> >> >> mshtml.HTMLDocument;
>> >>> >> >>
>> >>> >> >> if(doc != null)
>> >>> >> >> {
>> >>> >> >> //doc.execCommand("Print", true, 0);
>> >>> >> >>
>> >>> >> >> axWB.ExecWB(SHDocVw.OLECMDID.OLECMDID_PRINT,SHDocVw.OLECMDEXECOPT.OLECMDEXEC
>> >>> >> >> OPT_PROMPTUSER);
>> >>> >> >> }
>> >>> >> >> }
>> >>> >> >>
>> >>> >> >>
>> >>> >> >> If this also fails, I'm afraid there must have something
>> >>> >> >> incorrect
>> >>> >> >> with
>> >>> >> >> the
>> >>> >> >> browser's script engine or else...
>> >>> >> >>
>> >>> >> >> In addition, you can also check the reporting service's
>> >>> >> >> serverside log
>> >>> >> >> (under ....\Reporting Services\LogFiles folder) to see
>> >>> >> >> whether
>> >>> >> >> there're
>> >>> >> >> anything incorrectly for the reporter's generating....
>> >>> >> >>
>> >>> >> >> If there're anything else found, please feel free to post
>> >>> >> >> here.
>> >>> >> >>
>> >>> >> >> Thanks,
>> >>> >> >>
>> >>> >> >> Steven Cheng
>> >>> >> >> Microsoft Online Support
>> >>> >> >>
>> >>> >> >> Get Secure! www.microsoft.com/security
>> >>> >> >> (This posting is provided "AS IS", with no warranties, and
>> >>> >> >> confers no
>> >>> >> >> rights.)
>> >>> >> >>
>> >>> >> >>
>> >>> >> >> --
>> >>> >> >> | Thread-Topic: An error occured during printing or An
>> >>> >> >> error
>> >>> >> >> occurred
>> >>> >> >> during print
>> >>> >> >> | thread-index: AcX+c6CWzuG9ppc2S3ekdUXsIh9hsw==>> >>> >> >> | X-WBNR-Posting-Host: 67.109.68.162
>> >>> >> >> | From: "=?Utf-8?B?c2Zib2lsZXJAbm9zcGFtLm5vc3BhbQ==?="
>> >>> >> >> <sfboiler@.nospam.nospam>
>> >>> >> >> | Subject: An error occured during printing or An error
>> >>> >> >> occurred
>> >>> >> >> during
>> >>> >> >> print
>> >>> >> >> | Date: Sun, 11 Dec 2005 08:55:02 -0800
>> >>> >> >> | Lines: 20
>> >>> >> >> | Message-ID:
>> >>> >> >> <25C4730C-D1B0-46A8-BBF7-92DC5CCFAA7A@.microsoft.com>
>> >>> >> >> | MIME-Version: 1.0
>> >>> >> >> | Content-Type: text/plain;
>> >>> >> >> | charset="Utf-8"
>> >>> >> >> | Content-Transfer-Encoding: 7bit
>> >>> >> >> | X-Newsreader: Microsoft CDO for Windows 2000|||I had a cariage return in it.. and change it to a space.. and got nothing.
Then did it with no space.. and still found nothing. I did this on the
client machine where I get the error XP sp2. What directory should the tmp
file be in?
"Daniel Reib [MSFT]" wrote:
> You added this on the client machine? If so I am not sure why it would not
> show up. Do you have a space between Reporting and Services?
> --
> -Daniel
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> <sfboiler@.nospam.nospam> wrote in message
> news:90E06A1E-1F00-41D2-A357-97C39455843D@.microsoft.com...
> >I added the key to the registry, then ran my application where the error
> > shows. I was unable to find any log file on my computer that starts with
> > log
> > and ends with tmp did a search log*.tmp also did *.tmp and none of the
> > files returned started with log.
> >
> > "Daniel Reib [MSFT]" wrote:
> >
> >> Bruce is correct, this is certainly a supported scenario. We could try
> >> looking at the log file and see if it contains anything that might help
> >> us.
> >> To do that add the following registry key:
> >>
> >>
> >> [HKEY_CURRENT_USER\Software\Microsoft\Microsoft SQL Server\80\Reporting
> >> Services]
> >> "LogRSClientPrintInfo"=dword:00000001
> >>
> >>
> >> The log file will be generated in the %temp% directory and be called
> >> Log#.tmp. If you could post this, it might help us figure out what is
> >> going
> >> on.
> >>
> >> --
> >> -Daniel
> >> This posting is provided "AS IS" with no warranties, and confers no
> >> rights.
> >>
> >>
> >> "Bruce L-C [MVP]" <bruce_lcNOSPAM@.hotmail.com> wrote in message
> >> news:ubF2V%23BAGHA.3476@.TK2MSFTNGP10.phx.gbl...
> >> > Are you physically sitting at the machine or did you connect via remote
> >> > desktop or terminal services? Since you are using localhost it is one
> >> > or
> >> > the other. What OS do you have RS running with?
> >> >
> >> > Are you an admin on the box? For this to work it will want to install
> >> > an
> >> > active x control.
> >> >
> >> > It gets confusing because when you said App everyone thought you had
> >> > your
> >> > own asp.net app and were integrating with either URL integration or web
> >> > services. For the future, what you are doing is called using Report
> >> > Manager (this is what I call the portal that ships with RS).
> >> >
> >> > Note, from IE using Report Manager, printing should work. However, for
> >> > it
> >> > to work, the active x control has to get installed.
> >> >
> >> > If you are on the server (particularly Windows 2003 server OS) there
> >> > can
> >> > be security issues that might trip you up.
> >> >
> >> > I have lots of users using this printing (it came out with SP2 and
> >> > continued with RS 2005). All my users have IE6 and either 2000 Pro or
> >> > XP
> >> > Pro. All the users are local admin. In this environment it has worked
> >> > every time.
> >> >
> >> >
> >> > --
> >> > Bruce Loehle-Conger
> >> > MVP SQL Server Reporting Services
> >> >
> >> > "Michael Rodriguez" <mike@.nospam.com> wrote in message
> >> > news:OFs68pBAGHA.2148@.TK2MSFTNGP10.phx.gbl...
> >> >> Daniel,
> >> >>
> >> >> I don't think we're connecting here. Here is what I am doing:
> >> >>
> >> >> - I upload the reports from VS to http://localhost/ReportServer
> >> >> - I pull up IE and browse to http://localhost/Reports
> >> >> - I select a report and preview it
> >> >> - I click the print button on the reports toolbar right next to the
> >> >> export and refresh buttons
> >> >> - It tells me "an error occurred trying to get the current window"
> >> >>
> >> >> This is not a hosted winform app. This is the IE app ReportServer
> >> >> created for me. Is this scenario supposed to be supported? If not,
> >> >> why
> >> >> did MS put the print button there in the first place?
> >> >>
> >> >> Thank you very much for you help,
> >> >>
> >> >> Mike Rodriguez
> >> >>
> >> >>
> >> >>
> >> >> "Daniel Reib [MSFT]" <danreib@.online.microsoft.com> wrote in message
> >> >> news:%23ZGdkyAAGHA.3136@.TK2MSFTNGP15.phx.gbl...
> >> >> Yes, the IE print control is not supported in hosted winform app. If
> >> >> you are writing a winform app you should use the report server
> >> >> winform
> >> >> control. Using this control will allow you to integrate report
> >> >> viewing
> >> >> with printing into your app.
> >> >>
> >> >> --
> >> >> -Daniel
> >> >> This posting is provided "AS IS" with no warranties, and confers no
> >> >> rights.
> >> >>
> >> >>
> >> >> "Michael Rodriguez" <mike@.nospam.com> wrote in message
> >> >> news:uGB4W13$FHA.2092@.TK2MSFTNGP10.phx.gbl...
> >> >> I'm using RS 2005 and I still get the "cannot get window handle"
> >> >> message in the IE toolbar created by ReportServer.
> >> >>
> >> >>
> >> >> "Daniel Reib [MSFT]" <danreib@.online.microsoft.com> wrote in message
> >> >> news:Occ5qK3$FHA.2256@.TK2MSFTNGP11.phx.gbl...
> >> >> Unfortunately the print control had limitations which forced us to
> >> >> not
> >> >> be able to support this scenario. You can use the new RS 2005
> >> >> controls which were designed to be embedded in applications. They
> >> >> do,
> >> >> however, require that you use RS 2005.
> >> >>
> >> >> --
> >> >> -Daniel
> >> >> This posting is provided "AS IS" with no warranties, and confers no
> >> >> rights.
> >> >>
> >> >>
> >> >> <sfboiler@.nospam.nospam> wrote in message
> >> >> news:09EC2A3B-BF05-4135-89B8-FB89A170E7FC@.microsoft.com...
> >> >> So.. How do I fix it?
> >> >>
> >> >> The whole reason we are using reporting services is because a
> >> >> microsoft
> >> >> consultant (Chris Jackson) told us we could imbed it into our
> >> >> application and
> >> >> that it would work.
> >> >>
> >> >> Bill
> >> >>
> >> >> "Daniel Reib [MSFT]" wrote:
> >> >>
> >> >>> That is correct. You are using the control in a Web Form app
> >> >>> which
> >> >>> hosts IE.
> >> >>> This is not a supported scenario. The print control will not
> >> >>> open
> >> >>> because
> >> >>> it can not find a handle to the current window.
> >> >>>
> >> >>> --
> >> >>> -Daniel
> >> >>> This posting is provided "AS IS" with no warranties, and confers
> >> >>> no
> >> >>> rights.
> >> >>>
> >> >>>
> >> >>> <sfboiler@.nospam.nospam> wrote in message
> >> >>> news:A71F127A-8290-4893-BB77-EA8AFEE1D2B8@.microsoft.com...
> >> >>> >I deleted and reinstalled the control..
> >> >>> >
> >> >>> > Now I get this error:
> >> >>> >
> >> >>> > "An error occured trying to get the current window"
> >> >>> >
> >> >>> >
> >> >>> > "Daniel Reib [MSFT]" wrote:
> >> >>> >
> >> >>> >> The print control is not supported in a win forms hosted app.
> >> >>> >> It
> >> >>> >> also
> >> >>> >> sounds like you have a 2000 version of the print control. To
> >> >>> >> get
> >> >>> >> the
> >> >>> >> 2005
> >> >>> >> version you will need to manually remove the ActiveX object.
> >> >>> >> (Via
> >> >>> >> IE->Tools->Internet Option->Settings->View Objects). Then
> >> >>> >> browse
> >> >>> >> to RM
> >> >>> >> and
> >> >>> >> click on the print icon again.
> >> >>> >>
> >> >>> >> --
> >> >>> >> -Daniel
> >> >>> >> This posting is provided "AS IS" with no warranties, and
> >> >>> >> confers
> >> >>> >> no
> >> >>> >> rights.
> >> >>> >>
> >> >>> >>
> >> >>> >> <sfboiler@.nospam.nospam> wrote in message
> >> >>> >> news:044A5757-6288-4FA1-8D9B-E76CA4488755@.microsoft.com...
> >> >>> >> > The error seem to be speficially with the print control.. In
> >> >>> >> > the same
> >> >>> >> > application I am able to right click on the browser window
> >> >>> >> > and
> >> >>> >> > click
> >> >>> >> > print.
> >> >>> >> > Everthing prints fine. But when I use the print button in
> >> >>> >> > the
> >> >>> >> > "Reporting
> >> >>> >> > Services 2005" tool bar. I get the print error.
> >> >>> >> >
> >> >>> >> > To reproduce this error..
> >> >>> >> > 1. create a report in RS 2005.
> >> >>> >> > 2. Create a windows Application in VS2003 .net framework 1.1
> >> >>> >> > (I
> >> >>> >> > use c#)
> >> >>> >> > 3. Create a form that embeds the web broswer conrtol.
> >> >>> >> > 4. Call the navigate method to show the report in the
> >> >>> >> > browser
> >> >>> >> > (Also I have the webserver set as local intranet site in
> >> >>> >> > security so
> >> >>> >> > that
> >> >>> >> > is
> >> >>> >> > passes credentials automatically)
> >> >>> >> >
> >> >>> >> > (Im also only showing the export / page / print toolbar)
> >> >>> >> >
> >> >>> >> > 5. click on the print icon on the report tool bar.
> >> >>> >> >
> >> >>> >> > Thats where I get the error.
> >> >>> >> >
> >> >>> >> > im usuing 2003 server with reporting services..
> >> >>> >> > and XP sp2, IE 6.0.2900.2180
> >> >>> >> >
> >> >>> >> > Bill
> >> >>> >> >
> >> >>> >> > "Steven Cheng[MSFT]" wrote:
> >> >>> >> >
> >> >>> >> >> Hi Sfboiler,
> >> >>> >> >>
> >> >>> >> >> Welcome to MSDN newsgroup.
> >> >>> >> >> From your description, you use the IE WebBrowser control in
> >> >>> >> >> your
> >> >>> >> >> winform
> >> >>> >> >> application which navigate to a certain reporting service's
> >> >>> >> >> report
> >> >>> >> >> page
> >> >>> >> >> and
> >> >>> >> >> let the winform app user print the report. However, you
> >> >>> >> >> found
> >> >>> >> >> that
> >> >>> >> >> you'll
> >> >>> >> >> get an errro "An error occured during printing
> >> >>> >> >> (0x8007F304)"
> >> >>> >> >> when try
> >> >>> >> >> printing the reprot through the "printing" button on the
> >> >>> >> >> page,
> >> >>> >> >> but
> >> >>> >> >> this
> >> >>> >> >> works well when we navigate the reprot through external IE
> >> >>> >> >> window,
> >> >>> >> >> yes?
> >> >>> >> >>
> >> >>> >> >> Based on my local testing, seems a normal report can be
> >> >>> >> >> printed
> >> >>> >> >> correctly
> >> >>> >> >> both through the IE WebBrowser control and external IE
> >> >>> >> >> window.... So
> >> >>> >> >> this
> >> >>> >> >> problem is related to the specific envrionment or
> >> >>> >> >> application.
> >> >>> >> >> Since
> >> >>> >> >> the
> >> >>> >> >> reporting service's reprot page's print button also use
> >> >>> >> >> some
> >> >>> >> >> script to
> >> >>> >> >> execute the print command, I'd suggest you also try
> >> >>> >> >> directly
> >> >>> >> >> using the
> >> >>> >> >> WebBrowser's print command to print the current document to
> >> >>> >> >> see
> >> >>> >> >> whether
> >> >>> >> >> you
> >> >>> >> >> can correctly print it. e.g:
> >> >>> >> >>
> >> >>> >> >> private void btnPrint_Click(object sender, System.EventArgs
> >> >>> >> >> e)
> >> >>> >> >> {
> >> >>> >> >> mshtml.HTMLDocument doc = axWB.Document as
> >> >>> >> >> mshtml.HTMLDocument;
> >> >>> >> >>
> >> >>> >> >> if(doc != null)
> >> >>> >> >> {
> >> >>> >> >> //doc.execCommand("Print", true, 0);
> >> >>> >> >>
> >> >>> >> >> axWB.ExecWB(SHDocVw.OLECMDID.OLECMDID_PRINT,SHDocVw.OLECMDEXECOPT.OLECMDEXEC
> >> >>> >> >> OPT_PROMPTUSER);
> >> >>> >> >> }
> >> >>> >> >> }|||The current users temp directory. If you type %temp% in start->run it
should take you there.
--
-Daniel
This posting is provided "AS IS" with no warranties, and confers no rights.
<sfboiler@.nospam.nospam> wrote in message
news:1E8B40E9-F6A4-4FC7-B0FC-B29B089B46DA@.microsoft.com...
>I had a cariage return in it.. and change it to a space.. and got nothing.
> Then did it with no space.. and still found nothing. I did this on the
> client machine where I get the error XP sp2. What directory should the
> tmp
> file be in?
>
> "Daniel Reib [MSFT]" wrote:
>> You added this on the client machine? If so I am not sure why it would
>> not
>> show up. Do you have a space between Reporting and Services?
>> --
>> -Daniel
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>> <sfboiler@.nospam.nospam> wrote in message
>> news:90E06A1E-1F00-41D2-A357-97C39455843D@.microsoft.com...
>> >I added the key to the registry, then ran my application where the error
>> > shows. I was unable to find any log file on my computer that starts
>> > with
>> > log
>> > and ends with tmp did a search log*.tmp also did *.tmp and none of
>> > the
>> > files returned started with log.
>> >
>> > "Daniel Reib [MSFT]" wrote:
>> >
>> >> Bruce is correct, this is certainly a supported scenario. We could
>> >> try
>> >> looking at the log file and see if it contains anything that might
>> >> help
>> >> us.
>> >> To do that add the following registry key:
>> >>
>> >>
>> >> [HKEY_CURRENT_USER\Software\Microsoft\Microsoft SQL
>> >> Server\80\Reporting
>> >> Services]
>> >> "LogRSClientPrintInfo"=dword:00000001
>> >>
>> >>
>> >> The log file will be generated in the %temp% directory and be called
>> >> Log#.tmp. If you could post this, it might help us figure out what is
>> >> going
>> >> on.
>> >>
>> >> --
>> >> -Daniel
>> >> This posting is provided "AS IS" with no warranties, and confers no
>> >> rights.
>> >>
>> >>
>> >> "Bruce L-C [MVP]" <bruce_lcNOSPAM@.hotmail.com> wrote in message
>> >> news:ubF2V%23BAGHA.3476@.TK2MSFTNGP10.phx.gbl...
>> >> > Are you physically sitting at the machine or did you connect via
>> >> > remote
>> >> > desktop or terminal services? Since you are using localhost it is
>> >> > one
>> >> > or
>> >> > the other. What OS do you have RS running with?
>> >> >
>> >> > Are you an admin on the box? For this to work it will want to
>> >> > install
>> >> > an
>> >> > active x control.
>> >> >
>> >> > It gets confusing because when you said App everyone thought you had
>> >> > your
>> >> > own asp.net app and were integrating with either URL integration or
>> >> > web
>> >> > services. For the future, what you are doing is called using Report
>> >> > Manager (this is what I call the portal that ships with RS).
>> >> >
>> >> > Note, from IE using Report Manager, printing should work. However,
>> >> > for
>> >> > it
>> >> > to work, the active x control has to get installed.
>> >> >
>> >> > If you are on the server (particularly Windows 2003 server OS) there
>> >> > can
>> >> > be security issues that might trip you up.
>> >> >
>> >> > I have lots of users using this printing (it came out with SP2 and
>> >> > continued with RS 2005). All my users have IE6 and either 2000 Pro
>> >> > or
>> >> > XP
>> >> > Pro. All the users are local admin. In this environment it has
>> >> > worked
>> >> > every time.
>> >> >
>> >> >
>> >> > --
>> >> > Bruce Loehle-Conger
>> >> > MVP SQL Server Reporting Services
>> >> >
>> >> > "Michael Rodriguez" <mike@.nospam.com> wrote in message
>> >> > news:OFs68pBAGHA.2148@.TK2MSFTNGP10.phx.gbl...
>> >> >> Daniel,
>> >> >>
>> >> >> I don't think we're connecting here. Here is what I am doing:
>> >> >>
>> >> >> - I upload the reports from VS to http://localhost/ReportServer
>> >> >> - I pull up IE and browse to http://localhost/Reports
>> >> >> - I select a report and preview it
>> >> >> - I click the print button on the reports toolbar right next to the
>> >> >> export and refresh buttons
>> >> >> - It tells me "an error occurred trying to get the current window"
>> >> >>
>> >> >> This is not a hosted winform app. This is the IE app ReportServer
>> >> >> created for me. Is this scenario supposed to be supported? If
>> >> >> not,
>> >> >> why
>> >> >> did MS put the print button there in the first place?
>> >> >>
>> >> >> Thank you very much for you help,
>> >> >>
>> >> >> Mike Rodriguez
>> >> >>
>> >> >>
>> >> >>
>> >> >> "Daniel Reib [MSFT]" <danreib@.online.microsoft.com> wrote in
>> >> >> message
>> >> >> news:%23ZGdkyAAGHA.3136@.TK2MSFTNGP15.phx.gbl...
>> >> >> Yes, the IE print control is not supported in hosted winform app.
>> >> >> If
>> >> >> you are writing a winform app you should use the report server
>> >> >> winform
>> >> >> control. Using this control will allow you to integrate report
>> >> >> viewing
>> >> >> with printing into your app.
>> >> >>
>> >> >> --
>> >> >> -Daniel
>> >> >> This posting is provided "AS IS" with no warranties, and confers
>> >> >> no
>> >> >> rights.
>> >> >>
>> >> >>
>> >> >> "Michael Rodriguez" <mike@.nospam.com> wrote in message
>> >> >> news:uGB4W13$FHA.2092@.TK2MSFTNGP10.phx.gbl...
>> >> >> I'm using RS 2005 and I still get the "cannot get window handle"
>> >> >> message in the IE toolbar created by ReportServer.
>> >> >>
>> >> >>
>> >> >> "Daniel Reib [MSFT]" <danreib@.online.microsoft.com> wrote in
>> >> >> message
>> >> >> news:Occ5qK3$FHA.2256@.TK2MSFTNGP11.phx.gbl...
>> >> >> Unfortunately the print control had limitations which forced us
>> >> >> to
>> >> >> not
>> >> >> be able to support this scenario. You can use the new RS 2005
>> >> >> controls which were designed to be embedded in applications.
>> >> >> They
>> >> >> do,
>> >> >> however, require that you use RS 2005.
>> >> >>
>> >> >> --
>> >> >> -Daniel
>> >> >> This posting is provided "AS IS" with no warranties, and confers
>> >> >> no
>> >> >> rights.
>> >> >>
>> >> >>
>> >> >> <sfboiler@.nospam.nospam> wrote in message
>> >> >> news:09EC2A3B-BF05-4135-89B8-FB89A170E7FC@.microsoft.com...
>> >> >> So.. How do I fix it?
>> >> >>
>> >> >> The whole reason we are using reporting services is because a
>> >> >> microsoft
>> >> >> consultant (Chris Jackson) told us we could imbed it into our
>> >> >> application and
>> >> >> that it would work.
>> >> >>
>> >> >> Bill
>> >> >>
>> >> >> "Daniel Reib [MSFT]" wrote:
>> >> >>
>> >> >>> That is correct. You are using the control in a Web Form app
>> >> >>> which
>> >> >>> hosts IE.
>> >> >>> This is not a supported scenario. The print control will not
>> >> >>> open
>> >> >>> because
>> >> >>> it can not find a handle to the current window.
>> >> >>>
>> >> >>> --
>> >> >>> -Daniel
>> >> >>> This posting is provided "AS IS" with no warranties, and
>> >> >>> confers
>> >> >>> no
>> >> >>> rights.
>> >> >>>
>> >> >>>
>> >> >>> <sfboiler@.nospam.nospam> wrote in message
>> >> >>> news:A71F127A-8290-4893-BB77-EA8AFEE1D2B8@.microsoft.com...
>> >> >>> >I deleted and reinstalled the control..
>> >> >>> >
>> >> >>> > Now I get this error:
>> >> >>> >
>> >> >>> > "An error occured trying to get the current window"
>> >> >>> >
>> >> >>> >
>> >> >>> > "Daniel Reib [MSFT]" wrote:
>> >> >>> >
>> >> >>> >> The print control is not supported in a win forms hosted
>> >> >>> >> app.
>> >> >>> >> It
>> >> >>> >> also
>> >> >>> >> sounds like you have a 2000 version of the print control.
>> >> >>> >> To
>> >> >>> >> get
>> >> >>> >> the
>> >> >>> >> 2005
>> >> >>> >> version you will need to manually remove the ActiveX
>> >> >>> >> object.
>> >> >>> >> (Via
>> >> >>> >> IE->Tools->Internet Option->Settings->View Objects). Then
>> >> >>> >> browse
>> >> >>> >> to RM
>> >> >>> >> and
>> >> >>> >> click on the print icon again.
>> >> >>> >>
>> >> >>> >> --
>> >> >>> >> -Daniel
>> >> >>> >> This posting is provided "AS IS" with no warranties, and
>> >> >>> >> confers
>> >> >>> >> no
>> >> >>> >> rights.
>> >> >>> >>
>> >> >>> >>
>> >> >>> >> <sfboiler@.nospam.nospam> wrote in message
>> >> >>> >> news:044A5757-6288-4FA1-8D9B-E76CA4488755@.microsoft.com...
>> >> >>> >> > The error seem to be speficially with the print control..
>> >> >>> >> > In
>> >> >>> >> > the same
>> >> >>> >> > application I am able to right click on the browser
>> >> >>> >> > window
>> >> >>> >> > and
>> >> >>> >> > click
>> >> >>> >> > print.
>> >> >>> >> > Everthing prints fine. But when I use the print button
>> >> >>> >> > in
>> >> >>> >> > the
>> >> >>> >> > "Reporting
>> >> >>> >> > Services 2005" tool bar. I get the print error.
>> >> >>> >> >
>> >> >>> >> > To reproduce this error..
>> >> >>> >> > 1. create a report in RS 2005.
>> >> >>> >> > 2. Create a windows Application in VS2003 .net framework
>> >> >>> >> > 1.1
>> >> >>> >> > (I
>> >> >>> >> > use c#)
>> >> >>> >> > 3. Create a form that embeds the web broswer conrtol.
>> >> >>> >> > 4. Call the navigate method to show the report in the
>> >> >>> >> > browser
>> >> >>> >> > (Also I have the webserver set as local intranet site in
>> >> >>> >> > security so
>> >> >>> >> > that
>> >> >>> >> > is
>> >> >>> >> > passes credentials automatically)
>> >> >>> >> >
>> >> >>> >> > (Im also only showing the export / page / print toolbar)
>> >> >>> >> >
>> >> >>> >> > 5. click on the print icon on the report tool bar.
>> >> >>> >> >
>> >> >>> >> > Thats where I get the error.
>> >> >>> >> >
>> >> >>> >> > im usuing 2003 server with reporting services..
>> >> >>> >> > and XP sp2, IE 6.0.2900.2180
>> >> >>> >> >
>> >> >>> >> > Bill
>> >> >>> >> >
>> >> >>> >> > "Steven Cheng[MSFT]" wrote:
>> >> >>> >> >
>> >> >>> >> >> Hi Sfboiler,
>> >> >>> >> >>
>> >> >>> >> >> Welcome to MSDN newsgroup.
>> >> >>> >> >> From your description, you use the IE WebBrowser control
>> >> >>> >> >> in
>> >> >>> >> >> your
>> >> >>> >> >> winform
>> >> >>> >> >> application which navigate to a certain reporting
>> >> >>> >> >> service's
>> >> >>> >> >> report
>> >> >>> >> >> page
>> >> >>> >> >> and
>> >> >>> >> >> let the winform app user print the report. However, you
>> >> >>> >> >> found
>> >> >>> >> >> that
>> >> >>> >> >> you'll
>> >> >>> >> >> get an errro "An error occured during printing
>> >> >>> >> >> (0x8007F304)"
>> >> >>> >> >> when try
>> >> >>> >> >> printing the reprot through the "printing" button on the
>> >> >>> >> >> page,
>> >> >>> >> >> but
>> >> >>> >> >> this
>> >> >>> >> >> works well when we navigate the reprot through external
>> >> >>> >> >> IE
>> >> >>> >> >> window,
>> >> >>> >> >> yes?
>> >> >>> >> >>
>> >> >>> >> >> Based on my local testing, seems a normal report can be
>> >> >>> >> >> printed
>> >> >>> >> >> correctly
>> >> >>> >> >> both through the IE WebBrowser control and external IE
>> >> >>> >> >> window.... So
>> >> >>> >> >> this
>> >> >>> >> >> problem is related to the specific envrionment or
>> >> >>> >> >> application.
>> >> >>> >> >> Since
>> >> >>> >> >> the
>> >> >>> >> >> reporting service's reprot page's print button also use
>> >> >>> >> >> some
>> >> >>> >> >> script to
>> >> >>> >> >> execute the print command, I'd suggest you also try
>> >> >>> >> >> directly
>> >> >>> >> >> using the
>> >> >>> >> >> WebBrowser's print command to print the current document
>> >> >>> >> >> to
>> >> >>> >> >> see
>> >> >>> >> >> whether
>> >> >>> >> >> you
>> >> >>> >> >> can correctly print it. e.g:
>> >> >>> >> >>
>> >> >>> >> >> private void btnPrint_Click(object sender,
>> >> >>> >> >> System.EventArgs
>> >> >>> >> >> e)
>> >> >>> >> >> {
>> >> >>> >> >> mshtml.HTMLDocument doc = axWB.Document as
>> >> >>> >> >> mshtml.HTMLDocument;
>> >> >>> >> >>
>> >> >>> >> >> if(doc != null)
>> >> >>> >> >> {
>> >> >>> >> >> //doc.execCommand("Print", true, 0);
>> >> >>> >> >>
>> >> >>> >> >> axWB.ExecWB(SHDocVw.OLECMDID.OLECMDID_PRINT,SHDocVw.OLECMDEXECOPT.OLECMDEXEC
>> >> >>> >> >> OPT_PROMPTUSER);
>> >> >>> >> >> }
>> >> >>> >> >> }|||CRSClientPrint::Print - Starting Function.
reportServerUrl = /ReportServer
reportPath = %2fTestConfig&rs:SessionID=nitytw55avw3wk5505mtdd2m
reportName = TestConfig
CResourceManager::SetLocaleInfo - Starting Function.
SetUICulture - Starting Function.
Attempted UI LCID = 9
Using UI LCID = 1033
SetUICulture - Ending Function.
CResourceManager::LoadResourceDLL - Starting Function.
CResourceManager::LoadResourceDLL - Ending Function: 0x00000000.
CResourceManager::CanUseCurrentLocale - Starting Function.
CResourceManager::CanUseCurrentLocale - Ending Function.
CResourceManager::LoadGDIPlus - Starting Function.
CResourceManager::LoadGDIPlus - Ending Function: 0x00000000.
Attempted culture = 1033
Using culture = 1033
Culture name = English_United States.1252
CResourceManager::SetLocaleInfo - Ending Function: 0x00000000.
Failure QIing or getting the windows handle
Returned error: 0x80004005
"Daniel Reib [MSFT]" wrote:
> The current users temp directory. If you type %temp% in start->run it
> should take you there.
> --
> -Daniel
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> <sfboiler@.nospam.nospam> wrote in message
> news:1E8B40E9-F6A4-4FC7-B0FC-B29B089B46DA@.microsoft.com...
> >I had a cariage return in it.. and change it to a space.. and got nothing.
> > Then did it with no space.. and still found nothing. I did this on the
> > client machine where I get the error XP sp2. What directory should the
> > tmp
> > file be in?
> >
> >
> > "Daniel Reib [MSFT]" wrote:
> >
> >> You added this on the client machine? If so I am not sure why it would
> >> not
> >> show up. Do you have a space between Reporting and Services?
> >>
> >> --
> >> -Daniel
> >> This posting is provided "AS IS" with no warranties, and confers no
> >> rights.
> >>
> >>
> >> <sfboiler@.nospam.nospam> wrote in message
> >> news:90E06A1E-1F00-41D2-A357-97C39455843D@.microsoft.com...
> >> >I added the key to the registry, then ran my application where the error
> >> > shows. I was unable to find any log file on my computer that starts
> >> > with
> >> > log
> >> > and ends with tmp did a search log*.tmp also did *.tmp and none of
> >> > the
> >> > files returned started with log.
> >> >
> >> > "Daniel Reib [MSFT]" wrote:
> >> >
> >> >> Bruce is correct, this is certainly a supported scenario. We could
> >> >> try
> >> >> looking at the log file and see if it contains anything that might
> >> >> help
> >> >> us.
> >> >> To do that add the following registry key:
> >> >>
> >> >>
> >> >> [HKEY_CURRENT_USER\Software\Microsoft\Microsoft SQL
> >> >> Server\80\Reporting
> >> >> Services]
> >> >> "LogRSClientPrintInfo"=dword:00000001
> >> >>
> >> >>
> >> >> The log file will be generated in the %temp% directory and be called
> >> >> Log#.tmp. If you could post this, it might help us figure out what is
> >> >> going
> >> >> on.
> >> >>
> >> >> --
> >> >> -Daniel
> >> >> This posting is provided "AS IS" with no warranties, and confers no
> >> >> rights.
> >> >>
> >> >>
> >> >> "Bruce L-C [MVP]" <bruce_lcNOSPAM@.hotmail.com> wrote in message
> >> >> news:ubF2V%23BAGHA.3476@.TK2MSFTNGP10.phx.gbl...
> >> >> > Are you physically sitting at the machine or did you connect via
> >> >> > remote
> >> >> > desktop or terminal services? Since you are using localhost it is
> >> >> > one
> >> >> > or
> >> >> > the other. What OS do you have RS running with?
> >> >> >
> >> >> > Are you an admin on the box? For this to work it will want to
> >> >> > install
> >> >> > an
> >> >> > active x control.
> >> >> >
> >> >> > It gets confusing because when you said App everyone thought you had
> >> >> > your
> >> >> > own asp.net app and were integrating with either URL integration or
> >> >> > web
> >> >> > services. For the future, what you are doing is called using Report
> >> >> > Manager (this is what I call the portal that ships with RS).
> >> >> >
> >> >> > Note, from IE using Report Manager, printing should work. However,
> >> >> > for
> >> >> > it
> >> >> > to work, the active x control has to get installed.
> >> >> >
> >> >> > If you are on the server (particularly Windows 2003 server OS) there
> >> >> > can
> >> >> > be security issues that might trip you up.
> >> >> >
> >> >> > I have lots of users using this printing (it came out with SP2 and
> >> >> > continued with RS 2005). All my users have IE6 and either 2000 Pro
> >> >> > or
> >> >> > XP
> >> >> > Pro. All the users are local admin. In this environment it has
> >> >> > worked
> >> >> > every time.
> >> >> >
> >> >> >
> >> >> > --
> >> >> > Bruce Loehle-Conger
> >> >> > MVP SQL Server Reporting Services
> >> >> >
> >> >> > "Michael Rodriguez" <mike@.nospam.com> wrote in message
> >> >> > news:OFs68pBAGHA.2148@.TK2MSFTNGP10.phx.gbl...
> >> >> >> Daniel,
> >> >> >>
> >> >> >> I don't think we're connecting here. Here is what I am doing:
> >> >> >>
> >> >> >> - I upload the reports from VS to http://localhost/ReportServer
> >> >> >> - I pull up IE and browse to http://localhost/Reports
> >> >> >> - I select a report and preview it
> >> >> >> - I click the print button on the reports toolbar right next to the
> >> >> >> export and refresh buttons
> >> >> >> - It tells me "an error occurred trying to get the current window"
> >> >> >>
> >> >> >> This is not a hosted winform app. This is the IE app ReportServer
> >> >> >> created for me. Is this scenario supposed to be supported? If
> >> >> >> not,
> >> >> >> why
> >> >> >> did MS put the print button there in the first place?
> >> >> >>
> >> >> >> Thank you very much for you help,
> >> >> >>
> >> >> >> Mike Rodriguez
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> "Daniel Reib [MSFT]" <danreib@.online.microsoft.com> wrote in
> >> >> >> message
> >> >> >> news:%23ZGdkyAAGHA.3136@.TK2MSFTNGP15.phx.gbl...
> >> >> >> Yes, the IE print control is not supported in hosted winform app.
> >> >> >> If
> >> >> >> you are writing a winform app you should use the report server
> >> >> >> winform
> >> >> >> control. Using this control will allow you to integrate report
> >> >> >> viewing
> >> >> >> with printing into your app.
> >> >> >>
> >> >> >> --
> >> >> >> -Daniel
> >> >> >> This posting is provided "AS IS" with no warranties, and confers
> >> >> >> no
> >> >> >> rights.
> >> >> >>
> >> >> >>
> >> >> >> "Michael Rodriguez" <mike@.nospam.com> wrote in message
> >> >> >> news:uGB4W13$FHA.2092@.TK2MSFTNGP10.phx.gbl...
> >> >> >> I'm using RS 2005 and I still get the "cannot get window handle"
> >> >> >> message in the IE toolbar created by ReportServer.
> >> >> >>
> >> >> >>
> >> >> >> "Daniel Reib [MSFT]" <danreib@.online.microsoft.com> wrote in
> >> >> >> message
> >> >> >> news:Occ5qK3$FHA.2256@.TK2MSFTNGP11.phx.gbl...
> >> >> >> Unfortunately the print control had limitations which forced us
> >> >> >> to
> >> >> >> not
> >> >> >> be able to support this scenario. You can use the new RS 2005
> >> >> >> controls which were designed to be embedded in applications.
> >> >> >> They
> >> >> >> do,
> >> >> >> however, require that you use RS 2005.
> >> >> >>
> >> >> >> --
> >> >> >> -Daniel
> >> >> >> This posting is provided "AS IS" with no warranties, and confers
> >> >> >> no
> >> >> >> rights.
> >> >> >>
> >> >> >>
> >> >> >> <sfboiler@.nospam.nospam> wrote in message
> >> >> >> news:09EC2A3B-BF05-4135-89B8-FB89A170E7FC@.microsoft.com...
> >> >> >> So.. How do I fix it?
> >> >> >>
> >> >> >> The whole reason we are using reporting services is because a
> >> >> >> microsoft
> >> >> >> consultant (Chris Jackson) told us we could imbed it into our
> >> >> >> application and
> >> >> >> that it would work.
> >> >> >>
> >> >> >> Bill
> >> >> >>
> >> >> >> "Daniel Reib [MSFT]" wrote:
> >> >> >>
> >> >> >>> That is correct. You are using the control in a Web Form app
> >> >> >>> which
> >> >> >>> hosts IE.
> >> >> >>> This is not a supported scenario. The print control will not
> >> >> >>> open
> >> >> >>> because
> >> >> >>> it can not find a handle to the current window.
> >> >> >>>
> >> >> >>> --
> >> >> >>> -Daniel
> >> >> >>> This posting is provided "AS IS" with no warranties, and
> >> >> >>> confers
> >> >> >>> no
> >> >> >>> rights.
> >> >> >>>
> >> >> >>>
> >> >> >>> <sfboiler@.nospam.nospam> wrote in message
> >> >> >>> news:A71F127A-8290-4893-BB77-EA8AFEE1D2B8@.microsoft.com...
> >> >> >>> >I deleted and reinstalled the control..
> >> >> >>> >
> >> >> >>> > Now I get this error:
> >> >> >>> >
> >> >> >>> > "An error occured trying to get the current window"
> >> >> >>> >
> >> >> >>> >
> >> >> >>> > "Daniel Reib [MSFT]" wrote:
> >> >> >>> >
> >> >> >>> >> The print control is not supported in a win forms hosted
> >> >> >>> >> app.
> >> >> >>> >> It
> >> >> >>> >> also
> >> >> >>> >> sounds like you have a 2000 version of the print control.
> >> >> >>> >> To
> >> >> >>> >> get
> >> >> >>> >> the
> >> >> >>> >> 2005
> >> >> >>> >> version you will need to manually remove the ActiveX
> >> >> >>> >> object.
> >> >> >>> >> (Via
> >> >> >>> >> IE->Tools->Internet Option->Settings->View Objects). Then
> >> >> >>> >> browse
> >> >> >>> >> to RM
> >> >> >>> >> and
> >> >> >>> >> click on the print icon again.
> >> >> >>> >>
> >> >> >>> >> --
> >> >> >>> >> -Daniel
> >> >> >>> >> This posting is provided "AS IS" with no warranties, and
> >> >> >>> >> confers
> >> >> >>> >> no
> >> >> >>> >> rights.
> >> >> >>> >>
> >> >> >>> >>
> >> >> >>> >> <sfboiler@.nospam.nospam> wrote in message
> >> >> >>> >> news:044A5757-6288-4FA1-8D9B-E76CA4488755@.microsoft.com...
> >> >> >>> >> > The error seem to be speficially with the print control..
> >> >> >>> >> > In
> >> >> >>> >> > the same
> >> >> >>> >> > application I am able to right click on the browser
> >> >> >>> >> > window
> >> >> >>> >> > and
> >> >> >>> >> > click
> >> >> >>> >> > print.
> >> >> >>> >> > Everthing prints fine. But when I use the print button
> >> >> >>> >> > in
> >> >> >>> >> > the
> >> >> >>> >> > "Reporting
> >> >> >>> >> > Services 2005" tool bar. I get the print error.
> >> >> >>> >> >
> >> >> >>> >> > To reproduce this error..
> >> >> >>> >> > 1. create a report in RS 2005.
> >> >> >>> >> > 2. Create a windows Application in VS2003 .net framework
> >> >> >>> >> > 1.1
> >> >> >>> >> > (I
> >> >> >>> >> > use c#)
> >> >> >>> >> > 3. Create a form that embeds the web broswer conrtol.
> >> >> >>> >> > 4. Call the navigate method to show the report in the
> >> >> >>> >> > browser
> >> >> >>> >> > (Also I have the webserver set as local intranet site in
> >> >> >>> >> > security so
> >> >> >>> >> > that
> >> >> >>> >> > is
> >> >> >>> >> > passes credentials automatically)
> >> >> >>> >> >
> >> >> >>> >> > (Im also only showing the export / page / print toolbar)
> >> >> >>> >> >
> >> >> >>> >> > 5. click on the print icon on the report tool bar.
> >> >> >>> >> >
> >> >> >>> >> > Thats where I get the error.
> >> >> >>> >> >
> >> >> >>> >> > im usuing 2003 server with reporting services..
> >> >> >>> >> > and XP sp2, IE 6.0.2900.2180
> >> >> >>> >> >
> >> >> >>> >> > Bill
> >> >> >>> >> >
> >> >> >>> >> > "Steven Cheng[MSFT]" wrote:
> >> >> >>> >> >
> >> >> >>> >> >> Hi Sfboiler,
> >> >> >>> >> >>
> >> >> >>> >> >> Welcome to MSDN newsgroup.
> >> >> >>> >> >> From your description, you use the IE WebBrowser control
> >> >> >>> >> >> in
> >> >> >>> >> >> your
> >> >> >>> >> >> winform
> >> >> >>> >> >> application which navigate to a certain reporting
> >> >> >>> >> >> service's
> >> >> >>> >> >> report
> >> >> >>> >> >> page
> >> >> >>> >> >> and|||Hmm, nothing really helpful. I am at a loss. I have never seen this error
when using IE, only when hosting IE in winforms. I have no idea why you
would be getting this.
--
-Daniel
This posting is provided "AS IS" with no warranties, and confers no rights.
<sfboiler@.nospam.nospam> wrote in message
news:04B36EF9-0EA0-4A34-80BD-6B3C61E428E1@.microsoft.com...
> CRSClientPrint::Print - Starting Function.
> reportServerUrl = /ReportServer
> reportPath = %2fTestConfig&rs:SessionID=nitytw55avw3wk5505mtdd2m
> reportName = TestConfig
> CResourceManager::SetLocaleInfo - Starting Function.
> SetUICulture - Starting Function.
> Attempted UI LCID = 9
> Using UI LCID = 1033
> SetUICulture - Ending Function.
> CResourceManager::LoadResourceDLL - Starting Function.
> CResourceManager::LoadResourceDLL - Ending Function: 0x00000000.
> CResourceManager::CanUseCurrentLocale - Starting Function.
> CResourceManager::CanUseCurrentLocale - Ending Function.
> CResourceManager::LoadGDIPlus - Starting Function.
> CResourceManager::LoadGDIPlus - Ending Function: 0x00000000.
> Attempted culture = 1033
> Using culture = 1033
> Culture name = English_United States.1252
> CResourceManager::SetLocaleInfo - Ending Function: 0x00000000.
> Failure QIing or getting the windows handle
> Returned error: 0x80004005
>
> "Daniel Reib [MSFT]" wrote:
>> The current users temp directory. If you type %temp% in start->run it
>> should take you there.
>> --
>> -Daniel
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>> <sfboiler@.nospam.nospam> wrote in message
>> news:1E8B40E9-F6A4-4FC7-B0FC-B29B089B46DA@.microsoft.com...
>> >I had a cariage return in it.. and change it to a space.. and got
>> >nothing.
>> > Then did it with no space.. and still found nothing. I did this on the
>> > client machine where I get the error XP sp2. What directory should the
>> > tmp
>> > file be in?
>> >
>> >
>> > "Daniel Reib [MSFT]" wrote:
>> >
>> >> You added this on the client machine? If so I am not sure why it
>> >> would
>> >> not
>> >> show up. Do you have a space between Reporting and Services?
>> >>
>> >> --
>> >> -Daniel
>> >> This posting is provided "AS IS" with no warranties, and confers no
>> >> rights.
>> >>
>> >>
>> >> <sfboiler@.nospam.nospam> wrote in message
>> >> news:90E06A1E-1F00-41D2-A357-97C39455843D@.microsoft.com...
>> >> >I added the key to the registry, then ran my application where the
>> >> >error
>> >> > shows. I was unable to find any log file on my computer that starts
>> >> > with
>> >> > log
>> >> > and ends with tmp did a search log*.tmp also did *.tmp and none
>> >> > of
>> >> > the
>> >> > files returned started with log.
>> >> >
>> >> > "Daniel Reib [MSFT]" wrote:
>> >> >
>> >> >> Bruce is correct, this is certainly a supported scenario. We could
>> >> >> try
>> >> >> looking at the log file and see if it contains anything that might
>> >> >> help
>> >> >> us.
>> >> >> To do that add the following registry key:
>> >> >>
>> >> >>
>> >> >> [HKEY_CURRENT_USER\Software\Microsoft\Microsoft SQL
>> >> >> Server\80\Reporting
>> >> >> Services]
>> >> >> "LogRSClientPrintInfo"=dword:00000001
>> >> >>
>> >> >>
>> >> >> The log file will be generated in the %temp% directory and be
>> >> >> called
>> >> >> Log#.tmp. If you could post this, it might help us figure out what
>> >> >> is
>> >> >> going
>> >> >> on.
>> >> >>
>> >> >> --
>> >> >> -Daniel
>> >> >> This posting is provided "AS IS" with no warranties, and confers no
>> >> >> rights.
>> >> >>
>> >> >>
>> >> >> "Bruce L-C [MVP]" <bruce_lcNOSPAM@.hotmail.com> wrote in message
>> >> >> news:ubF2V%23BAGHA.3476@.TK2MSFTNGP10.phx.gbl...
>> >> >> > Are you physically sitting at the machine or did you connect via
>> >> >> > remote
>> >> >> > desktop or terminal services? Since you are using localhost it is
>> >> >> > one
>> >> >> > or
>> >> >> > the other. What OS do you have RS running with?
>> >> >> >
>> >> >> > Are you an admin on the box? For this to work it will want to
>> >> >> > install
>> >> >> > an
>> >> >> > active x control.
>> >> >> >
>> >> >> > It gets confusing because when you said App everyone thought you
>> >> >> > had
>> >> >> > your
>> >> >> > own asp.net app and were integrating with either URL integration
>> >> >> > or
>> >> >> > web
>> >> >> > services. For the future, what you are doing is called using
>> >> >> > Report
>> >> >> > Manager (this is what I call the portal that ships with RS).
>> >> >> >
>> >> >> > Note, from IE using Report Manager, printing should work.
>> >> >> > However,
>> >> >> > for
>> >> >> > it
>> >> >> > to work, the active x control has to get installed.
>> >> >> >
>> >> >> > If you are on the server (particularly Windows 2003 server OS)
>> >> >> > there
>> >> >> > can
>> >> >> > be security issues that might trip you up.
>> >> >> >
>> >> >> > I have lots of users using this printing (it came out with SP2
>> >> >> > and
>> >> >> > continued with RS 2005). All my users have IE6 and either 2000
>> >> >> > Pro
>> >> >> > or
>> >> >> > XP
>> >> >> > Pro. All the users are local admin. In this environment it has
>> >> >> > worked
>> >> >> > every time.
>> >> >> >
>> >> >> >
>> >> >> > --
>> >> >> > Bruce Loehle-Conger
>> >> >> > MVP SQL Server Reporting Services
>> >> >> >
>> >> >> > "Michael Rodriguez" <mike@.nospam.com> wrote in message
>> >> >> > news:OFs68pBAGHA.2148@.TK2MSFTNGP10.phx.gbl...
>> >> >> >> Daniel,
>> >> >> >>
>> >> >> >> I don't think we're connecting here. Here is what I am doing:
>> >> >> >>
>> >> >> >> - I upload the reports from VS to http://localhost/ReportServer
>> >> >> >> - I pull up IE and browse to http://localhost/Reports
>> >> >> >> - I select a report and preview it
>> >> >> >> - I click the print button on the reports toolbar right next to
>> >> >> >> the
>> >> >> >> export and refresh buttons
>> >> >> >> - It tells me "an error occurred trying to get the current
>> >> >> >> window"
>> >> >> >>
>> >> >> >> This is not a hosted winform app. This is the IE app
>> >> >> >> ReportServer
>> >> >> >> created for me. Is this scenario supposed to be supported? If
>> >> >> >> not,
>> >> >> >> why
>> >> >> >> did MS put the print button there in the first place?
>> >> >> >>
>> >> >> >> Thank you very much for you help,
>> >> >> >>
>> >> >> >> Mike Rodriguez
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> "Daniel Reib [MSFT]" <danreib@.online.microsoft.com> wrote in
>> >> >> >> message
>> >> >> >> news:%23ZGdkyAAGHA.3136@.TK2MSFTNGP15.phx.gbl...
>> >> >> >> Yes, the IE print control is not supported in hosted winform
>> >> >> >> app.
>> >> >> >> If
>> >> >> >> you are writing a winform app you should use the report server
>> >> >> >> winform
>> >> >> >> control. Using this control will allow you to integrate report
>> >> >> >> viewing
>> >> >> >> with printing into your app.
>> >> >> >>
>> >> >> >> --
>> >> >> >> -Daniel
>> >> >> >> This posting is provided "AS IS" with no warranties, and
>> >> >> >> confers
>> >> >> >> no
>> >> >> >> rights.
>> >> >> >>
>> >> >> >>
>> >> >> >> "Michael Rodriguez" <mike@.nospam.com> wrote in message
>> >> >> >> news:uGB4W13$FHA.2092@.TK2MSFTNGP10.phx.gbl...
>> >> >> >> I'm using RS 2005 and I still get the "cannot get window
>> >> >> >> handle"
>> >> >> >> message in the IE toolbar created by ReportServer.
>> >> >> >>
>> >> >> >>
>> >> >> >> "Daniel Reib [MSFT]" <danreib@.online.microsoft.com> wrote in
>> >> >> >> message
>> >> >> >> news:Occ5qK3$FHA.2256@.TK2MSFTNGP11.phx.gbl...
>> >> >> >> Unfortunately the print control had limitations which forced
>> >> >> >> us
>> >> >> >> to
>> >> >> >> not
>> >> >> >> be able to support this scenario. You can use the new RS
>> >> >> >> 2005
>> >> >> >> controls which were designed to be embedded in applications.
>> >> >> >> They
>> >> >> >> do,
>> >> >> >> however, require that you use RS 2005.
>> >> >> >>
>> >> >> >> --
>> >> >> >> -Daniel
>> >> >> >> This posting is provided "AS IS" with no warranties, and
>> >> >> >> confers
>> >> >> >> no
>> >> >> >> rights.
>> >> >> >>
>> >> >> >>
>> >> >> >> <sfboiler@.nospam.nospam> wrote in message
>> >> >> >> news:09EC2A3B-BF05-4135-89B8-FB89A170E7FC@.microsoft.com...
>> >> >> >> So.. How do I fix it?
>> >> >> >>
>> >> >> >> The whole reason we are using reporting services is because
>> >> >> >> a
>> >> >> >> microsoft
>> >> >> >> consultant (Chris Jackson) told us we could imbed it into
>> >> >> >> our
>> >> >> >> application and
>> >> >> >> that it would work.
>> >> >> >>
>> >> >> >> Bill
>> >> >> >>
>> >> >> >> "Daniel Reib [MSFT]" wrote:
>> >> >> >>
>> >> >> >>> That is correct. You are using the control in a Web Form
>> >> >> >>> app
>> >> >> >>> which
>> >> >> >>> hosts IE.
>> >> >> >>> This is not a supported scenario. The print control will
>> >> >> >>> not
>> >> >> >>> open
>> >> >> >>> because
>> >> >> >>> it can not find a handle to the current window.
>> >> >> >>>
>> >> >> >>> --
>> >> >> >>> -Daniel
>> >> >> >>> This posting is provided "AS IS" with no warranties, and
>> >> >> >>> confers
>> >> >> >>> no
>> >> >> >>> rights.
>> >> >> >>>
>> >> >> >>>
>> >> >> >>> <sfboiler@.nospam.nospam> wrote in message
>> >> >> >>> news:A71F127A-8290-4893-BB77-EA8AFEE1D2B8@.microsoft.com...
>> >> >> >>> >I deleted and reinstalled the control..
>> >> >> >>> >
>> >> >> >>> > Now I get this error:
>> >> >> >>> >
>> >> >> >>> > "An error occured trying to get the current window"
>> >> >> >>> >
>> >> >> >>> >
>> >> >> >>> > "Daniel Reib [MSFT]" wrote:
>> >> >> >>> >
>> >> >> >>> >> The print control is not supported in a win forms hosted
>> >> >> >>> >> app.
>> >> >> >>> >> It
>> >> >> >>> >> also
>> >> >> >>> >> sounds like you have a 2000 version of the print
>> >> >> >>> >> control.
>> >> >> >>> >> To
>> >> >> >>> >> get
>> >> >> >>> >> the
>> >> >> >>> >> 2005
>> >> >> >>> >> version you will need to manually remove the ActiveX
>> >> >> >>> >> object.
>> >> >> >>> >> (Via
>> >> >> >>> >> IE->Tools->Internet Option->Settings->View Objects).
>> >> >> >>> >> Then
>> >> >> >>> >> browse
>> >> >> >>> >> to RM
>> >> >> >>> >> and
>> >> >> >>> >> click on the print icon again.
>> >> >> >>> >>
>> >> >> >>> >> --
>> >> >> >>> >> -Daniel
>> >> >> >>> >> This posting is provided "AS IS" with no warranties, and
>> >> >> >>> >> confers
>> >> >> >>> >> no
>> >> >> >>> >> rights.
>> >> >> >>> >>
>> >> >> >>> >>
>> >> >> >>> >> <sfboiler@.nospam.nospam> wrote in message
>> >> >> >>> >> news:044A5757-6288-4FA1-8D9B-E76CA4488755@.microsoft.com...
>> >> >> >>> >> > The error seem to be speficially with the print
>> >> >> >>> >> > control..
>> >> >> >>> >> > In
>> >> >> >>> >> > the same
>> >> >> >>> >> > application I am able to right click on the browser
>> >> >> >>> >> > window
>> >> >> >>> >> > and
>> >> >> >>> >> > click
>> >> >> >>> >> > print.
>> >> >> >>> >> > Everthing prints fine. But when I use the print
>> >> >> >>> >> > button
>> >> >> >>> >> > in
>> >> >> >>> >> > the
>> >> >> >>> >> > "Reporting
>> >> >> >>> >> > Services 2005" tool bar. I get the print error.
>> >> >> >>> >> >
>> >> >> >>> >> > To reproduce this error..
>> >> >> >>> >> > 1. create a report in RS 2005.
>> >> >> >>> >> > 2. Create a windows Application in VS2003 .net
>> >> >> >>> >> > framework
>> >> >> >>> >> > 1.1
>> >> >> >>> >> > (I
>> >> >> >>> >> > use c#)
>> >> >> >>> >> > 3. Create a form that embeds the web broswer conrtol.
>> >> >> >>> >> > 4. Call the navigate method to show the report in the
>> >> >> >>> >> > browser
>> >> >> >>> >> > (Also I have the webserver set as local intranet site
>> >> >> >>> >> > in
>> >> >> >>> >> > security so
>> >> >> >>> >> > that
>> >> >> >>> >> > is
>> >> >> >>> >> > passes credentials automatically)
>> >> >> >>> >> >
>> >> >> >>> >> > (Im also only showing the export / page / print
>> >> >> >>> >> > toolbar)
>> >> >> >>> >> >
>> >> >> >>> >> > 5. click on the print icon on the report tool bar.
>> >> >> >>> >> >
>> >> >> >>> >> > Thats where I get the error.
>> >> >> >>> >> >
>> >> >> >>> >> > im usuing 2003 server with reporting services..
>> >> >> >>> >> > and XP sp2, IE 6.0.2900.2180
>> >> >> >>> >> >
>> >> >> >>> >> > Bill
>> >> >> >>> >> >
>> >> >> >>> >> > "Steven Cheng[MSFT]" wrote:
>> >> >> >>> >> >
>> >> >> >>> >> >> Hi Sfboiler,
>> >> >> >>> >> >>
>> >> >> >>> >> >> Welcome to MSDN newsgroup.
>> >> >> >>> >> >> From your description, you use the IE WebBrowser
>> >> >> >>> >> >> control
>> >> >> >>> >> >> in
>> >> >> >>> >> >> your
>> >> >> >>> >> >> winform
>> >> >> >>> >> >> application which navigate to a certain reporting
>> >> >> >>> >> >> service's
>> >> >> >>> >> >> report
>> >> >> >>> >> >> page
>> >> >> >>> >> >> and|||To print a report from within a windows application (windows application !=web application) you have to do one of the following:
1. Disable the print icon on the reporting server (this will disable it for
all reports, which may be an undesireable effect). Then impliment your own
via the windows form. See the SQL 2005 Books Online documents for how to do
this.
2. Override Microsoft's POS code with a more browser/platform friendly
(heh, not like their stuff is w3c compliant anyway), more secure method...
private void axWebBrowser1_DocumentComplete(object sender,
AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent e) {
string html =((mshtml.IHTMLElement)(((mshtml.HTMLDocumentClass)(((System.Object)((axWebBr
owser1.Document))))).body)).innerHTML;
if
(Regex.IsMatch(html,@."onclick=\""ClientToolbarReportViewerControl_ctl01.Load
PrintControl\(\);return\sfalse;\""", RegexOptions.Compiled)) {
((mshtml.IHTMLElement)(((mshtml.HTMLDocumentClass)(((System.Object)((axWebBr
owser1.Document))))).body)).innerHTML = html.Replace(
@."onclick=""ClientToolbarReportViewerControl_ctl01.LoadPrintControl();return
false;""",
@."onclick=""javascript:print()""");
}
}
Some changes should include, less casting, more flexible regex & string
matching, and javascript:print() could be replaced with better options,
also. I just did this as a quick hack to show that it is possible, seeming
that Microsoft doesn't support their stuff, and that there are many web
posts about this problems.
-John
<sfboiler@.nospam.nospam> wrote in message
news:04F1C03C-7548-4494-BB82-DC84988FAE7D@.microsoft.com...
> We are usuing a windows app with version .net 1.1. Reporting Services is
> running on a differnat server so we do not having any code in .net 2.0.
> Our webservices are written in c# .net 1.1 and are not deployed to the
same
> server as reporting services runs from
> We are linking to Reporting services usuing URL access with the IE control
> embeded into the windows form.
> Bill
> "Bruce L-C [MVP]" wrote:
> > If you are using RS 2005 then you have at least some of your web site
using
> > framework 2.0 (since it is a framework 2.0 app). Can you leave most of
your
> > app at 1.1 and just have a page with the new control in 2.0? As I said,
I
> > don't know how feasible it is.
> >
> > The ability to tightly integrate has improved greatly between versions.
RS
> > 2005 offers much better integration with the new controls. Because of
your
> > situation it sounds like that is not an option for you at this time.
There
> > are ways around it but nothing is that easy (render to a file on the
server
> > and print that, etc).
> >
> > It wasn't until SP2 that there was any printing. Previously my users had
to
> > export to PDF and then print. That is still an option.
> >
> > URL integration has some strong points, web services has it's strong
points.
> > You seem to have hit an issue with URL integration. If there is any way
to
> > use the new controls that would be the best solution.
> >
> >
> > --
> > Bruce Loehle-Conger
> > MVP SQL Server Reporting Services
> >
> > <sfboiler@.nospam.nospam> wrote in message
> > news:2E4460ED-0983-4BD4-856B-CF78A875A615@.microsoft.com...
> > >I am usuing Visual Studio 2003 (.net 1.1) with Reporting Services 2005.
I
> > >am
> > > not able to ugrade my application at this time. It is very large and
> > > years
> > > in development. we currently have 36mb of souce code and are close to
> > > being
> > > ready for deployment. Ugrading to Visual Studio 2005 is not an option
at
> > > the
> > > moment.
> > >
> > > How can this not be supported? Everything I am usuing in Microsoft.
> > >
> > > Visual Studio .. Microsoft
> > > Windows XP .. Microsoft
> > > Interenet Explorer .. Microsoft
> > > SQL Server .. Microsoft
> > > Reporting Services .. Microsoft
> > >
> > > Its seems to me there is a problem with the ReportingServices print
dll.
> > >
> > > What good is a reporting tool.. if you cant print?
> > >
> > > Bill
> > >
> > >
> > > "Bruce L-C [MVP]" wrote:
> > >
> > >> I might be mistaken but I think the issue here is how it is being
done.
> > >> If
> > >> you use the new controls that come with VS 2005 you will get the full
> > >> functionality. I haven't used the web control but I have used the new
> > >> winform control and the printing functionality is there. If you read
the
> > >> first post there is URL integration going on. The new controls use
web
> > >> services which eliminates a lot of the problems.
> > >>
> > >> The new controls have a whole lot of functionality and provide much
> > >> better
> > >> integration with a lot less effort than was possible before.
> > >>
> > >>
> > >> --
> > >> Bruce Loehle-Conger
> > >> MVP SQL Server Reporting Services
> > >>
> > >>
> > >> "Michael Rodriguez" <mike@.nospam.com> wrote in message
> > >> news:umDqU72$FHA.3800@.TK2MSFTNGP10.phx.gbl...
> > >> > "Daniel Reib [MSFT]" <danreib@.online.microsoft.com> wrote in
message
> > >> > news:uTG6ks0$FHA.3136@.TK2MSFTNGP15.phx.gbl...
> > >> >> That is correct. You are using the control in a Web Form app which
> > >> >> hosts
> > >> >> IE. This is not a supported scenario. The print control will not
open
> > >> >> because it can not find a handle to the current window.
> > >> >>
> > >> >> --
> > >> >
> > >> > What'! Are you actually saying that trying to print a report from
the
> > >> > ReportServer created web application is not a "supported
> > >> > scenario"'!!!!
> > >> > How exactly *are* we supposed to print these reports?
> > >> >
> > >> > Very confused,
> > >> >
> > >> > Mike
> > >> >
> > >> >
> > >>
> > >>
> > >>
> >
> >
> >|||When did this stop being supported? This was the recommended method of
printing reportserver reports from legacy apps like VB6 in RS2000 (and it did
work). If the old version of the control could get the handle to the window,
whay can't the new version? Is there any other way to PRINT a report from a
VB6 app?
BTW, I have a vb6 app with a webbrowser control in it. I use the control's
Navigate2 method to open the report. The user presses the print button to
get a paginated hardcopy. An error pops up "An error occurred during
printing (...)". The only alternative is to ask the user to export to PDF
and then print (shameful).
"Daniel Reib [MSFT]" wrote:
> That is correct. You are using the control in a Web Form app which hosts IE.
> This is not a supported scenario. The print control will not open because
> it can not find a handle to the current window.
> --
> -Daniel
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> <sfboiler@.nospam.nospam> wrote in message
> news:A71F127A-8290-4893-BB77-EA8AFEE1D2B8@.microsoft.com...
> >I deleted and reinstalled the control..
> >
> > Now I get this error:
> >
> > "An error occured trying to get the current window"
> >
> >
> > "Daniel Reib [MSFT]" wrote:
> >
> >> The print control is not supported in a win forms hosted app. It also
> >> sounds like you have a 2000 version of the print control. To get the
> >> 2005
> >> version you will need to manually remove the ActiveX object. (Via
> >> IE->Tools->Internet Option->Settings->View Objects). Then browse to RM
> >> and
> >> click on the print icon again.
> >>
> >> --
> >> -Daniel
> >> This posting is provided "AS IS" with no warranties, and confers no
> >> rights.
> >>
> >>
> >> <sfboiler@.nospam.nospam> wrote in message
> >> news:044A5757-6288-4FA1-8D9B-E76CA4488755@.microsoft.com...
> >> > The error seem to be speficially with the print control.. In the same
> >> > application I am able to right click on the browser window and click
> >> > print.
> >> > Everthing prints fine. But when I use the print button in the
> >> > "Reporting
> >> > Services 2005" tool bar. I get the print error.
> >> >
> >> > To reproduce this error..
> >> > 1. create a report in RS 2005.
> >> > 2. Create a windows Application in VS2003 .net framework 1.1 (I use c#)
> >> > 3. Create a form that embeds the web broswer conrtol.
> >> > 4. Call the navigate method to show the report in the browser
> >> > (Also I have the webserver set as local intranet site in security so
> >> > that
> >> > is
> >> > passes credentials automatically)
> >> >
> >> > (Im also only showing the export / page / print toolbar)
> >> >
> >> > 5. click on the print icon on the report tool bar.
> >> >
> >> > Thats where I get the error.
> >> >
> >> > im usuing 2003 server with reporting services..
> >> > and XP sp2, IE 6.0.2900.2180
> >> >
> >> > Bill
> >> >
> >> > "Steven Cheng[MSFT]" wrote:
> >> >
> >> >> Hi Sfboiler,
> >> >>
> >> >> Welcome to MSDN newsgroup.
> >> >> From your description, you use the IE WebBrowser control in your
> >> >> winform
> >> >> application which navigate to a certain reporting service's report
> >> >> page
> >> >> and
> >> >> let the winform app user print the report. However, you found that
> >> >> you'll
> >> >> get an errro "An error occured during printing (0x8007F304)" when try
> >> >> printing the reprot through the "printing" button on the page, but
> >> >> this
> >> >> works well when we navigate the reprot through external IE window,
> >> >> yes?
> >> >>
> >> >> Based on my local testing, seems a normal report can be printed
> >> >> correctly
> >> >> both through the IE WebBrowser control and external IE window.... So
> >> >> this
> >> >> problem is related to the specific envrionment or application. Since
> >> >> the
> >> >> reporting service's reprot page's print button also use some script to
> >> >> execute the print command, I'd suggest you also try directly using the
> >> >> WebBrowser's print command to print the current document to see
> >> >> whether
> >> >> you
> >> >> can correctly print it. e.g:
> >> >>
> >> >> private void btnPrint_Click(object sender, System.EventArgs e)
> >> >> {
> >> >> mshtml.HTMLDocument doc = axWB.Document as mshtml.HTMLDocument;
> >> >>
> >> >> if(doc != null)
> >> >> {
> >> >> //doc.execCommand("Print", true, 0);
> >> >>
> >> >> axWB.ExecWB(SHDocVw.OLECMDID.OLECMDID_PRINT,SHDocVw.OLECMDEXECOPT.OLECMDEXEC
> >> >> OPT_PROMPTUSER);
> >> >> }
> >> >> }
> >> >>
> >> >>
> >> >> If this also fails, I'm afraid there must have something incorrect
> >> >> with
> >> >> the
> >> >> browser's script engine or else...
> >> >>
> >> >> In addition, you can also check the reporting service's serverside log
> >> >> (under ....\Reporting Services\LogFiles folder) to see whether
> >> >> there're
> >> >> anything incorrectly for the reporter's generating....
> >> >>
> >> >> If there're anything else found, please feel free to post here.
> >> >>
> >> >> Thanks,
> >> >>
> >> >> Steven Cheng
> >> >> Microsoft Online Support
> >> >>
> >> >> Get Secure! www.microsoft.com/security
> >> >> (This posting is provided "AS IS", with no warranties, and confers no
> >> >> rights.)
> >> >>
> >> >>
> >> >> --
> >> >> | Thread-Topic: An error occured during printing or An error occurred
> >> >> during print
> >> >> | thread-index: AcX+c6CWzuG9ppc2S3ekdUXsIh9hsw==> >> >> | X-WBNR-Posting-Host: 67.109.68.162
> >> >> | From: "=?Utf-8?B?c2Zib2lsZXJAbm9zcGFtLm5vc3BhbQ==?="
> >> >> <sfboiler@.nospam.nospam>
> >> >> | Subject: An error occured during printing or An error occurred
> >> >> during
> >> >> print
> >> >> | Date: Sun, 11 Dec 2005 08:55:02 -0800
> >> >> | Lines: 20
> >> >> | Message-ID: <25C4730C-D1B0-46A8-BBF7-92DC5CCFAA7A@.microsoft.com>
> >> >> | MIME-Version: 1.0
> >> >> | Content-Type: text/plain;
> >> >> | charset="Utf-8"
> >> >> | Content-Transfer-Encoding: 7bit
> >> >> | X-Newsreader: Microsoft CDO for Windows 2000
> >> >> | Content-Class: urn:content-classes:message
> >> >> | Importance: normal
> >> >> | Priority: normal
> >> >> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
> >> >> | Newsgroups: microsoft.public.sqlserver.reportingsvcs
> >> >> | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
> >> >> | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
> >> >> | Xref: TK2MSFTNGXA02.phx.gbl
> >> >> microsoft.public.sqlserver.reportingsvcs:64792
> >> >> | X-Tomcat-NG: microsoft.public.sqlserver.reportingsvcs
> >> >> |
> >> >> | I get the following error when using the print button on the HTML
> >> >> view
> >> >> of
> >> >> a
> >> >> | report with reporting services 2005.
> >> >> |
> >> >> | "An error occured during printing (0x8007F304)"
> >> >> |
> >> >> | I have a windows application written in VS2003 .net 1.1 and it loads
> >> >> a
> >> >> | webcontrol to show and print the reports. I am using the URL syntax
> >> >> to
> >> >> view
> >> >> | the report. The report views ok, but when the user clicks the print
> >> >> button,
> >> >> | they get the error.
> >> >> |
> >> >> | When I run the report via the report manager, I am able to print
> >> >> directly
> >> >> in
> >> >> | the browser.
> >> >> |
> >> >> | Im running XP SP2.
> >> >> |
> >> >> | The application I wrote is running under my windows credentials, And
> >> >> I
> >> >> have
> >> >> | rights to print to all the printers.
> >> >> |
> >> >> | Also.. when I click print, the print dialog doesnt come up.. just
> >> >> get
> >> >> the
> >> >> | error
> >> >> |
> >> >>
> >> >>
> >>
> >>
> >>
>
>