orientation

使用Rotativa在ASP.NET Core MVC中创建PDF

别说谁变了你拦得住时间么 提交于 2020-01-26 10:57:02
在本文中,我们将学习如何使用Rotativa.AspNetCore工具从ASP.NET Core中的视图创建PDF。 如果您使用ASP.NET MVC,那么Rot​​ativa工具已经可用,我们可以使用它来生成pdf。 创建一个MVC项目,无论您是core或不core,都可以nuget下包.命令如下: Install-Package Rotativa #或者 Install-Package Rotativa.AspNetCore 这个工具由意大利人Giorgio Bozio创建。 他需要在ASP.NET MVC中生成pdf,并且重复的任务是设置一种方法来创建PDF文档,用于业务流程或报告,下面废话不多说,我们开始吧。 在startup.cs类中 配置 Rotativa.AspNetCore设置 我们在Configure方法内的startup.cs类中添加此设置,以设置要访问的wkhtmltopdf.exe文件的相对路径。 public void Configure(IApplicationBuilder app, IHostingEnvironment env) { RotativaConfiguration.Setup(env); } 我们需要在wwwroot中添加Rotativa文件夹,然后放入这两个exe,我把这两个文件已经放到了百度云盘。 然后我们添加一个Demo控制器

Adding UIViewController.view to another view causes orientation problems

浪子不回头ぞ 提交于 2020-01-25 08:31:05
问题 Short version: I'm alloc/init/retaining a new UIViewController in one UIViewControllers viewDidLoad method, adding the new View to self.view. This usually works, but it seems to mess up orientation change handling of my iPad app. Longer version : I'm building a fairly complex iPad application, involving a lot of views and viewcontrollers. After running into some difficulties adjusting to the device orientation, I made a simple XCode project to figure out what the problem is. Firstly, I have

handle orientation with multiple stack of viewcontrollers

放肆的年华 提交于 2020-01-25 06:52:21
问题 Some quick issues, i have 5 VC on stack. when i am in my second VC, then if i rotate to landscape and when i move to 1st VC my layout is totally collapsed. in my second VC i added viewWillTransition and i am invalidateLayout of my table view. And if i add tableview.reloaddata() in my first screen viewWillAppear .Then it's fine. But consider if i have 5 VC on stack i can not write code in all VC. Is there any better way to handle it. 回答1: In your app delegate add this.... var orientationLock =

Anroid UI——布局

北城以北 提交于 2020-01-24 19:03:18
一、Android六大基本布局 Android六大基本布局分别是: 线性布局LinearLayout 、表格布局TableLayout、 相对布局RelativeLayout 、帧布局FrameLayout、绝对布局AbsoluteLayout、网格布局GridLayout。 其中,表格布局是线性布局的子类。网格布局是android 4.0后新增的布局。在手机程序设计中,绝对布局基本上不用,用得相对较多的是线性布局和相对布局。 二、LinearLayout(线性布局) 常用属性: android:id:为该组件添加一个资源id,即标识符,可以通过id来找到该布局或者控件。 android:layout_width:布局的宽度,用wrap_content表示组件的实际宽度,match_parent表示填充父容器 android:layout_height:布局的长度,用wrap_content表示组件的实际长度,match_parent表示填充父容器 android:orientation:布局中的排列方式,有两种方式:horizontal水平,vertical竖直,如果不设置则默认水平显示 orientation 是一个视图组,可以在一个方向垂直或者水平分布所有子项 当 android:orientation=“vertical” 时, 只有水平方向的设置才起作用

Change screen orientation automatically while scanning (using ZXING library)

南笙酒味 提交于 2020-01-24 02:49:20
问题 I've MainActivity.kt where I show different fragments for different needs. At some point, I press button 'X' that calls startScanner() function: private fun startScanner() { IntentIntegrator(this) .setOrientationLocked(false) .setPrompt("SCANNING?") .initiateScan() } Manifest.xml: <activity android:name=".MainActiity" android:theme="@style/AppTheme" tools:replace="android:screenOrientation" android:stateNotNeeded="true" android:screenOrientation="fullSensor" android:windowSoftInputMode=

How can I change the orientation of the label on a TPageControl?

筅森魡賤 提交于 2020-01-23 10:42:43
问题 I'm new to Delphi (again - I used Delphi back in 1994). I now have Delphi 2009 Pro. Coming from Java, I find the object inheritance very obscure. My users want tabbed pages with the tabs on the left. But, the TPageControl doesn't allow the tab label direction or orientation to be changed. They want the words on the tabs to read top to bottom with the letters rotated so they are in a "normal" orientation. With the tabs on the left the labels read from the bottom up with the letters rotated 90

How can I change the orientation of the label on a TPageControl?

不问归期 提交于 2020-01-23 10:42:28
问题 I'm new to Delphi (again - I used Delphi back in 1994). I now have Delphi 2009 Pro. Coming from Java, I find the object inheritance very obscure. My users want tabbed pages with the tabs on the left. But, the TPageControl doesn't allow the tab label direction or orientation to be changed. They want the words on the tabs to read top to bottom with the letters rotated so they are in a "normal" orientation. With the tabs on the left the labels read from the bottom up with the letters rotated 90

How can I change the orientation of the label on a TPageControl?

拟墨画扇 提交于 2020-01-23 10:41:42
问题 I'm new to Delphi (again - I used Delphi back in 1994). I now have Delphi 2009 Pro. Coming from Java, I find the object inheritance very obscure. My users want tabbed pages with the tabs on the left. But, the TPageControl doesn't allow the tab label direction or orientation to be changed. They want the words on the tabs to read top to bottom with the letters rotated so they are in a "normal" orientation. With the tabs on the left the labels read from the bottom up with the letters rotated 90

How can I change the orientation of the label on a TPageControl?

半腔热情 提交于 2020-01-23 10:41:07
问题 I'm new to Delphi (again - I used Delphi back in 1994). I now have Delphi 2009 Pro. Coming from Java, I find the object inheritance very obscure. My users want tabbed pages with the tabs on the left. But, the TPageControl doesn't allow the tab label direction or orientation to be changed. They want the words on the tabs to read top to bottom with the letters rotated so they are in a "normal" orientation. With the tabs on the left the labels read from the bottom up with the letters rotated 90

iOS: Orientation check rotation on ViewDidAppear

不羁的心 提交于 2020-01-23 09:46:36
问题 Background: I want to make sure my viewControllers rotate properly when it appears. My viewControllers have excellent codes managing the rotation and orientation when it is visible. Problem: Given two viewControllers in a NavigationController, viewC1 and viewC2 . I did the following: 1.) Set rootViewController to viewC1 2.) Push viewC2 into the NavigationController 3.) Rotate 4.) Pop viewC2 5.) viewC1 is still stucked in the old orientation look (as in the transformation code in