How to create a report with different page sizes
Hi,
I would like to create a report with different page sizes, it's possible to do it with diadem?
When I change the layout parameters, changes afect to all sheets...
Is there a way to change page size individually for each sheet?
Thanks in advance.
Marc
Hi Marc,
You can use the DocStart and DocEnd commands along with the PicPrint command to spool multiple print commands to the same output PDF file using the direct printer approach. This should enable you to programmatically specify the page size differently for each sheet that you add to the print job.
' Print PDF Page by Page.VBS
OPTION EXPLICIT
Dim i, Path, OldPrintName
Path = AutoActPath & "2D Stacked"
Call DataDelAll
Call DataFileLoad(Path & ".TDM")
PDFFileName = Path & " Page by Page.pdf"
IF FileExist(PDFFileName) THEN Call FileDelete(PDFFileName)
OldPrintName = PrintName
PrintName = "winspool,DIAdem PDF Export,LPT1:" ' Set to PDF printer
PDFResolution = "72 DPI" ' "2400 DPI" , "default"
PDFOptimization = TRUE
PDFFontsEmbedded = FALSE
PDFJPGCompressed = "high"
PrintOrient = "landscape" ' orient paper
Call PrintMaxScale("GRAPH") ' auto-max, see alternative margin setting variables below
PrintLeftMarg = 0.181
PrintTopMarg = 0.181
PrintWidth = 10.67
'PrintHeigth = 7 (read-only)
Call WndShow("REPORT")
Call DocStart ' Begin multi-page document/print job
FOR i = 1 TO 4
Call PicLoad(Path & ".TDR")
Call GraphSheetNGet(1)
Call GraphSheetRename(GraphSheetName, "Page " & i)
Call PicUpdate
Call PicPrint("WinPrint") ' Add a page to be printed
NEXT ' i
Call DocEnd ' End multi-page document/print job
PrintName = OldPrintName
Call ExtProgram(PDFFileName)
Brad Turpin
DIAdem Product Support Engineer
National Instruments
Similar Messages
-
Creating a document with different page sizes.
I'm trying to produce a leaflet with different pages sizes. To try and explain what I mean I have included a picture of what I'd like the front cover to look like. When producing a booklet there doesn't seem to be a provision to individually alter each page size in the pages or document set up panel. Is there anyway around this or do I have to create each page seperately, export to pdf and then combine into the leaflet? Help gratefully received. tomas
The build booklet feature is for very basic booklets, not something like this.
Sorry, but you’ll need to make everything full size and then do the cutting.
Bob -
Creating a .pdf with different page views
I'm tyring to create a .pdf with different page views. For example as the viewer goes through the .pdf some pages I would like viewed as "single page view" and others "two page view". Is this possible? I'm working with Adobe Acrobate Pro. Thanks for any suggestions.
It's possible to use the Page Open actions to trigger a view mode change but it's messy - if the user tries to override them because they prefer to zoom in, etc. then they'll get very annoyed when things keep resetting.
To create a Page Open action, open the thumbnails panel, right-click on a page, choose Page Properties, then the Actions tab. You can use the Execute a Menu Item tool to fire one of the view modes. -
Fail to create PDF from 2 templates with different page sizes
Hi,<br /><br />I am having problems to create a PDF with multiple page sizes and using 2 templates.<br /><br />I have to create a PDF using two dynamic templates. The second template has multiple pages, some A4 some A3, which I select through subforms (A3 specific subforms are on an A3 page).<br /><br />So:<br />^job <mdf1> -zOut.pdf<br /><fields><br />^form <mdf2>.mdf<br />^page 2<br />^group G_heading_A3<br /><fields><br /><br />The templates on their own are ok, but when I combine them the second is always A4, even if a) the subforms are on A3 (heading_A3) and if b) the page is A3 (page 2).<br /><br />I couldn't find anything on the web nor in the documentation. Does anyone have a clue?<br /><br />Thanks, Edward
The build booklet feature is for very basic booklets, not something like this.
Sorry, but you’ll need to make everything full size and then do the cutting.
Bob -
Creation of PDF with different page sizes
I am generating PDF using Acrobat Distiller from my application from the .ps file. From one machine, the PDF is generated with different page sizes.one page with 8.5*12.99 and other pages with 8.5*11 in the same PDF. However the PDF is created with correct page sizes for all the pages in another machine. The only difference between the machines is the Internet Explorer version. I am using Internet explorere 11.0 and the other machine have a version of 8.0 installed.
Why the difference in page size occured? Is there any dependency on the Internet explorer used while creating the PDF using Distiller? Any help for the issue with the discrepancy in the page sizes is really appreciated.
Thanks!Acrobat Distiller uses the page size in the PS file. May be a problem of your application which create the PS file.
-
How to create a String with a specific size?
how to create a String with a specific size?
For example I want to create different Strings with the size of 100 , 1000 or 63k byte?String are immutable so just initialize it with the number of characters you want.
You might want to look at java.lang.StringBuffer and see if that's what you want. -
How to create a report with data using the Crystal Reports for Java SDK
Hi,
How do I create a report with data that can be displayed via the Crystal Report for Java SDK and the Viewers API?
I am writing my own report designer, and would like to use the Crystal Runtime Engine to display my report in DHTML, PDF, and Excel formats. I can create my own report through the following code snippet:
ReportClientDocument boReportClientDocument = new ReportClientDocument();
boReportClientDocument.newDocument();
However, I cannot find a way to add data elements to the report without specifying an RPT file. Is this possible? I seems like it is since the Eclipse Plug In allows you to specify your database parameters when creating an RPT file.
is there a way to do this through these packages?
com.crystaldecisions.sdk.occa.report.data
com.crystaldecisions.sdk.occa.report.definition
Am I forced to create a RPT file for the different table and column structures I have?
Thank you in advance for any insights.
Ted JenneyHi Rameez,
After working through the example code some more, and doing some more research, I remain unable to populate a report with my own data and view the report in a browser. I realize this is a long post, but there are multiple errors I am receiving, and these are the seemingly essential ones that I am hitting.
Modeling the Sample code from Create_Report_From_Scratch.zip to add a database table, using the following code:
<%@ page import="com.crystaldecisions.sdk.occa.report.application.*"%>
<%@ page import="com.crystaldecisions.sdk.occa.report.data.*"%>
<%@ page import="com.crystaldecisions.sdk.occa.report.document.*"%>
<%@ page import="com.crystaldecisions.sdk.occa.report.definition.*"%>
<%@ page import="com.crystaldecisions.sdk.occa.report.lib.*" %>
<%@ page import = "com.crystaldecisions.report.web.viewer.*"%>
<%
try {
ReportClientDocument rcd = new ReportClientDocument();
rcd.newDocument();
// Setup the DB connection
String database_dll = "Sqlsrv32.dll";
String db = "qa_start_2012";
String dsn = "SQL Server";
String userName = "sa";
String pwd = "sa";
// Create the DB connection
ConnectionInfo oConnectionInfo = new ConnectionInfo();
PropertyBag oPropertyBag1 = oConnectionInfo.getAttributes();
// Set new table logon properties
PropertyBag oPropertyBag2 = new PropertyBag();
oPropertyBag2.put("DSN", dsn);
oPropertyBag2.put("Data Source", db);
// Set the connection info objects members
// 1. Pass the Logon Properties to the main PropertyBag
// 2. Set the Server Description to the new **System DSN**
oPropertyBag1.put(PropertyBagHelper.CONNINFO_CRQE_LOGONPROPERTIES, oPropertyBag2);
oPropertyBag1.put(PropertyBagHelper.CONNINFO_CRQE_SERVERDESCRIPTION, dsn);
oPropertyBag1.put("Database DLL", database_dll);
oConnectionInfo.setAttributes(oPropertyBag1);
oConnectionInfo.setUserName(userName);
oConnectionInfo.setPassword(pwd);
// The Kind of connectionInfos is CRQE (Crystal Reports Query Engine).
oConnectionInfo.setKind(ConnectionInfoKind.CRQE);
// Add a Database table
String tableName = "Building";
Table oTable = new Table();
oTable.setName(tableName);
oTable.setConnectionInfo(oConnectionInfo);
rcd.getDatabaseController().addTable(oTable, null);
catch(ReportSDKException RsdkEx) {
out.println(RsdkEx);
catch (Exception ex) {
out.println(ex);
%>
Throws the exception
com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: java.lang.NullPointerException---- Error code:-2147467259 Error code name:failed
There was other sample code on SDN which suggested the following - adding the table after calling table.setDataFields() as in:
String tableName = "Building";
String fieldname = "Building_Name";
Table oTable = new Table();
oTable.setName(tableName);
oTable.setAlias(tableName);
oTable.setQualifiedName(tableName);
oTable.setDescription(tableName) ;
Fields fields = new Fields();
DBField field = new DBField();
field.setDescription(fieldname);
field.setHeadingText(fieldname);
field.setName(fieldname);
field.setType(FieldValueType.stringField);
field.setLength(40);
fields.add(field);
oTable.setDataFields(fields);
oTable.setConnectionInfo(oConnectionInfo);
rcd.getDatabaseController().addTable(oTable, null);
This code succeeds, but it is not clear how to add that database field to a section. If I attempt to call the following:
FieldObject oFieldObject = new FieldObject();
oFieldObject.setDataSourceName(field.getFormulaForm());
oFieldObject.setFieldValueType(field.getType());
// Now add it to the section
oFieldObject.setLeft(3120);
oFieldObject.setTop(120);
oFieldObject.setWidth(1911);
oFieldObject.setHeight(226);
rcd.getReportDefController().getReportObjectController().add(oFieldObject, rcd.getReportDefController().getReportDefinition().getDetailArea().getSections().getSection(0), -1);
Then I get an error (which is not unexpected)
com.crystaldecisions.sdk.occa.report.lib.ReportDefControllerException: The field was not found.---- Error code:-2147213283 Error code name:invalidFieldObject
How do I add one of the table.SetDataFields() to my report to be displayed?
Are there any other pointers or suggestions you may have?
Thank you -
How to create a report with survey data
Hi All,
I need to create a report with survey data in below format. Can anyone help me how to display the summary in this format.
SwapnaHi Swapna,
According to your description, you want to create a report with survey data and display the summary.
Reporting Services is used for rendering the report with data retrieved from datasource. In Reporting Services, we can retrieve data from the datasource then design a report, after the report processed, data is fixed on the report. So it’s not supported
to have the end users selection and do summary. For your requirement, it’s can’t be achieved currently.
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu
Qiuyun Yu
TechNet Community Support -
How to create Webi Reports with SAP BW Objects
Hi,
I have no knowledge on creating webi reports with SAP BW Objects like (InfoCube, DSO, MultiProvider, Infoview, MasterData Infoobject).
As per my understanding Webi reports can be developed with universe which is created on BEx Queries or OLAP BAPI interface, unfortunately i don't have BEx App installed. So, i have to create OLAP universe in this case.
Here my question is can we create universe with all the available BW objects like InfoCube, DSO, MultiProvider, Infoview, MasterData Infoobject.
Please, Can anyone suggest a solution
Thanks,
Siva
Edited by: siva@chinni on Apr 25, 2010 4:45 PMHi,
Yes we can create WebI on the top of SAP Objects - InfoCube, DSO, Characteristics etc...
But we have to keep in mind that for WebI we must create Universe.
When we create universe we make direct connection with SAP Objects but we get less functionality - such Calculated Key Figures, Restricted Key Figures, formulas etc. Now you have to achieve all these missing components at Universe Level and at WebI level.
If you are creating your universe on the top of DSO and InfoObject then make sure they set for reporting.
There are some online documentation which tells that what functionality you can achieve.
Check the following document to have a bird's eye view.
[http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/100369a7-033e-2c10-94a4-f254f8578153?quicklink=index&overridelayout=true]
There is another document in PPT which I could not find online. It is very helpful document. It is:
II. SAP BusinessObjects BI Solutions XI 3.1 and SAP NetWeaver BW 7 Current risks, approach, and mitigating strategies for Client Partners, License Sales, and Consulting Delivery Managers
Partner Enablement Seminar
Regards,
Bashir Awan -
How to create a pdf with the correct size?
Hi there
How do I create a pdf with the correct size? I created several albums and ordered them. Now I want to backup the album and I know how to create a pdf, but when I choose A5 it's to big, when I create my own size it's not the size it should be. The original (made with iphoto) is a small size album 200x150mm. But when I create my own size (200x150) it shows some white borders.
Does anybody have some tips ore workarounds?
Yuri
Imac
Iphoto 11 (9.4.2)Books are designed for and printed on 8.5 x 11 inch stock, US Letter size. You shouldn't have to select any size. While viewing the All Pages mode in the book Control-Click on the page and select Save Book as PDF from the contextual menu.
That will create a PDF that iPhoto uses to upload and print. Not all pages will be the same size as the dust jacket will be present in it's full size, 32.8 inches x 8.91 inches:
If you want a PDF that's designed for your own printing the type Command+P while viewing the All Pages window. In the first print window click on the PDF button. It will present you with a contextual menu where you should select Save as PDF. That will give you an 8.5 x 11 PDF file with all pages the same size.
OT -
Creating a list with different row sizes...
I'm new to AS 3.0 and CS4 and I've been getting up to speed
on all of it. I've used the List component before with my own
CellRenderer. I now need to create a list with different row
heights. The List component is great and does everything that I
want but it requires all rows to be the same height.
I'm unsure of where to go. Creating my own class seems like a
lot of work. The TileList and Grid components don't allow different
sized (and dynamically changing) row heights either. Is there some
base class (SelectableList? BaseScrollPane?) that I should extend
or do I need to just bite the bullet and write it all from scratch?
I need each row to have it's own height and interaction with
a row could change the height of the row. The main use is a list of
data. If the user clicks in an item, it turns the display into
something they can edit (which will need more height).
Thanks for any thoughts on a direction I should think about.
By the way, I really like that AS 3.0 is much more consistent of a
programming language than previous MX versions that I've used.
We're doing a lot of AS/Flash/AIR work with it and it's turning
into a wonderful environment...Any ideas about this??
-
How can you set (or reset) different page sizes within 1 pdf?
I am working on a pdf with various page sizes. Say one page at 8-1/2 x 11, another at 11 x 17, and another at 22 x 34. I obviously can't print as "Choose paper source by PDF page size" as one printer can't do all sizes. I would like to change the 22 x 34 to 11 x 17. How can I change the page size setting of one page within a multiple-paged pdf?
You can play with the Crop tool. You'll find it is easier to "size up" than "size down".
May have to extract and bin PDF pages by the virtual page size then work on them.
However, if all you want is to have the content on hard copy and having that on a common sheet size (say Letter) then consider this alternative:
Make a working copy of the PDF.
With the PDF open in Acrobat, open the Pages panel. Expand the panel width as desired.
Now, Ctrl click through the PDF page thumbnails that have a landscape orientation.
Rotate these 90 degrees to a portrait orientation.
Alt+D+T or Shift+Ctrl+R
Save as you go.
With all pages in a portrait orientation, use the attached printer to print.
In the Print dialog locate the entry for 'page scaling' and select Fit or Shrink to Printable Area.
All PDF pages' content will be scaled such that all page content fits in an imprint on the Letter size paper.
Or, go the other way and have the imprint of PDF page content fill a larger sheet size.
Just a function of what the printer accepts for paper size and the features provided in the printer driver.
Be well.... -
How to create a report with dynamic columns
Hi all,
I am using Apex 4.0 with Oracle 10g
I am creating a report and I need to display columns dynamically based on the item values.
example:
I have a table employee with columns name, designation, sal
In the report page i have a select list with designations and when I select a designation from the select list,
I need to display the names of the employees horizontally,
like each name as a new column in the report with that particular designation. and same has to continue when I select different designations.
Can some one help me how we can do that.
I appreciate your answer
Thanks,
RikEssentially you want to write a pl/sql function which returns a varchar2 string. The contents of the string must be a valid sql statement.
Once you have done this, you need to add a report region as type sql report and you will have the option of writing it as a query or as a function returning query. Choose function returning query and enter in the function call.
Note your function must be valid, and must be executable by your apex parsing schema.
example:
create or replace
function test_report( p1_tablename in varchar2)
return varchar2
is
v_query varchar2(4000);
begin
v_query :=
'SELECT * from '||p_tablename;
return v_query;
end test_report;Edited by: Keith Jamieson on Aug 15, 2011 4:50 PM -
How to schedule multiple reports with different local to change static field language ?
Hi all,
we have requirement that we will place multiple schedule request on same server ,This schedule request will be different local setting with parameter value like: en-GB,en-US,Chinese...etc .We used translation Manager for this and it takes this parameter and change report language for static fields.
problem is that ,on server it is not working properly,we tested for one report .if we pass prompt value to change local setting in report the we need to log off and login again in CMC to reflect new local or on BI Launchpad we need to refresh page then it shows new language.
How we can do this with multiple scheduled report which will have different local value like en-GB,en-US,Chinese,German....?These schedule request are getting placed in server by one user .
Please help us with sample code.
Thanks
MadanHi,
The only approach I can think of is to create a template report which uses variables
For each column you would need to variable
v_columnAName and v_columnAValue
v_columnAName would have a if statement in it
=if([client]="clientA" or [client]="clientC";NameOf([firstName]);if([client]="clientB";NameOf([SSN]);NameOf([lastName]));
v_columnA would have a if statement in it
=if([client]="clientA" or [client]="clientC";[firstName];if([client]="clientB";[SSN],[lastName]));
This would only work when you had a small set of clients.
This might be more managable if it was done in the universe
Regards
Alan -
How to create a report with selection screen that can run in background
Sorry to ask these basic questions but I am knew to ABAP Programming.
To keep it simply, I am attempting to create a report that has a simple parameter driven selections screen with one field. That field takes in a folder path from the user. The user executes the report. The report creates a simply BDC that goes into SE16, gathers data from a table, and exports the results to a text file using the folder path provided. I created a variant for the folder path field in the selection screen hoping to use it while executing the report in the background. The report is not exporting the file as it did when run in the foreground for some reason.
I am wondering what event is triggered when a report is executed in the background. In the foreground (or when I execute the program via SE38->Execute->With Variant) the user needs to execute the program by hitting the execute button once the variant has populated the folder path field. It works then, so I am trying to get the same to work in the background. I am thinking I didn't put the program together correctly to accommodate the running in the background. How can you create a report that can accept user input via variant into a selection screen and then run in the background?
Please, any information would be greatly appreciated.
Thanks you all for reading this!!!Ok, finally I understand what you're doing. Initially you lost me with the SE16 reference...
Not sure what you're trying to achieve overall, but apart from the fact that you cannot export/download a file to a user's PC via background job (unless you have a mapped network share on the server or something like an FTP server on the user's PC, but both are pretty hypothetical scenarios and unlikely to occur).
Also, the BDC approach to get data via SE16 is pretty awkward. Note that SE16 is guarded by some authorization checks and often users won't have access in production (which might not matter if you intend to always run your program in background via dedicated batch user). However, I have no clue why you wouldn't want to use [open SQL|http://help.sap.com/abapdocu_70/en/ABENOPEN_SQL_READING.htm] to read the data. You could then save it on the application server or if you really have to get it to the user you can consider e-mailing the file (extracts should be compressed before sending). For the latter you'll find plenty of references here, basically it's the [business communication services|http://help.sap.com/saphelp_nw2004s/helpdata/en/2d/1c5d3aebba4c38e10000000a114084/frameset.htm] that you'd need to look at.
Maybe you are looking for
-
Mac shuts down after 5 minutes Help!!!!
My computer: imac G3, DV Special Edition, 500Mhz, 384 mb ram, 80 gig hard drive This is an odd one...like many others before me the computer just died one day. it would not start up, no sounds, just dead. A few minutes later I tried to turn it on and
-
i just recently did a reinstall on my mac, i tried to open itunes, but there is an error message that says itunes requires quick time 7.5.5 or later, i have tried to update quicktime, but cannot. please help
-
Hi all, I purchased a S-video cord (which has 4 pins) to connect my iPod to my TV, and it didn't work. The output in the dock has 7 pins. What are the differences between the two sorts of s-video and why didn't it work with 4 pins?
-
Lumira Desktop 1.7million register
Hi, I'm trying to prototype a Lumira use case with 1.7million registers and using xls files on my desktop. With this amount of data it's being really difficult to work with Lumira due to the data volume. (and even worse with maps). My question is if
-
ACR 4.6 plugin installed but shows only ACR 4.4 in LR2 calibration?
Hi All, First post here, so any responses would be appreciated. This isn't necessarily a problem, ie I can't see any negative effect, but there is a discrepancy which I can't understand. I have Photoshop CS3 and Lightroom 2 (updated to 2.7), with the