如何在Rails中本地化嵌套虚拟属性? 模型: class User < ActiveRecord::Base
attr_accessor :company_information # This is used in callbacks etc
end
和视图: = simple_form_for(resource, :as => resource_name, :url => re
我发现打印代码。但我想在没有对话框的情况下自动发送到打印机。我知道printername。我从SQL表中获取打印机名称。我该怎么做 ? // select printer and get printer settings
PrintDialog pd = new PrintDialog();
if (pd.ShowDialog() != true) return;