Showing posts with label control. Show all posts
Showing posts with label control. Show all posts

Tuesday, March 27, 2012

Excel Export - How to stop Merged Columns?

Hello All,
I am having a lot of fun when exporting to excel. When there is a control (image etc) above a table and the sides of the image stop half way through a column this creates a merged column in excel. This creates headaches for clients when trying to chart this data. Is there anyway around this? Or any secrets?
I placed the image into a header and set the device info url to "rc:SimplePageHeaders=true" this helped by placing the header into an excel header upon rendering BUT there was no image in there'
Thanks in advance
SheaThat is one of the drawbacks of Excel exporting is the columns need to line up. Try this. If the image is wider than the first column and ends in the middle of the second column. insert a column between the first and second columns and make it so its edge lines up with the edge of the image. reduce the width of the now third column so the new column and it are the same width as the original second column. Then merge the two cells in the table. That may help with your problem.
"Shea Strickland" wrote:
> Hello All,
> I am having a lot of fun when exporting to excel. When there is a control (image etc) above a table and the sides of the image stop half way through a column this creates a merged column in excel. This creates headaches for clients when trying to chart this data. Is there anyway around this? Or any secrets?
> I placed the image into a header and set the device info url to "rc:SimplePageHeaders=true" this helped by placing the header into an excel header upon rendering BUT there was no image in there'
> Thanks in advance
> Sheasql

Wednesday, March 21, 2012

Excel "Saved as Web Page" import

I am trying to import spreadsheets from web pages on a regular basis. I do not have any control over their format but they have all been saved as web pages from Excel.

There are two parts to this:
a) Downloading the files
b) Importing the downloads

Right now I am focusing on b) Importing the downloads.

I have tried
1) Using an Excel connection in DTS
2) Using OPENROWSET to access the spreadsheets more directly from TSQL
3) Using a linked server to the file.

All of these seem to use the OLEDB 4.0 provider and they all work if I convert the *.htm file to a *.xls file using Excel first.

With one curious exception none of them work from the *.htm files. DTS is the exception, if I first open the *.htm files in Excel the transformation task succeeds.

I don't really want to use Excel at all on the server. It's strange that DTS does work when the *.htm file is open.

I am trying to get some insight into the various OLEDB options to use hoping that will help me avoid having to use Excel. Perhaps I would just be better off using SQL Server 2005 and SSIS?A couple of things here, Oliver.

First, Excel exported to HTML isn't a valuable format when it comes to being able to import off of that data. Why even export it at all when you can just hook into the raw Excel file?

Secondly, if you want to use SSIS, we can help you with that, though I'm not sure that loading an Excel generated HTML file will work. If you are going to stick with DTS, then you should ask this on the forum for that tool: http://groups.google.com/group/microsoft.public.sqlserver.dts?lnk=srg&hl=en|||Phil, thanks for the reply but as I mentioned the files are in html and I cannot change that.

Has anyone here used SSIS with an html formatted Excel file?

Ian.|||Best of luck with that! I'd work on getting a new format, 'cause you're going to have to write your own script, or scour the Internet for a custom module already built. There isn't an HTML source in SSIS, nor should there be, in my opinion. It's not really suitable for data transmission.sql

Wednesday, February 15, 2012

event 7031

Windows 2000 Server SP4, Microsoft SQL Server 2000 - 8.00.760 (Intel X86)
SQL Server is finished with:
Event Type: Error
Event Source: Service Control Manager
Event Category: None
Event ID: 7031
Date: 22.03.2004
Time: 10:14:19
User: N/A
Computer: SQL
Description:
The MSSQLSERVER service terminated unexpectedly. It has done this 3 time(s). The following corrective action will be taken in 0 milliseconds: No action.
There are no any messages in Sql Server logs before this error.
What can we do?
Did you search the server for any dump files that may have
been generated when this happened?
-Sue
On Wed, 24 Mar 2004 04:21:08 -0800, Irina Rutman
<anonymous@.discussions.microsoft.com> wrote:

>Windows 2000 Server SP4, Microsoft SQL Server 2000 - 8.00.760 (Intel X86)
>SQL Server is finished with:
>--
>Event Type: Error
>Event Source: Service Control Manager
>Event Category: None
>Event ID: 7031
>Date: 22.03.2004
>Time: 10:14:19
>User: N/A
>Computer: SQL
>Description:
>The MSSQLSERVER service terminated unexpectedly. It has done this 3 time(s). The following corrective action will be taken in 0 milliseconds: No action.
>--
>There are no any messages in Sql Server logs before this error.
>What can we do?
|||Yes. We searched. But there are no any files in all 3 cases.
|||Unfortunately with nothing logged anywhere, it will be
pretty much impossible to figure out what happened. But in
case in happens in again, what you may want to do is setup a
blackbox trace on the server. That way you will have a log
of what was going on in SQL Server the next time it happens.
-Sue
On Thu, 25 Mar 2004 00:46:06 -0800, Irina Rutman
<anonymous@.discussions.microsoft.com> wrote:

>Yes. We searched. But there are no any files in all 3 cases.
|||What do the SQL Server error logs say?
Cindy Gross, MCDBA, MCSE
http://cindygross.tripod.com
This posting is provided "AS IS" with no warranties, and confers no rights.