`
文章列表
create function [dbo].[fGetPy](@words nvarchar(2000)) returns varchar(8000) as begin declare @word nchar(1) declare @pinyin varchar(8000) declare @i int declare @words_len int declare @unicode int set @i = 1 set @words = ltrim(rtrim(@words)) set @words_len = len(@words) while ...
多级菜单导航工具条 animated multi-level drop-down menu http://www.gleblanc.eu/Blog/post/Menus-part-III-animated-multi-level-drop-down-menu.aspx   例图:
//方法1 //打开excel public bool OpenXls() { var ofd = new OpenFileDialog(); //ofd.Filter = "Excel2003文件(*.xls)|*.xls|Excel2007文件(*.xlsx)|*.xlsx|所有文件(*.*)|*.*"; ofd.Filter = "Excel2003文件(*.xls)|*.xls|所有文件(*.*)|*.*"; ...
LSOOBXlsHelper.cs using System; using System.IO; using ClientUtils; namespace Longshine.SLLib.LSOOBExcel { public class LSOOBXlsHelper { public static string GetSpecialFolderPath(Environment.SpecialFolder folder) { return Environment.GetFolderPath(folde ...
首先需要引用Microsoft.CSharp.dll  和 System.Core.dll。 然后需要脱离浏览器才能运行调试    判断“是否脱离浏览器”和“提升信任”的方法 if (!Application.Current.IsRunningOutOfBrowser) { LSWindow.Alert("Excel导入功能必须在脱离浏览器环境下运行!"); return; } if (!Application.Curre ...
    扩展Image的属性,显示Web下的图片。       对Image的属性进行扩展: using System; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Ink; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using ...

Java2word

    博客分类:
  • Java
     java2word 是一个在java程序中调用 MS Office Word 文档的组件(类库)。该组件提供了一组简单的接口,以便java程序调用他的服务操作Word 文档。 这些服务包括:      打开文档、新建文档、      查找文字、替换文字,      插入文字、插入图片、插入表格,      在书签处插入文字、插入图片、插入表格等。      填充数据到表格中      读取表格数据 在线文档:http://www.heavenlake.com/java2word/doc 下载地址: http://dev.heavenlake ...
LSMessagePopup.cs: using System; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Ink; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Shapes; using ...
C#代码部分 using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Window ...
Silverlight 2 提供了 System.Windows.Markup.XamlReader.Load(string xaml) 来动态的创建 XAML , 但这差不多限于短小的 xaml 片段创建,若要是从 xaml 文件直接读取创建,则写一个函数 LoadXaml 比较现实。 XAML 文件本身也是资源,因此资源的 Build Action (生成操作)不同,则引用该文件的 uri 也不同。例如 build action 为 "Resource" 时,资源文件嵌入到程序集中;为 "Content ...
  LSComboBoxItem.cs using System; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Ink; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Shapes; n ...
xmal代码(Loading.xaml): <UserControl x:Class="Longshine.SLLib.CommonXaml.Loading" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" > <Grid x:Name="LayoutRoot" ...
1 判断数据库是否存在 if exists (select * from sys.databases where name = '数据库名') drop database [数据库名]  2 判断表是否存在 if exists (select * from sysobjects where id = object_id(N'[表名]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [表名]   ...
     主要介绍一下在silverlight里的资源文件(图片, 视频, 字体之类)设置不同的Build Action时在XAML或是后台C#里如何引用的问题. 就拿图片文件作例子来介绍各种Build Action的情况(选中一个文件后按F4打开vs属性面板就可以看到Build Action选项, 并可以更改) 假如我们有两个图片文件分别叫silverlight.png和sl.jpg, 把silverlight.png添加到应用的根目录里, 和我们的MainPage.xaml文件在一个文件夹, sl.jpg放到一个新建的images文件夹里1. Resource: 选择 ...
    Silverlight DataForm Validation 主要应用在Binding上,但是不能进行自定义设置Validation错误信息,不适用复杂的验证功能。       今天好不容易找到了比DataForm Validation更使用的控件:     1   Silverlight Validation     网址:http://silverlightvalidator.codeplex.com/releases/view/19726#DownloadId=49891       2  Silverlight Input Controls Validator Se ...
Global site tag (gtag.js) - Google Analytics