Showing posts with label library. Show all posts
Showing posts with label library. Show all posts

Tuesday, March 27, 2012

Can I find the default printer

I have successfully modified the routines from here http://msdn2.microsoft.com/en-us/library/ms252091(VS.80).aspx and can print OK on the Development machine but I have had to code the default printer name

I want to be able to get the users default printer and also set the orientation I don't know if this is possible in ASP

I have been able to get the default printer but cannot change the orientation any ideas?

To Get and Set the default Printer works OK
PrintDocument printDoc =newPrintDocument();
string printerName = printDoc.PrinterSettings.PrinterName;//Get the name
printDoc.PrinterSettings.PrinterName = printerName;//use the name

This below does not seem to work??
printDoc.PrinterSettings.DefaultPageSettings.Landscape =true;

|||

HI,jnc:

Try to change this line :

printDoc.PrinterSettings.DefaultPageSettings.Landscape =true;

To this:

printDoc.DefaultPageSettings.Landscape =true;

If i misunderstand you about your question, please feel free to correct me and i will try to help you with more information.

I hope the above information will be helpful. If you have any issues or concerns, please let me know. It's my pleasure to be of assistance

|||

Perfect timing, I was just revisiting this and your solution worked fine

Friday, February 24, 2012

Can any help with getting me started with Analysis Services?

I am a newbie to AS. I am trying to follow the simple tutorial http://msdn2.microsoft.com/en-us/library/ms170400.aspx to get started.

However, I do not see an AdventureWorks DW in my SQL Server Management Studio. I have an AdventureWorksDW (all in one word) but not AdventureWorks DW ( in two words).

I was searching to find how to get the AdventureWorks DW database installed and found http://www.ssw.com.au/ssw/KB/KB.aspx?KBID=Q1286726. Followed its instructions but still there is no AdventureWorks DW though the process went OK.

Am I missing something? I ran <drive>:\Program Files\Microsoft SQL Server\90\Tools\Samples\ and double-click SqlServerSamples.msi and still do not have AdventureWorks DW (standard edition or enterprise edition).

I am running SQL Server 2005 with SP2 on Windows XP developer edition.

Thank you much in advance.

Yep you are missing the database download and installation and you need to attach it in managment studio. So in the link below download AdventureWorksDB x86 CI(case insensitive) and AdventureWorks BI CI that is the datawarehouse version. You also need Reporting services installed to view the reports for that IIS is required. Hope this helps.

http://www.microsoft.com/downloads/details.aspx?familyid=E719ECF7-9F46-4312-AF89-6AD8702E4E6E&displaylang=en

|||

Thanks, Caddre. I ran the .msi you pointed out and the deployment of the solutions seemed to work better. I am still confused as to whether or not AdventureWorksDW and AdventureWorks DW Standard Edition are two separate and distinct databases?

The documentation mentions:

The OLAP database (Adventure Works DW) cannot be installed unless the data warehouse (AdventureWorksDW) database is selected for installation. The analysis services project, Adventure Works DW must be deployed before the Adventure Works DW analysis services database can be accessed.

Does Adventure Works DW( in my case it is Standard Edition) show in SQL Server Management Studio? If yes, I still don't see it.

Thanks

|||

Nothing have changed since I last used that database in 2005 it is a Datawarehouse database so it comes with 26 tables it is in Management Studio if you attached it, yes you must attach it before it will show up in your Management Studio. So now go to the location below and verify the MDF and LDF files then go to Management Studio and attach the database. To use those samples after you atttach the database go back to the SQL Server folder location below and click the solution file and VS will open the whole solution for you. SQL Server edition is not relevant. Hope this helps.

Location of MDF and LDF

C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL

Location of Samples

C:\Program Files\Microsoft SQL Server\90

|||

Greetings Caddre,

My error... I finally realized that I could view the AdventureWorks DW Standard edition by connecting to Analysis Server (instead of Database engine). It shows in SQL Server Management Studion when I connect to Analysis Server.

In AdventureWorks DW Standard edition , I have data source, data source view, cubes, dimensions, mining structures, roles and assemblies( no tables).

Anyway, thank you for getting me on the right track!

Sunday, February 12, 2012

Call-Level Interface (CLI)

I have just read about the Call-level interface, a library of DBMS
functions that can be called by an application program. Where can I
read more about the CLI function, Google & MSDN searches didn't yield
much and no examples etc. Does any one actually program to this to
facilitate data transfers? What is its performance similar to... OLE
DB?
Thanks.
The X/Open and ISO/IEC for database APIs implementation for SQL Server is
also known as ODBC, see
http://msdn.microsoft.com/library/de...bcoverview.asp
GertD@.SQLDev.Net
Please reply only to the newsgroups.
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use.
Copyright SQLDev.Net 1991-2004 All rights reserved.
"elizabeth" <ezelasky@.hotmail.com> wrote in message
news:78393913.0409271103.227fe929@.posting.google.c om...
>I have just read about the Call-level interface, a library of DBMS
> functions that can be called by an application program. Where can I
> read more about the CLI function, Google & MSDN searches didn't yield
> much and no examples etc. Does any one actually program to this to
> facilitate data transfers? What is its performance similar to... OLE
> DB?
> Thanks.