Is it possible to dynamically set the font weight (bold vs normal) for a matrix row label? I always get an invalid value message box from the expression editor. For example:
what use reason of 'weighted-term' ?explain it. SELECT ID, firstname, lastnameFROM [contain-1]WHERE CONTAINS(firstname, 'ISABOUT(mohsen weight(.8),yaser weight(1.0))') table [contain-1] information: ID FIRSTNAME 1 mohsen 2 mohsen 3 yaser 4 mehdi
The below is the asp code pasted here to explain what I am trying to do. How to Sum the weight of the item group by itemcode which is passed as a parameter
Do While Not objRS.EOF
itmcode = objRS("SKU")
sSQL = "SELECT code, numpacks, weight FROM tblproducts WHERE code = '" & itmcode & "'" Set rsNumpks = Conn.Execute(sSQL) If Not rsNumpks.EOF Then numpacks = CDbl(rsNumpks("Numpacks")) weigh = CDbl(rsNumpks("Weight")) End If Set rsNumpks = Nothing Loop
Is there any way to retrieve the weight % of some values?
A quick example: A 10 -> Result i want is 10 / 60 (60 is the SUM of A,B and C) B 20 -> 20 /60 C 30 -> 30/60 Code for number of subscriptions EVALUATE SUMMARIZE('Subscriptions', Â Â Â Â Â Â Â Â Â Â 'Subscriptions Type'[DS_SUBS_TYPE], "Number of Subscriptions ",'Subscriptions'[NR_SUBSCRIPTIONS]).
I'm trying to use CONTAINSTABLE to do a product search on a number of columns. I want matches on some columns to be weighted higher than for other columns.
It seems like there should be a way to do this with CONTAINSTABLE - I know I can search by multiple strings and weight those matches variably, but what I want is to vary the weight by which column a single term matched. What I have now is a series of UNION queries, which are quite slow: =================== SELECT m.TitleCode, m.ShortName, m.ShortDescription, a.Rank, 50 as theWeight FROM CONTAINSTABLE (Product, ShortName, @theSearchTerm) as a, Product m(NoLock) WHERE a.[KEY] = m.TitleCode
UNION ALL
SELECT m.TitleCode, m.ShortName, m.ShortDescription, a.Rank, 40 as theWeight FROM FREETEXTTABLE (Product, ShortName, @theSearchTerm) as a, Product m(NoLock) WHERE a.[KEY] = m.TitleCode
UNION ALL
SELECT m.TitleCode, m.ShortName, m.ShortDescription, a.Rank, 30 as theWeight FROM FREETEXTTABLE (Product, MatchKeywords, @theSearchTerm) as a, Product m(NoLock) WHERE a.[KEY] = m.TitleCode
UNION ALL
SELECT m.TitleCode, m.ShortName, m.ShortDescription, a.Rank, 20 as theWeight FROM FREETEXTTABLE (Product, ShortDescription, @theSearchTerm) as a, Product m(NoLock) WHERE a.[KEY] = m.TitleCode
I have to use the Case expression in my query, so I search arround the web and got the following: SELECT title, price, Budget = CASE price WHEN price > 20.00 THEN 'Expensive' WHEN price BETWEEN 10.00 AND 19.99 THEN 'Moderate' WHEN price < 10.00 THEN 'Inexpensive' ELSE 'Unknown' END,FROM titles It should run OK base on my research in the internet. But my SQL Server gave me error: syntax error arround '>'.I did several search and many people can use the ">" sign or "<" sign in the Case expression, but I just can't use it in my SQL Server, I can't even use any boolean expression, I can only use values.can anyone help me out? My SQL Server Version is SQL Server 2000 Sevice Pack 4.Thanks!
I am not understanding this part of the problem. I am currently reusing a stored procedure that has a ".." as part of the select statement.
I can't put the select statement up here due to privacy but I have found the error where the error states the following:-
Invalid Column Prefix: AM, invalid table name.
I noticed that part of the select statement was the following:-
AM..Field1
I tried executing this stored procedure in the query analyzer and it works fine, but when I tried executing it in SSRS, it gives me the error. After searching through the internet for possible causes, I found out that it was the ".." was giving the error. Anyone knows why ? I found out that it was supposed to bypass any users and permissions to the table.
I'm creating an SSIS package that will execute legacy dts packages. The package to be executed is decided at runtime using a sql query task.
Executing a dts package statically works fine, but when I try to set the details of the dts to be run via expressions, I get the error below.
To make it dynamic, I created a variable of type string, and put the package name in here. I also have a string variable for the packageid. Then I set up an expression on the Execute DTS 2000 Package Task that sets the PackageName & PackageID property to this variable.
The PackageId is a string variable I've retrieved using:
select top 1 name, cast(id AS varchar(50)) id, cast(versionid AS varchar(50)) versionid from sysdtspackages where name = @PackageName order by createdate desc
When I use the task to set the package id it works find (by selecting a dts, then changing the name), but when I try to provide the package id I get this message:
but the method signature specifies String PackageGuid, and it is a string..
any ideas??
i tried casting the variable like so:
(DT_GUID) @[User:TSPkgId], as the versionid is a uniqueidentifier on sysdtspackages.. It didn't like that at all (can't cast from type DT_WSTR to DT_GUID error code 0xC00470C2)
Error 3 Error loading MLS_AZ_PHX.dtsx: The result of the expression ""C:\sql_working_directory\MLS\AZ\Phoenix\Docs\Armls_Schema Updated 020107.xls"" on property "ConnectionString" cannot be written to the property. The expression was evaluated, but cannot be set on the property. c:documents and settingsviewmastermy documentsvisual studio 2005projectsm l sMLS_AZ_PHX.dtsx 1 1
Directly using C:sql_working_directoryMLSAZPhoenixDocsArmls_Schema Updated 020107.xls as connectionString works
However - I'm trying to deploy the package - and trying to use expression: @[User::DIR_WORKING] + "\Docs\Armls_Schema Updated 020107.xls" which causes the same error to occur
(Same error with other Excel source also: Error 5 Error loading MLS_AZ_PHX.dtsx: The result of the expression "@[User::DIR_WORKING] + "\Docs\Armls_SchoolCodesJuly06.xls"" on property "ConnectionString" cannot be written to the property. The expression was evaluated, but cannot be set on the property. c:documents and settingsviewmastermy documentsvisual studio 2005projectsm l sMLS_AZ_PHX.dtsx 1 1 )
I am running SQL 6.5 and 7.0 utilities on my NT 4.0 SP 5 machine. All of a sudden the query outputs in ISQL or query analyser are garbage. The font is overlaying each other, so that the only way I can view query output is by using the grid output selection in SQL 7.0 query analyser. This is the second company I've worked for where this issue has suddenly occured. I have reinstalled 6.5 and 7.0 to no avail. This is obviously some OS problem. Does anyone know how to overcome this?
I have made a database. And three tables db_ka, db_kha, and db_ga. Each tables have names stored in NEPALI LANGUAGE. I want SQL query which can give output of the name starting with "ka". HERE, "ka" is not in ENGLISH, it is stored in NEPALI language, hence, another font, [Preeti Font].
I have a report that uses a Garamond font and it renders correctly in HTML, but when the report is converted to PDF, the font changes (I believe to a variation of Arial, but that seems irrelevant). My Operations team has installed the Garamond font on both the web server as well as the Report Server, but the problem is still occurring.
I have created 1 report with 2 datasets. This report is attached to the 1st dataset.For example,1st one is "Smallappliances", 2nd is "Largeappliances".
I created a tablix and, the 1st column extracts Total sales per Sales person between 2 dates from 1st dataset (Small appliances). I used running values expression and it works fine.
Now, I would like to add another column that extracts Total sales per sales person between 2 dates from 2nd dataset (Large appliances). I am aware that I need to use Lookup expression and it is giving me the single sales value rather than the total sales values. So, I wanted to use RunningValue expression within lookup table to get total sales for large appliances.
This is the lookup expression that I added for the 2nd column.
I get this error when I preview the report.An error occurred during local report processing.The definition of the report is invalid.An unexpected error occurred in report processing.
I seem to remember that the font size and type can be controlled in SQL Server 6.5 and the process controlls the fonts displayed throughout the program - Enterprise Manager, Query Tool, etc.
I have just re-installed 6.5 and the fonts are way too small.
In my application I need to make the report in different languages.I made a table for report parameters, like:create myTable (language_id int not null,parameter char(50) null,constraint PK_lang_ID PRIMARY KEY (language_id))and then tried:insert into myTable values(1, 'Bank info') - for Englishinsert into myTable values(2, '????') - for Chinese.it worked OK ( I have installed "Chinese" language in server)but when run:select * from myTablethen I get:1 Bank info2 ?????And in Application it is also coming like: "????"What is wrong ? Do I have to do some additional installation staff forChinese in SQL Server ?Any idea will be helpful and greatly appreciated
How come the fonts available in Visual Studio Reporting Services is different from the ones in Word? I need add some embedded commands to a report and in order for the receiving application to be able to interpret these commands they need to be in Courier (stupid I know).
How can I achive this? Is there some way to add new fonts to VS?
Because I have two fields separated by line feed (chr(10)), I need to format the first field as bold. Obviously, that Format(...,"Bold") does not work. Anybody has came across this before, please enlighten.
We are currently using reporting services to display reports in our application. Amongst the reports there is one that shows barcodes (using an idautomation font).
We've installed the font on every pc that uses the software, and it works on all but 4.
Now we've checked the following:
The user signs in on another pc and it works. So not user related The user uses the font in a word document. So nothing wrong with the font itself.
Seems like a long shot, but I'd really like to show "CO2" (chemical formula for carbon dioxide) with the "2" as a subscript, in a report text box. The "CO2" would be embedded as part of a sentence, e.g. "The CO2 emissions..." Is there any way to do this?
I'm using a free barcode font so i can create scannable tickets via reporting services 2k5. When I print the tickets, everything seems fine. But when i export to PDF though, it looks like the barcode font shrunk. All the lines are pulled together, making scanning impossible. Is there a certain setting or so that i can use to ensure the font's width ?
-Update- The weird thing is: when i export it inside visual studio, the barcode is shown as it is supposed to in the pdf !?
I just have a simple question on font dependencies in reference to deployed reports. In my company, we run citrix presentation servers feeding terminal sessions out to users in remote areas.
My question is, in a terminal session, do the fonts used in the reports need to be installed on the users' local machine (who is connecting via terminal session) or is it enough to just have it on the servers feeding out the terminal session?
For example, we create a report with Arial Narrow font. Our servers hosting citrix presentation server did not have this font installed, so we installed this font on the servers (thus they're displaying correctly). Obviously the server hosting our reporting services has the font. Now a user connects to the server, is granted a terminal session, launches reporting services, report is generated with the correct font displayed, and finally prints the report.
Will the report print in Arial Narrow if the users' local machine doesn't have this font install? I remember reading somewhere that the fonts do not embed, hence the reason for installing the font on our citrix servers.
I realize this is kinda out of the scope of this forum, but perhaps someone on here uses terminal services and can answer this for me. I do plan to test this out when I get home tonight. I'd test it right now, but my computer at home isn't on therefore I can't remote home (plus wake-on-lan isn't configured) to do an actual test. Just thought I'd get some insights from other people.
I have a table detail where i need to merge the information on two columns. The difficult thing is, the 2nd column must have a different font size when i render the report. Also the merging of the two columns should not generate a space between the contents of both columns. I have done concatenation using the '&', the only problem is the data in the second column inherits the font size of the first column. I have used textboxes, but it generates spaces if the data in the first column contains lesser characters.
I'd like to find where can I change the fonttype for annotations done in Control Flow. I mean, every time that I do that appears the one I chose by default TIA
I'm trying to figure out how to insert a special character that will make the values in the column BOLD when I use that table as reference in my Word Mailmerge. For starters, I was able to insert char(10) as carriage return, so when I use the values from that table in my mailmerge, the char(10) is effective, meaning, the carriage returrn is working, but how about making the font bold? Please help.
Example is:
insert into table(customer_address) values ("123 hayworth drive" + char(10) + "new land grove" + char(10) + "chicago" + char(10))
This value when used in a Word Mailmerge, will be displayed as: 123 hayworth drive new land grove chicago
Now, how do I insert a special character for bold font?
I used two symbols (”¬€¬ and ”´) in my reporting services page and they appear fine in Internet Explorer. However, when I try to export the page to a PDF file, they appear as question marks.
Can someone tell me why or how to work around this?
I'm using Reporting Service to print checks. Everything seems ok when I design and deploy and view the reports. But when I try to export to pdf, the MICR font I'm using does not work. I've tried a couple of different MICR fonts from the web and they either get replaced by a standard font or disappear altogether. I would love to know why that is.