Home > database >  When web print PDF failure under Windows 7
When web print PDF failure under Windows 7

Time:09-16

WEB printing succeeded in XP environment before, today's installed Windows 7 system, follow the steps online, sit down and print is not successful;
Saveas function failure (one is running, save the PDF is successful, then I don't know what's the matter not);

CodePudding user response:


CodePudding user response:

CodePudding user response:

Under the corresponding order more disorderly, explain: Ghostscript 8.63 has been installed, the printer is added;

Code is posted, return when we've saved PDF SAVEas failed!

CodePudding user response:

Should be the problem of permissions, change the permissions of root directory to everyone can write to try again

CodePudding user response:

Or look at the saveas return values, and then look for help and have a look

CodePudding user response:

Saveas return 1,
Changing the root directory permissions to everyone to write;
Actually found file has produced, is 0 bytes;

CodePudding user response:

If you have any problem, the PDF generated try Ghostscript 8.63 uninstall and reinstall it

CodePudding user response:

To consider your article

05 PB under the 64 - bit operating system, how to make the PDF save function to use
First of all, I want to declare that this method is not working under PB9 + 7 64, applies only to PB12, 12.5, still have to install GhostScript 7.05 PB9, not higher than the version,

1, install GhostScirpt 8.71

Note that version, above this version is bad to use, sometimes,

2, 64 PS printer driver installation, set the printer name to "Sybase DataWindow PS"

Pay attention to the printer driver can choose PS of HP printers,



Although I only wrote the article 2, I test a week!

If I can't download, can go to the following address download: (note: to CSDN)



GhostScirpt 8.71 & amp; HP ps print driver



SaveAS in PB CS environment is generally there is no problem, if on the DW.NET WEB conditions, calling saveAS is bad to use, the main reason is that, under the condition of BS IIS permissions to printer without operation, but also because of access problem, not a new file, after query DW.NET help document, found in accordance with the articles described below, can be DW.NET saveAS,



In a 64 - bit Windows, save as PDF, DW.net will be prompted to 1 error, save is not successful, the reason is: the local system account did you get the printer permissions, so how to modify the printer permissions? Please click the following steps:

(1) the current user in the WEBSERVER printers need to be installed,

(2) on the "start", "run", run registry editor: regedit,

. (3) choose the HKEY_USERS \ DEFAULT \ Software \ Microsoft \ Windows NT \ CurrentVersion, export it to a registry backup files, the backup file is in case of one thousand subjects were restored to use,,

(4) choose HKEY_CURRENT_USER \ Software \ Microsoft \ Windows NT \ CurrentVersion,

A) select key Devices, the export file, file named device. Reg

B) select son PrinterPorts keys, the export file, the file named Printports. Reg

C) choose Windows key, the export file, file called Windows. Reg

(5) use notepad or other text editor,

A) edit device. Reg file, the HKEY_CURRENT_USER replace HKEY_USERS \. DEFAULT

B) editing Printports. Reg file, the HKEY_CURRENT_USER replace HKEY_USERS \. DEFAULT

C) editing Windows. Reg file, the HKEY_CURRENT_USER replace HKEY_USERS \. DEFAULT

(6) holds three file, double-click the three documents, the registry content into the system,

(7) restart IIS and WEBSITE make configuration to take effect,



Finally:

One day and found two things, a good thing a bad thing:

(1) in this case the generated PDF is color, and the next generation 32 bit before is black and white, this is a good thing,

(2) in this case the generated PDF is without graphics, that is to say, you add in the DW controls such as picture, so I'm sorry, does not show in the PDF, BITMAP function calculation column displays the graphics will be gone,

After a netizen "Shanghai - ShengYongXiang" remind: absolute path is useful, then test, the conclusion is as follows:

Final confirmation: use the HP driver, certainly can make 64 generating PDF correctly under

But:
In the.net web page, use./images/aa. JPG can display graphics, but can not be shown in the print PDF graphic
In the.net web pages, in c: \ below \ \ aa webpage \ images JPG can not display, but in the PDF printing can display graphics
So, need to display out./images/* * JPG, said in the generated PDF is a must in c: \ below \ \ * * webpage \ images. The path of the JPG to represent graphic
See yourself how to play, I'm in the save as PDF, to MODIFY the filename attribute of picture controls,





====can not watch the following English document, most is nonsense, according to the above methods set the printer permissions section,========



If your DataWindow the.net application specifies a path for dynamically generated files, make sure that the ASP.NET account (or, for Windows server 2003, the IIS_WPG user group) from the write permission to the directories. You need to do this If your application USES graphs in Web DataWindows or saves the JavaScript, XML, XSLT, and CSS files generated for XML or XHTML Web DataWindows into separate directories.



The Web server must be configured so that The ASP.NET worker process has access to The system Settings and The system account has access to printers, Implementing server - side printing requires changing The default permissions on The server.



. By default, the.net Framework runs with the permissions of the local "machine" is the account. In order to print using IIS, the. NET Framework must run with the permissions of the local "SYSTEM" account. The procedures for you. The.net Framework for IIS 5. X and 6 x are marketers.



To configure the. NET Framework To run with local SYSTEM Settings with

IIS 6. X:

1 In the Windows Start> The Run box, type InetMgr.

2 In the IIS Manager, expand the local computer and select the Application Pools.

3 Right - click Application Pools and select Properties.

nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related