FastReport - Component TfrxPDFExport properties - delphi-xe3

How can I set pdf orientation whether landscape or portrait using
TfrxPDFExport component in FastReport 5 with Delphi XE3?

FR's TfrxPDFExport uses TfrxReportPage settings for orientation, so you don't need to set any settings

Related

How to rotate device screen from landscape to portrait in tizen web application?

I am developer tizen consumer tv web app.How should i rotate the screen (toggle orientation) by code.
Please help us in this.
Let me know if you need any further information.
Lock the screen with the lockOrientation() method.
The following code snippet demonstrates how to lock the screen to a specified orientation.
screen.lockOrientation("portrait-secondary");
The method accepts the following parameter values: portrait-primary, portrait-secondary, landscape-primary, landscape-secondary, portrait, and landscape.
Note:
When using the screen orientation lock:
When the portrait value is used to lock the orientation, the orientation can change between portrait-primary and portrait-secondary. The landscape value behaves similarly.
Depending on the browser, unlocking the screen orientation may have no visual effect.
For more follow this.
You can use this code for rotate the device form Landscape to portrait .
b2bapis.b2bcontrol.setMenuOrientation("DEGREE_90",onSuccessSettingMenuOrientation,onErrorSettingMenuOrientation);
b2bapis.b2bcontrol.setSourceOrientation("TV","DEGREE_90", onSuccessSettingOrientation, onErrorSettingOrientation);
Note: need to add privileges in config.xml

Xcode Not Displaying Correct Size In Storyboard?

I have an iPhone 6 to test my app i have my storyboard set to wCompact hRegular it says at the bottom this is for all iPhones in portrait and on the storyboard i can see all the content without a scrollview. However when i actually build and load the app to the device some of the content is off the screen when in the storyboard it shows otherwise. Does it not mean All iPhones in portrait or am i misunderstanding this feature of Xcode?
You are misunderstanding somewhat. Compact width regular height is a description of the style / shape / attributes of the screen for iPhones in portrait, not the actual size. They're all tall and skinny, but not all by the same amount or with the same aspect ratio.
Size classes allow you to logically group devices and orientations so you can specify the overall style of interaction that's appropriate, then allow auto layout to exactly configure the views to fit the available space.
Go to your storyboard and Select Your Viewcontroller in the right pane select show attribute inspector for the particular viewcontroller..and set Size to iphone 4.7 inch and orientation to portrait..and check your alignment is showing correctly ..check the image for references
http://i.stack.imgur.com/wrBSj.png

Unity app with different screen orientations

I'm developing a game that runs on both mobile phones and tablets.
Currently I'm using only the Portrait orientation for all devices but the portrait orientation looks better on phones meanwhile landscape orientation looks better on tablets.
I set "Portrait" option in the Unity's Player Settings > Resolution and Presentation > Default Orientation but I would like to provide a landscape layout for tablets (without affecting phones).
How I can I do that? Is there any why to programmatically set the Screen orientation when the application starts?
You can try Screen.Orientation
In the Start (or Awake) method of a MonoBehaviour that is added to the stage call:
Screen.Orientation = ScreenOrientation.LandscapeRight
Now you just need to check if the device is tablet or phone, I don't know any way out of the box to do this, but you can check the aspect ratio and base your decision on this.
You can check the aspect ratio by getting Screen.width and Screen.height.

UIInterfaceOrientation for default screen in iphone sdk

I am developing one iphone app, and i want to support all orientations.
The problem is that I want the default.png to be launched in the proper way according to the orientation at start up. Can someone post some method or proper name for default images so that I can rotate it?
Basically there is a landscape "default" image only for iPad. in iPhone you should suplly only one in the main orientation of your app.
anyway, if you want to do that, there is a workaround posted in this question:
Auto-rotate the default application image according to current landscape mode

The Default.png of size 480x320 in landscape mode in iphone

I am developing an application that is in landscape mode. I have Default.png with size 480x320.
But still when it launches the default image comes in portrait mode not in landscape mode.
However it should come according to the device oreintation.
If i take default.png with same size in allready rotated. then it comes as it was in rotated mode.
However it should come according to the device oreintation.
Please help me
There is an answer to question How to put Default.png in landscape mode? by #brentford that should help you.
There is also an article by John Muchow which outlines a different way one way to accomplish what you want to do.
Taken straight from here
"In iOS 3.2 and later, an iPad application can provide different launch images depending on whether the device is in a portrait or landscape configuration. To specify a launch image for a different orientation, you must add a special modifier string to the base file name of your standard launch image. Thus, the format of each file name becomes the following:
[basename][orientation_modifier][scale_modifier][device_modifier].png"
So in your example you could have:
Default-Landscape.png
Default-Portrait.png
(Default-Landscape#2x.png for iphone 4 and Default-Landscape~ipad.png for ipad and so forth...)
both have to be 320x480 and you'll have to ensure that your app's Info.plist contains all 4 UISupportedOrientation values (UIOrientationPortrait, UIOrientationLandscapeLeft etc etc). But see my above link for a better explanation.
I believe the splashscreen is loaded without checking for orientation.
Try to set UIInterfaceOrientation key in the info.plist file to UIInterfaceOrientationLandscapeLeft (iPhone home button will be on the left) or UIInterfaceOrientationLandscapeRight (home button on right).
See this post:
How do I detect orientation on app launch for splash screen animation on iPad!